diff --git a/bundle/package.json b/bundle/package.json
index cd2b9f44..a7f5358b 100644
--- a/bundle/package.json
+++ b/bundle/package.json
@@ -5,15 +5,10 @@
"main": "src/start.js",
"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": "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": "node scripts/build.js",
"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 && npm run start:bundle",
- "start:bundle": "node dist/start.js",
+ "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": {
@@ -28,6 +23,8 @@
},
"homepage": "https://fosscord.com",
"devDependencies": {
+ "@swc/cli": "^0.1.51",
+ "@swc/core": "^1.2.93",
"@types/amqplib": "^0.8.1",
"@types/async-exit-hook": "^2.0.0",
"@types/bcrypt": "^5.0.0",
@@ -44,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",
@@ -59,6 +59,6 @@
"missing-native-js-functions": "^1.2.17",
"nanocolors": "^0.2.12",
"node-os-utils": "^1.3.5",
- "tsconfig-paths": "^3.11.0"
+ "reflect-metadata": "^0.1.13"
}
}
|