File: rules

package info (click to toggle)
node-ansi-regex 6.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: javascript: 439; makefile: 11
file content (21 lines) | stat: -rwxr-xr-x 482 bytes parent folder | download
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