mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 10:15:25 +00:00
Clean dependencies
This commit is contained in:
@@ -34,7 +34,9 @@ parts.forEach((part) => {
|
||||
missing: [],
|
||||
using: [],
|
||||
};
|
||||
x = JSON.parse(execIn("npx depcheck --json", partDir).stdout);
|
||||
let dcproc = execIn("npx depcheck --json", partDir);
|
||||
if(dcproc.stdout) x = JSON.parse(dcproc.stdout);
|
||||
else x = JSON.parse(dcproc);
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(__dirname, "..", `depclean.out.${part}.json`),
|
||||
|
||||
Reference in New Issue
Block a user