summary refs log tree commit diff
path: root/bundle/scripts/install.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 00:44:19 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-15 00:44:19 +0200
commitd828a5e03d9f16f36e52a36851b4ef81276d385e (patch)
treebb87793ab6f8913ace58d552b2f79fc6848e0078 /bundle/scripts/install.js
parentfeat: implement a database check on the healthz and readyz probes, remove /-/... (diff)
parent:art: do not automatically create default guild (diff)
downloadserver-d828a5e03d9f16f36e52a36851b4ef81276d385e.tar.xz
Merge branch 'master' into pr/hbjydev/454
Diffstat (limited to 'bundle/scripts/install.js')
-rw-r--r--bundle/scripts/install.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/bundle/scripts/install.js b/bundle/scripts/install.js
new file mode 100644

index 00000000..3008b4c5 --- /dev/null +++ b/bundle/scripts/install.js
@@ -0,0 +1,14 @@ +const path = require("path"); +const fs = require("fs"); +const parts = ["api", "util", "cdn", "gateway"]; + +const bundle = require("../package.json"); + +for (const part of parts) { + const { devDependencies, dependencies } = require(path.join("..", "..", part, "package.json")); + bundle.devDependencies = { ...bundle.devDependencies, ...devDependencies }; + bundle.dependencies = { ...bundle.dependencies, ...dependencies }; + delete bundle.dependencies["@fosscord/util"]; +} + +fs.writeFileSync(path.join(__dirname, "..", "package.json"), JSON.stringify(bundle, null, "\t"), { encoding: "utf8" });