summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--api/package.json25
-rw-r--r--bundle/package.json23
-rw-r--r--cdn/package.json11
-rw-r--r--gateway/package.json14
-rw-r--r--util/package.json6
5 files changed, 56 insertions, 23 deletions
diff --git a/api/package.json b/api/package.json
index 8ad7f201..46223dcb 100644
--- a/api/package.json
+++ b/api/package.json
@@ -30,19 +30,30 @@
 		"url": "https://github.com/fosscord/fosscord-server/issues"
 	},
 	"homepage": "https://fosscord.com",
-	"dependencies": {
-		"@fosscord/util": "file:../util",
+	"devDependencies": {
+		"0x": "^4.10.2",
 		"@types/amqplib": "^0.8.1",
 		"@types/bcrypt": "^5.0.0",
 		"@types/express": "^4.17.9",
 		"@types/i18next-node-fs-backend": "^2.1.0",
-		"@types/jest": "^26.0.22",
-		"@types/json-schema": "^7.0.7",
 		"@types/jsonwebtoken": "^8.5.0",
 		"@types/multer": "^1.4.5",
 		"@types/node": "^14.17.9",
 		"@types/node-fetch": "^2.5.7",
 		"@zerollup/ts-transform-paths": "^1.7.18",
+		"@types/mongodb": "^3.6.9",
+		"@types/mongoose-autopopulate": "^0.10.1",
+		"@types/mongoose-lean-virtuals": "^0.5.1",
+		"caxa": "^2.1.0",
+		"jest": "^26.6.3",
+		"saslprep": "^1.0.3",
+		"ts-node": "^9.1.1",
+		"typescript": "^4.1.2",
+		"ts-node-dev": "^1.1.6",
+		"image-size": "^1.0.0"
+	},
+	"dependencies": {
+		"@fosscord/util": "file:../util",
 		"ajv": "^8.4.0",
 		"ajv-formats": "^2.1.0",
 		"amqplib": "^0.8.0",
@@ -60,7 +71,6 @@
 		"i18next": "^19.8.5",
 		"i18next-http-middleware": "^3.1.3",
 		"i18next-node-fs-backend": "^2.1.3",
-		"image-size": "^1.0.0",
 		"jsonwebtoken": "^8.5.1",
 		"lambert-server": "^1.2.8",
 		"missing-native-js-functions": "^1.2.6",
@@ -68,9 +78,6 @@
 		"mongoose-autopopulate": "^0.12.3",
 		"mongoose-long": "^0.3.2",
 		"multer": "^1.4.2",
-		"node-fetch": "^2.6.1",
-		"require_optional": "^1.0.1",
-		"ts-node-dev": "^1.1.6",
-		"typescript": "^4.1.2"
+		"node-fetch": "^2.6.1"
 	}
 }
diff --git a/bundle/package.json b/bundle/package.json
index c9ff0034..dc96e573 100644
--- a/bundle/package.json
+++ b/bundle/package.json
@@ -4,7 +4,6 @@
 	"description": "",
 	"main": "src/start.js",
 	"scripts": {
-		"postinstall": "cd ../util/ && npm i && cd ../api/ && npm i && cd ../cdn/ && npm i && cd ../gateway/ && npm i",
 		"build": "npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle",
 		"build:bundle": "npx tsc -b .",
 		"build:api": "cd ../api/ && npm run build",
@@ -24,19 +23,31 @@
 		"url": "https://github.com/fosscord/fosscord-server/issues"
 	},
 	"homepage": "https://fosscord.com",
+	"devDependencies": {
+		"@types/amqplib": "^0.8.1",
+		"@types/bcrypt": "^5.0.0",
+		"@types/express": "^4.17.9",
+		"@types/i18next-node-fs-backend": "^2.1.0",
+		"@types/jsonwebtoken": "^8.5.0",
+		"@types/multer": "^1.4.5",
+		"@types/node": "^14.17.9",
+		"@types/node-fetch": "^2.5.7",
+		"@zerollup/ts-transform-paths": "^1.7.18",
+		"@types/mongodb": "^3.6.9",
+		"@types/mongoose-autopopulate": "^0.10.1",
+		"@types/mongoose-lean-virtuals": "^0.5.1",
+		"@types/uuid": "^8.3.0",
+		"@types/ws": "^7.4.0",
+		"typescript": "^4.3.5"
+	},
 	"dependencies": {
 		"@fosscord/api": "file:../api",
 		"@fosscord/cdn": "file:../cdn",
 		"@fosscord/gateway": "file:../gateway",
 		"@fosscord/util": "file:../util",
-		"@types/async-exit-hook": "^2.0.0",
-		"@types/express": "^4.17.13",
-		"@types/node": "^16.6.1",
-		"@types/node-os-utils": "^1.2.0",
 		"async-exit-hook": "^2.0.1",
 		"express": "^4.17.1",
 		"mongodb-memory-server": "^7.3.6",
 		"node-os-utils": "^1.3.5",
-		"typescript": "^4.3.5"
 	}
 }
