File: rules

package info (click to toggle)
node-ts-jest 26.5.0%2B~cs2.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,340 kB
  • sloc: javascript: 950; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 864 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
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_build:
	mv node_modules/fast-json-stable-stringify node_modules/.fast-json-stable-stringify
	dh_auto_build --buildsystem=nodejs
	mv node_modules/.fast-json-stable-stringify node_modules/fast-json-stable-stringify
	tsc -p tsconfig.build.json
	node scripts/post-build.js
	chmod +x cli.js
	help2man --no-info \
		--version-string=$(DEB_VERSION_UPSTREAM) \
		-n 'TypeScript preprocessor with source map support for Jest' \
		./cli.js > debian/ts-jest.1

override_dh_auto_clean:
	dh_auto_clean --buildsystem=nodejs
	node scripts/clean-dist.js

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/ts-jest/usr/share/nodejs/ts-jest/cli.js
	chmod -x debian/ts-jest/usr/share/nodejs/bs-logger/package.json