File: rules

package info (click to toggle)
node-strip-ansi 7.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: javascript: 22; makefile: 9
file content (19 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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 = stripAnsi;" $@

index.d.cts: index.d.ts
	sed '/^export default.*/d' < $< > $@
	echo "export = stripAnsi;" >> $@

execute_after_dh_auto_build: index.cjs index.d.cts
#	mjs2cjs -o index.cjs index.js