Skip to content

Commit 3220d2a

Browse files
committed
improve logging
1 parent 5ce4755 commit 3220d2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rebuild-build-single.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Pass list of frameworks
4343
*/
4444
function runCommand(command, cwd = undefined) {
4545
console.log(command);
46+
if (cwd) {
47+
if (!fs.existsSync(cwd)) {
48+
throw `working directory ${cwd} doesn't exist.`;
49+
}
50+
}
4651
execSync(command, { stdio: "inherit", cwd });
4752
}
4853

0 commit comments

Comments
 (0)