1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
index.cjs: index.js
rollup -c debian/rollup.config.mjs
echo "exports.default = ansiRegex;" $@
index.d.cts: index.d.ts
sed '/^export default.*/d' < $< > $@
sed -i 's/export / /g' $@
echo 'declare namespace ansiRegex {export { Options };}' >> $@
echo "export = ansiRegex;" >> $@
execute_after_dh_auto_build: index.cjs index.d.cts
# mjs2cjs -o index.cjs index.js
|