diff --git a/cdn/package.json b/cdn/package.json
index 96f07971..317af3c4 100644
--- a/cdn/package.json
+++ b/cdn/package.json
@@ -20,8 +20,7 @@
 		"url": "https://github.com/discord-open-source/discord-cdn/issues"
 	},
 	"homepage": "https://github.com/discord-open-source/discord-cdn#readme",
-	"dependencies": {
-		"@fosscord/util": "file:../util",
+	"devDependencies": {
 		"@types/body-parser": "^1.19.0",
 		"@types/btoa": "^1.2.3",
 		"@types/dotenv": "^8.2.0",
@@ -31,6 +30,14 @@
 		"@types/node": "^14.17.0",
 		"@types/node-fetch": "^2.5.7",
 		"@types/uuid": "^8.3.0",
+		"@types/amqplib": "^0.8.1",
+		"@types/jsonwebtoken": "^8.5.0",
+		"@types/mongodb": "^3.6.9",
+		"@types/mongoose-autopopulate": "^0.10.1",
+		"@types/mongoose-lean-virtuals": "^0.5.1"
+	},
+	"dependencies": {
+		"@fosscord/util": "file:../util",
 		"body-parser": "^1.19.0",
 		"btoa": "^1.2.1",
 		"cheerio": "^1.0.0-rc.5",
diff --git a/gateway/package.json b/gateway/package.json
index 7cd22a98..37ed4af6 100644
--- a/gateway/package.json
+++ b/gateway/package.json
@@ -12,13 +12,21 @@
 	"keywords": [],
 	"author": "Fosscord",
 	"license": "ISC",
-	"dependencies": {
-		"@fosscord/util": "file:../util",
+	"devDependencies": {
 		"@types/amqplib": "^0.8.1",
 		"@types/jsonwebtoken": "^8.5.0",
 		"@types/mongoose-autopopulate": "^0.10.1",
 		"@types/uuid": "^8.3.0",
 		"@types/ws": "^7.4.0",
+		"@types/mongodb": "^3.6.9",
+		"@types/mongoose-lean-virtuals": "^0.5.1",
+		"@types/node": "^14.17.9",
+		"@types/node-fetch": "^2.5.12",
+		"ts-node-dev": "^1.1.6",
+		"typescript": "^4.2.3"
+	},
+	"dependencies": {
+		"@fosscord/util": "file:../util",
 		"ajv": "^8.5.0",
 		"amqplib": "^0.8.0",
 		"dotenv": "^8.2.0",
@@ -27,8 +35,6 @@
 		"missing-native-js-functions": "^1.2.3",
 		"mongoose-autopopulate": "^0.12.3",
 		"node-fetch": "^2.6.1",
-		"ts-node-dev": "^1.1.6",
-		"typescript": "^4.2.3",
 		"uuid": "^8.3.2",
 		"ws": "^7.4.2"
 	}
diff --git a/util/package.json b/util/package.json
index be1cc73f..8941c2a0 100644
--- a/util/package.json
+++ b/util/package.json
@@ -25,14 +25,16 @@
 		"url": "https://github.com/fosscord/fosscord-server-util/issues"
 	},
 	"homepage": "https://docs.fosscord.com/",
-	"dependencies": {
+	"devDependencies": {
 		"@types/amqplib": "^0.8.1",
 		"@types/jsonwebtoken": "^8.5.0",
 		"@types/mongodb": "^3.6.9",
 		"@types/mongoose-autopopulate": "^0.10.1",
 		"@types/mongoose-lean-virtuals": "^0.5.1",
 		"@types/node": "^14.17.9",
-		"@types/node-fetch": "^2.5.12",
+		"@types/node-fetch": "^2.5.12"
+	},
+	"dependencies": {
 		"ajv": "^8.5.0",
 		"amqplib": "^0.8.0",
 		"dot-prop": "^6.0.1",