mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
fix(cli): tsc build errors should fail turborepo builds as well (#3923)
This commit is contained in:
parent
1d4f92a657
commit
f22bd2805d
|
@ -14,7 +14,12 @@ const publicApiEnabled = process.env.N8N_PUBLIC_API_DISABLED !== 'true';
|
||||||
|
|
||||||
shell.rm('-rf', path.resolve(ROOT_DIR, 'dist'));
|
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) {
|
if (userManagementEnabled) {
|
||||||
copyUserManagementEmailTemplates();
|
copyUserManagementEmailTemplates();
|
||||||
|
|
Loading…
Reference in a new issue