debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | %: |
| 3 | dh $@ |
| 4 | |
| 5 | override_dh_auto_build: |
| 6 | mkdir -p scripts/node_modules/.bin |
| 7 | ln -sf /usr/bin/tsc scripts/node_modules/.bin/tsc |
| 8 | ln -sf /usr/bin/terser scripts/node_modules/.bin/terser |
| 9 | cp debian/scripts-shims.d.ts scripts/src/debian-shims.d.ts |
| 10 | cd scripts && cp tsconfig.safe.json tsconfig.json && node -e 'let f="tsconfig.json", fs=require("fs"), j=require("./"+f); Object.assign(j.compilerOptions, { module: "Node16", composite: false, declaration: false, declarationMap: false, noImplicitAny: false, noEmitOnError: false, skipLibCheck: true, strict: false }); delete j.references; fs.writeFileSync(f, JSON.stringify(j, null, 2) + "\n")' && (tsc -p tsconfig.json || test -f dist/pkg/build.js) |
| 11 | node debian/build.mjs |
| 12 | |
| 13 | override_dh_auto_install: |
| 14 | dh_install |