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

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

%:
	dh $@ --with nodejs --buildsystem=nodejs

override_dh_auto_build:
	rollup -c
	tsc
	test -e dist/src/y-websocket.d.ts
	test -e dist/y-websocket.cjs

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/node-y-websocket/usr/share/nodejs/y-websocket/bin/server.js