diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-08 10:43:43 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-08 10:43:43 +0200 |
commit | b44f356d9efbdfdae920f0a7853df20c366b5fc8 (patch) | |
tree | ff2c8f2fe76c0ff7cf6e798a731df8ad9dfd2d1c /bundle/package.json | |
parent | Merge branch 'compiler-change' of https://github.com/thearcanebrony/fosscord-... (diff) | |
download | server-b44f356d9efbdfdae920f0a7853df20c366b5fc8.tar.xz |
:sparkles: bundle build script
Diffstat (limited to 'bundle/package.json')
-rw-r--r-- | bundle/package.json | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bundle/package.json b/bundle/package.json index c62d6c53..a7f5358b 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -6,9 +6,9 @@ "scripts": { "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 && cd ../bundle/ && npm --production=false i && npm run build", "build": "node scripts/build.js", - "build:bundle": "npx swc src --out-dir dist", - "start": "npm run build && npm run start:bundle", - "start:bundle": "node dist/start.js", + "build:bundle": "npx tsc -b .", + "start": "node scripts/build.js && node -r tsconfig-paths/register dist/start.js", + "start:bundle": "node -r tsconfig-paths/register dist/start.js", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { @@ -41,9 +41,12 @@ "@types/uuid": "^8.3.0", "@types/ws": "^7.4.0", "@zerollup/ts-transform-paths": "^1.7.18", + "esbuild": "^0.13.4", + "esbuild-plugin-tsc": "^0.3.0", "ts-node": "^10.2.1", "ts-patch": "^1.4.4", - "typescript": "^4.3.5" + "tsconfig-paths": "^3.11.0", + "typescript": "^4.4.3" }, "dependencies": { "@fosscord/api": "file:../api", @@ -56,7 +59,6 @@ "missing-native-js-functions": "^1.2.17", "nanocolors": "^0.2.12", "node-os-utils": "^1.3.5", - "swc": "^1.0.11", - "tsconfig-paths": "^3.11.0" + "reflect-metadata": "^0.1.13" } } |