mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
18 lines
436 B
JavaScript
18 lines
436 B
JavaScript
|
const { globSync } = require('glob');
|
||
|
const { join } = require("node:path");
|
||
|
const fs = require("node:fs");
|
||
|
const exec = require("execa");
|
||
|
|
||
|
const files = globSync('**/package.json');
|
||
|
|
||
|
for (const file of files) {
|
||
|
const json = require(join('../', file));
|
||
|
json['devDependencies'] = undefined;
|
||
|
fs.writeFileSync(file, JSON.stringify(json, null, '\t'));
|
||
|
}
|
||
|
|
||
|
exec("yarn", ["install"], {
|
||
|
stdout: process.stdout,
|
||
|
stderr: process.stderr,
|
||
|
});
|