#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/pkg-info.mk
DEB_VERSION_TRIM=$(word 1,$(subst +, ,$(DEB_VERSION)))

%:
	dh $@

execute_after_dh_installdocs:
	dh_nodejs_autodocs auto_dispatch

execute_after_dh_auto_install:
	find debian/node-microsoft-fast-colors -name .eslintrc.js -delete
	find debian/node-microsoft-fast-colors -name 'karma.conf.*[jt]s' -delete
	find debian/node-microsoft-fast-colors -name CHANGELOG.json -delete
	find debian/node-microsoft-fast-colors -name 'tsconfig*.json' -delete
	find debian/node-microsoft-fast-colors -name 'tslint.json' -delete
	find debian/node-microsoft-fast-colors -name 'tsdoc.json' -delete
	find debian/node-microsoft-fast-colors -name 'api-extractor.json' -delete
	rm -rf debian/node-microsoft-fast-colors/usr/share/nodejs/@microsoft/fast
	rm -rf debian/node-microsoft-fast-colors/usr/share/nodejs/@microsoft/fast-colors/testData.ts
