fix(cli): tsc build errors should fail turborepo builds as well (#3923)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-08-23 17:06:20 +02:00 committed by GitHub
parent 1d4f92a657
commit f22bd2805d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();