| 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 |
index.cjs: index.js |
| 11 |
rollup -c debian/rollup.config.mjs |
| 12 |
echo "exports.default = ansiRegex;" $@ |
| 13 |
|
| 14 |
char-regex/index.cjs: char-regex/index.js |
| 15 |
cd char-regex && rollup -c ../debian/rollup.config.mjs |
| 16 |
echo "exports.default = ansiRegex;" $@ |
| 17 |
|
| 18 |
|
| 19 |
index.d.cts: index.d.ts |
| 20 |
sed '/^export default.*/d' < $< > $@ |
| 21 |
sed -i 's/export / /g' $@ |
| 22 |
echo 'declare namespace ansiRegex {export { Options };}' >> $@ |
| 23 |
echo "export = ansiRegex;" >> $@ |
| 24 |
|
| 25 |
char-regex/index.d.cts: char-regex/index.d.ts |
| 26 |
sed '/^export default.*/d' < $< > $@ |
| 27 |
echo "export = charRegex;" >> $@ |
| 28 |
|
| 29 |
|
| 30 |
execute_after_dh_auto_build: index.cjs index.d.cts char-regex/index.cjs char-regex/index.d.cts |
| 31 |
|
| 32 |
execute_after_dh_installdocs: |
| 33 |
dh_nodejs_autodocs |
| 34 |
|