#!/usr/bin/make -f

export LC_ALL=C.UTF-8

%:
	dh $@

override_dh_auto_build:
	sh debian/build.sh

# The root of the repository is a pnpm workspace, so there is no module to
# require; the checks that matter run under autopkgtest.
override_dh_auto_test:

# Two modules come out of one build, so each is installed by hand instead of
# letting pkg-js-tools guess from a single package.json.
override_dh_auto_install:
	install -d debian/node-monacopilot-core/usr/share/nodejs/@monacopilot
	cp -a debian/build-result/core debian/node-monacopilot-core/usr/share/nodejs/@monacopilot/core
	install -d debian/node-monacopilot/usr/share/nodejs
	cp -a debian/build-result/monacopilot debian/node-monacopilot/usr/share/nodejs/monacopilot
