mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-14 22:52:41 +01:00
24 lines
606 B
JavaScript
24 lines
606 B
JavaScript
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" }
|
|
);
|