From c70d15b56406b0e09aaba78bc9511a44cb7de68b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 7 Aug 2022 22:32:04 +0200 Subject: Clean dependencies --- bundle/scripts/depclean.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bundle/scripts') diff --git a/bundle/scripts/depclean.js b/bundle/scripts/depclean.js index 6d9a2260..830081b9 100644 --- a/bundle/scripts/depclean.js +++ b/bundle/scripts/depclean.js @@ -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`), -- cgit 1.5.1