Skip to content

Commit 7daa22e

Browse files
committed
fix: compile script check
1 parent f58c7f7 commit 7daa22e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/cmds/docker_cmds/build.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ export const handler = async (argv) => {
2727
await fs.writeFile(tmpDockerfile, dockerfile);
2828

2929
// try running compile before hand
30-
if (argv.pkg.scripts.compile && await $`npm run compile`) {
31-
console.log('Error: failed to run compile');
32-
process.exit(1);
30+
if (argv.pkg.scripts.compile) { {
31+
await $({ stdio: 'inherit' })`npm run compile`
3332
}
3433

3534
const args = ['-t', mainTag, '-f', tmpDockerfile];

0 commit comments

Comments
 (0)