aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json10
1 files changed, 9 insertions, 1 deletions
diff --git a/package.json b/package.json
index 73e4c3c..5d38d3d 100644
--- a/package.json
+++ b/package.json
@@ -24,16 +24,19 @@
"install": "^0.13.0",
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
+ "pkg": "^5.5.2",
"typescript": "^4.5.5"
},
"scripts": {
"build": "npm-run-all clean tsc copy-views",
"build:ci": "npm-run-all clean tsc",
+ "build:pack": "npm-run-all build pack",
"copy-views": "cp -r ./src/views ./dist/views && cp -r ./src/public ./dist/public",
"clean": "rm -rf dist",
"dev": "nodemon --watch ./src -e ts,ejs,css,js --exec yarn dev:start",
"dev:start": "npm-run-all build start",
"lint": "eslint --ext .ts,.js ./src --fix",
+ "pack": "pkg . -t node16-linux",
"start": "node dist/index.js",
"tsc": "tsc --project ./tsconfig.json"
},
@@ -41,8 +44,13 @@
"version": "0.1.0",
"description": "The webapp for Professor Lamperski's Pendulum",
"main": "dist/index.js",
+ "bin": "dist/index.js",
"author": "Matt Strapp <matt@mattstrapp.net>",
"repository": "https: //github.com/RosstheRoss/4951w-pendulum",
"license": "MIT",
- "private": true
+ "private": true,
+ "pkg": {
+ "scripts": "dist/**/*.js",
+ "assets": "dist/**/*"
+ }
}