summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-09 14:00:17 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-09 14:00:17 +0200
commitc601c328dbea1273c1d63e750175b1b74295a80f (patch)
tree5d7e6ecd4e7b16b3c6626d9b257528f3253b7754
parentdummy routes (prevent errors in client) (diff)
downloadserver-c601c328dbea1273c1d63e750175b1b74295a80f.tar.xz
:sparkles: add npm i fosscord-server-util to postinstall
-rw-r--r--package-lock.json15
-rw-r--r--package.json3
2 files changed, 17 insertions, 1 deletions
diff --git a/package-lock.json b/package-lock.json
index cffa2d4e..e2fd36ad 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -26,6 +26,7 @@
 				"missing-native-js-functions": "^1.2.6",
 				"mongodb": "^3.6.4",
 				"mongoose": "^5.12.3",
+				"mongoose-autopopulate": "^0.12.3",
 				"mongoose-long": "^0.3.2",
 				"multer": "^1.4.2",
 				"patch-package": "^6.2.2"
@@ -8408,6 +8409,14 @@
 				"url": "https://opencollective.com/mongoose"
 			}
 		},
+		"node_modules/mongoose-autopopulate": {
+			"version": "0.12.3",
+			"resolved": "https://registry.npmjs.org/mongoose-autopopulate/-/mongoose-autopopulate-0.12.3.tgz",
+			"integrity": "sha512-yNmYsfi6OpS/GQ+48mkB0KQ199ExHmmPrt3wt3fyxPHPMtEBGts7yq3wBQR6VgKCPOQaKvCI1URbJCPOtrPeLw==",
+			"peerDependencies": {
+				"mongoose": "4.x || 5.x"
+			}
+		},
 		"node_modules/mongoose-legacy-pluralize": {
 			"version": "1.0.2",
 			"resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz",
@@ -19159,6 +19168,12 @@
 				}
 			}
 		},
+		"mongoose-autopopulate": {
+			"version": "0.12.3",
+			"resolved": "https://registry.npmjs.org/mongoose-autopopulate/-/mongoose-autopopulate-0.12.3.tgz",
+			"integrity": "sha512-yNmYsfi6OpS/GQ+48mkB0KQ199ExHmmPrt3wt3fyxPHPMtEBGts7yq3wBQR6VgKCPOQaKvCI1URbJCPOtrPeLw==",
+			"requires": {}
+		},
 		"mongoose-legacy-pluralize": {
 			"version": "1.0.2",
 			"resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz",
diff --git a/package.json b/package.json
index f4f78889..1b7e8e39 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
 		"start": "npm run build:util && npm run build && node dist/",
 		"build": "tsc -b .",
 		"build:util": "tsc -b ./node_modules/fosscord-server-util/",
-		"postinstall": "patch-package"
+		"postinstall": "npm i github:fosscord/fosscord-server-util && patch-package"
 	},
 	"repository": {
 		"type": "git",
@@ -39,6 +39,7 @@
 		"missing-native-js-functions": "^1.2.6",
 		"mongodb": "^3.6.4",
 		"mongoose": "^5.12.3",
+		"mongoose-autopopulate": "^0.12.3",
 		"mongoose-long": "^0.3.2",
 		"multer": "^1.4.2",
 		"patch-package": "^6.2.2"