diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-15 22:32:57 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-15 22:32:57 +0200 |
commit | 0639b6176fef86e3c467cfcdc393fa99f68086f5 (patch) | |
tree | 2b01c393fb4f3c742d3d040f6d7f724b5009e639 | |
parent | :arrow_up: update mongoose types (diff) | |
download | server-0639b6176fef86e3c467cfcdc393fa99f68086f5.tar.xz |
:bug: fix bundle postinstall
-rw-r--r-- | api/package.json | 1 | ||||
-rw-r--r-- | bundle/package-lock.json | 48 | ||||
-rw-r--r-- | bundle/package.json | 11 | ||||
-rw-r--r-- | cdn/package.json | 2 | ||||
-rw-r--r-- | gateway/package.json | 2 | ||||
-rw-r--r-- | util/package.json | 1 | ||||
-rw-r--r-- | util/src/util/Database.ts | 1 | ||||
-rw-r--r-- | util/src/util/MongoBigInt.ts | 1 |
8 files changed, 49 insertions, 18 deletions
diff --git a/api/package.json b/api/package.json index 7b2de011..723b47d0 100644 --- a/api/package.json +++ b/api/package.json @@ -5,6 +5,7 @@ "main": "dist/Server.js", "types": "dist/Server.d.ts", "scripts": { + "postinstall": "npm run build", "test": "jest", "test:watch": "jest --watch", "start": "npm run build && node dist/start", diff --git a/bundle/package-lock.json b/bundle/package-lock.json index 7cf5dac2..354487be 100644 --- a/bundle/package-lock.json +++ b/bundle/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "@fosscord/server", "version": "1.0.0", + "hasInstallScript": true, "license": "AGPLV3", "dependencies": { "@fosscord/api": "file:../api", @@ -20,6 +21,7 @@ }, "devDependencies": { "@types/amqplib": "^0.8.1", + "@types/async-exit-hook": "^2.0.0", "@types/bcrypt": "^5.0.0", "@types/express": "^4.17.9", "@types/i18next-node-fs-backend": "^2.1.0", @@ -30,6 +32,7 @@ "@types/multer": "^1.4.5", "@types/node": "^14.17.9", "@types/node-fetch": "^2.5.7", + "@types/node-os-utils": "^1.2.0", "@types/uuid": "^8.3.0", "@types/ws": "^7.4.0", "@zerollup/ts-transform-paths": "^1.7.18", @@ -39,6 +42,7 @@ "../api": { "name": "@fosscord/api", "version": "1.0.0", + "hasInstallScript": true, "license": "ISC", "dependencies": { "@fosscord/util": "file:../util", @@ -61,7 +65,7 @@ "i18next-node-fs-backend": "^2.1.3", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.6", + "missing-native-js-functions": "^1.2.10", "mongoose": "^5.12.3", "mongoose-autopopulate": "^0.12.3", "mongoose-long": "^0.3.2", @@ -75,6 +79,7 @@ "@types/i18next-node-fs-backend": "^2.1.0", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", + "@types/mongoose": "^5.10.5", "@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-lean-virtuals": "^0.5.1", "@types/multer": "^1.4.5", @@ -94,6 +99,7 @@ "../cdn": { "name": "@fosscord/cdn", "version": "1.0.0", + "hasInstallScript": true, "license": "ISC", "dependencies": { "@fosscord/util": "file:../util", @@ -109,7 +115,7 @@ "image-size": "^1.0.0", "lambert-db": "^1.2.3", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.0.8", + "missing-native-js-functions": "^1.2.10", "multer": "^1.4.2", "node-fetch": "^2.6.1", "typescript": "^4.1.2", @@ -135,6 +141,7 @@ "../gateway": { "name": "@fosscord/gateway", "version": "1.0.0", + "hasInstallScript": true, "license": "ISC", "dependencies": { "@fosscord/util": "file:../util", @@ -143,7 +150,7 @@ "dotenv": "^8.2.0", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.3", + "missing-native-js-functions": "^1.2.10", "mongoose-autopopulate": "^0.12.3", "node-fetch": "^2.6.1", "uuid": "^8.3.2", @@ -174,7 +181,7 @@ "dot-prop": "^6.0.1", "env-paths": "^2.2.1", "jsonwebtoken": "^8.5.1", - "missing-native-js-functions": "^1.2.2", + "missing-native-js-functions": "^1.2.10", "mongodb": "^3.6.9", "mongoose": "^5.13.7", "mongoose-autopopulate": "^0.12.3", @@ -229,6 +236,12 @@ "@types/node": "*" } }, + "node_modules/@types/async-exit-hook": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/async-exit-hook/-/async-exit-hook-2.0.0.tgz", + "integrity": "sha512-RNjIyjnVZdcP5a1zeIPb5c0hq2nbJc/NOCLNKUAqeCw+J5z2zMcINISn9wybCWhczHnUu3VSUFy7ZCO6ir4ZRw==", + "dev": true + }, "node_modules/@types/bcrypt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.0.tgz", @@ -382,6 +395,12 @@ "form-data": "^3.0.0" } }, + "node_modules/@types/node-os-utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@types/node-os-utils/-/node-os-utils-1.2.0.tgz", + "integrity": "sha512-sstDo2s8gQR/Qh2Bd6yNQ5xJv+D4ttyB9ZVjB3mBm3VkGl2RoqjV7fiw9mIHLbshHSRm2m8uf0XrIRQNWB/z6A==", + "dev": true + }, "node_modules/@types/qs": { "version": "6.9.7", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", @@ -1854,6 +1873,7 @@ "@types/i18next-node-fs-backend": "^2.1.0", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", + "@types/mongoose": "^5.10.5", "@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-lean-virtuals": "^0.5.1", "@types/multer": "^1.4.5", @@ -1883,7 +1903,7 @@ "jest": "^26.6.3", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.6", + "missing-native-js-functions": "^1.2.10", "mongoose": "^5.12.3", "mongoose-autopopulate": "^0.12.3", "mongoose-long": "^0.3.2", @@ -1925,7 +1945,7 @@ "image-size": "^1.0.0", "lambert-db": "^1.2.3", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.0.8", + "missing-native-js-functions": "^1.2.10", "multer": "^1.4.2", "node-fetch": "^2.6.1", "typescript": "^4.1.2", @@ -1950,7 +1970,7 @@ "dotenv": "^8.2.0", "jsonwebtoken": "^8.5.1", "lambert-server": "^1.2.8", - "missing-native-js-functions": "^1.2.3", + "missing-native-js-functions": "^1.2.10", "mongoose-autopopulate": "^0.12.3", "node-fetch": "^2.6.1", "ts-node-dev": "^1.1.6", @@ -1974,7 +1994,7 @@ "dot-prop": "^6.0.1", "env-paths": "^2.2.1", "jsonwebtoken": "^8.5.1", - "missing-native-js-functions": "^1.2.2", + "missing-native-js-functions": "^1.2.10", "mongodb": "^3.6.9", "mongoose": "^5.13.7", "mongoose-autopopulate": "^0.12.3", @@ -1992,6 +2012,12 @@ "@types/node": "*" } }, + "@types/async-exit-hook": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/async-exit-hook/-/async-exit-hook-2.0.0.tgz", + "integrity": "sha512-RNjIyjnVZdcP5a1zeIPb5c0hq2nbJc/NOCLNKUAqeCw+J5z2zMcINISn9wybCWhczHnUu3VSUFy7ZCO6ir4ZRw==", + "dev": true + }, "@types/bcrypt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.0.tgz", @@ -2145,6 +2171,12 @@ "form-data": "^3.0.0" } }, + "@types/node-os-utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@types/node-os-utils/-/node-os-utils-1.2.0.tgz", + "integrity": "sha512-sstDo2s8gQR/Qh2Bd6yNQ5xJv+D4ttyB9ZVjB3mBm3VkGl2RoqjV7fiw9mIHLbshHSRm2m8uf0XrIRQNWB/z6A==", + "dev": true + }, "@types/qs": { "version": "6.9.7", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", diff --git a/bundle/package.json b/bundle/package.json index 3c25f102..d41329f2 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -4,13 +4,9 @@ "description": "", "main": "src/start.js", "scripts": { - "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", - "build:cdn": "cd ../cdn/ && npm run build", - "build:gateway": "cd ../gateway/ && npm run build", + "postinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i", + "build": "npx tsc -b .", "start": "npm run build && node dist/start.js", - "bundle": "npm run build && node dist/startBundle.js", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { @@ -26,17 +22,18 @@ "homepage": "https://fosscord.com", "devDependencies": { "@types/amqplib": "^0.8.1", + "@types/async-exit-hook": "^2.0.0", "@types/bcrypt": "^5.0.0", "@types/express": "^4.17.9", "@types/i18next-node-fs-backend": "^2.1.0", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", - "@types/mongoose": "^5.10.5", "@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-lean-virtuals": "^0.5.1", "@types/multer": "^1.4.5", "@types/node": "^14.17.9", "@types/node-fetch": "^2.5.7", + "@types/node-os-utils": "^1.2.0", "@types/uuid": "^8.3.0", "@types/ws": "^7.4.0", "@zerollup/ts-transform-paths": "^1.7.18", diff --git a/cdn/package.json b/cdn/package.json index 0c8e872c..190a80a3 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -5,6 +5,7 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { + "postinstall": "npm run build", "test": "echo \"Error: no test specified\" && exit 1", "build": "npx tsc -b .", "start": "npm run build && node dist/start.js" @@ -29,7 +30,6 @@ "@types/fs-extra": "^9.0.12", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", - "@types/mongoose": "^5.10.5", "@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-lean-virtuals": "^0.5.1", "@types/multer": "^1.4.7", diff --git a/gateway/package.json b/gateway/package.json index ba07e7ee..a5b9e547 100644 --- a/gateway/package.json +++ b/gateway/package.json @@ -4,6 +4,7 @@ "description": "", "main": "dist/index.js", "scripts": { + "postinstall": "npm run build", "test": "echo \"Error: no test specified\" && exit 1", "start": "npm run build && node dist/start.js", "build": "npx tsc -b .", @@ -16,7 +17,6 @@ "@types/amqplib": "^0.8.1", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", - "@types/mongoose": "^5.10.5", "@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-lean-virtuals": "^0.5.1", "@types/node": "^14.17.9", diff --git a/util/package.json b/util/package.json index dbdcfe19..69d33844 100644 --- a/util/package.json +++ b/util/package.json @@ -29,7 +29,6 @@ "@types/amqplib": "^0.8.1", "@types/jsonwebtoken": "^8.5.0", "@types/mongodb": "^3.6.9", - "@types/mongoose": "^5.10.5", "@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-lean-virtuals": "^0.5.1", "@types/node": "^14.17.9", diff --git a/util/src/util/Database.ts b/util/src/util/Database.ts index 233152f1..2e04e0ff 100644 --- a/util/src/util/Database.ts +++ b/util/src/util/Database.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import "./MongoBigInt"; import mongoose, { Collection, Connection, LeanDocument } from "mongoose"; import { ChangeStream, ChangeEvent, Long } from "mongodb"; diff --git a/util/src/util/MongoBigInt.ts b/util/src/util/MongoBigInt.ts index 5148b742..2ae8b91c 100644 --- a/util/src/util/MongoBigInt.ts +++ b/util/src/util/MongoBigInt.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import mongoose from "mongoose"; class LongSchema extends mongoose.SchemaType { |