debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | # Uncomment this to turn on verbose mode. |
| 5 | #export DH_VERBOSE=1 |
| 6 | |
| 7 | %: |
| 8 | dh $@ |
| 9 | |
| 10 | override_dh_auto_build: |
| 11 | tsc |
| 12 | tsc --module esnext --target es2019 --outDir lib/esm |
| 13 | echo '{"type":"module"}' > lib/esm/package.json |
| 14 | |
| 15 | override_dh_auto_test: |
| 16 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 17 | # Tests disabled during build to avoid circular dependency |
| 18 | node -e 'require(".")' |
| 19 | endif |