1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_build:
# First compile tldts-utils to get the update script
tsc --build packages/tldts-utils/tsconfig.json
# Regenerate hashes.ts and trie.ts from local public_suffix_list.dat
node -e "require('./packages/tldts-utils/dist/cjs/index.js').updateInternalDataStructures()"
# Now build everything
tsc --build ./tsconfig.project.json
set -e; for i in packages/tldts-core packages/tldts-utils packages/tldts-tests packages/tldts packages/tldts-experimental packages/tldts-icann; do \
(echo "# $$i"; \
cd $$i && \
pkgjs-run build && \
pkgjs-run bundle && \
echo '{"type":"commonjs"}' > dist/cjs/package.json && \
echo '{"type":"module"}' > dist/es6/package.json \
); \
done
execute_after_dh_installdocs:
dh_nodejs_autodocs auto_dispatch
|