Skip to content

Commit

Permalink
fix(cli): tsc build errors should fail turborepo builds as well (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Aug 23, 2022
1 parent 1d4f92a commit f22bd28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const publicApiEnabled = process.env.N8N_PUBLIC_API_DISABLED !== 'true';

shell.rm('-rf', path.resolve(ROOT_DIR, 'dist'));

shell.exec('tsc');
const tscCompilation = shell.exec('tsc', { silent: true })
if (tscCompilation.code !== 0) {
shell.echo('Typescript Compilation failed:');
shell.echo(tscCompilation.stdout);
shell.exit(1);
}

if (userManagementEnabled) {
copyUserManagementEmailTemplates();
Expand Down

0 comments on commit f22bd28

Please sign in to comment.