Skip to content

Commit 06aa342

Browse files
committed
Return error code on failure to compile
1 parent 05bf600 commit 06aa342

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/compile-config.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ if (args.e) {
5454
const scanGlobal: boolean = !!args.g;
5555

5656
compileConfig({ mainModulePath, scanGlobal }, configPath, configStreamRaw, configResourceUri,
57-
exportVariableName).then(console.log).catch(console.error);
57+
exportVariableName).then(console.log).catch((e) => {
58+
console.error(e);
59+
process.exit(1);
60+
});

0 commit comments

Comments
 (0)