summary refs log tree commit diff
path: root/bundle/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/scripts')
-rw-r--r--bundle/scripts/depclean.js4
1 files changed, 3 insertions, 1 deletions
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`),