diff --git a/bundle/package.json b/bundle/package.json
index a326a131..fa6fe669 100644
--- a/bundle/package.json
+++ b/bundle/package.json
@@ -4,14 +4,16 @@
"description": "",
"main": "src/start.js",
"scripts": {
- "preinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i",
+ "setup": "cd ../util && npm --production=false i && cd ../api && npm --production=false i && cd ../cdn && npm --production=false i && cd ../gateway && npm --production=false i && npm install",
"build": "npm run build:util && npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
+ "postinstall": "ts-patch install -s",
"build:bundle": "npx tsc -b .",
"build:util": "cd ../util/ && npm run build",
"build:api": "cd ../api/ && npm run build",
"build:cdn": "cd ../cdn/ && npm run build",
"build:gateway": "cd ../gateway/ && npm run build",
- "start": "npm run build && node dist/start.js",
+ "start": "npm run build && npm run start:bundle",
+ "start:bundle": "node dist/start.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
@@ -42,6 +44,8 @@
"@types/uuid": "^8.3.0",
"@types/ws": "^7.4.0",
"@zerollup/ts-transform-paths": "^1.7.18",
+ "ts-node": "^10.2.1",
+ "ts-patch": "^1.4.4",
"typescript": "^4.3.5"
},
"dependencies": {
@@ -52,6 +56,7 @@
"async-exit-hook": "^2.0.1",
"express": "^4.17.1",
"missing-native-js-functions": "^1.2.15",
- "node-os-utils": "^1.3.5"
+ "node-os-utils": "^1.3.5",
+ "tsconfig-paths": "^3.11.0"
}
}
|