make-exe-after-build
Massimo Melina committed
Dec 31, 2021 at 12:11 UTC
e3d5e149104149f57467f8df711793eede7da21c
1 file changed
+10
-2
package.json
+10
-2
@@ -11,11 +11,19 @@
11
"author": "Massimo Melina <a@rejetto.com>",
12
"scripts": {
13
"watch-server": "nodemon --ignore tests/ --watch src -e ts,tsx --exec ts-node src/index.ts",
14
- "start": "node dist",
14
"start-frontend": "cd frontend && npm run start",
15
+ "start": "node dist",
16
"build": "node timestamp && tsc && cp package*.json *.yaml dist && cd dist && npm ci --production",
17
"build-all": "npm run build && cd frontend && npm run build && cd ..",
18
- "test": "mocha -r ts-node/register 'tests/**/*.ts'"
18
+ "test": "mocha -r ts-node/register 'tests/**/*.ts'",
19
+ "make-exe-after-build": "pkg . -C brotli"
20
+ },
21
+ "bin": "dist/index.js",
22
+ "pkg": {
23
+ "scripts": "dist/**/*.js",
24
+ "assets": "dist/frontend/**/*",
25
+ "targets": [ "node16-win" ],
26
+ "outputPath": "dist"
27
},
28
"dependencies": {
29
"@koa/router": "^10.1.1",