From f22bd2805d87c552d92d0da0313bf7f9c498f103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 23 Aug 2022 17:06:20 +0200 Subject: [PATCH] fix(cli): tsc build errors should fail turborepo builds as well (#3923) --- packages/cli/scripts/build.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cli/scripts/build.mjs b/packages/cli/scripts/build.mjs index ea9102b795eda..48e6722285536 100644 --- a/packages/cli/scripts/build.mjs +++ b/packages/cli/scripts/build.mjs @@ -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();