From 3f80612210bd1f0165272fc692ac558433e8b1fe Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Wed, 15 Mar 2023 16:17:38 +0100 Subject: [PATCH] forward error output --- generate-type-definitions.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/generate-type-definitions.js b/generate-type-definitions.js index 6ec2f313c3..4a36330b13 100644 --- a/generate-type-definitions.js +++ b/generate-type-definitions.js @@ -3,12 +3,7 @@ const { execSync } = require('child_process'); const { readFileSync, writeFileSync } = require('fs'); -try { - execSync('tsc -p src/compiler --emitDeclarationOnly && tsc -p src/runtime --emitDeclarationOnly'); -} catch (err) { - console.error(err.stderr.toString()); - throw err; -} +execSync('tsc -p src/compiler --emitDeclarationOnly && tsc -p src/runtime --emitDeclarationOnly', { stdio: 'inherit' }); // We need to add these types to the .d.ts files here because if we add them before building, the build will fail, // because the TS->JS transformation doesn't know these exports are types and produces code that fails at runtime. // We can't use `export type` syntax either because the TS version we're on doesn't have this feature yet.