#!/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