@directivegames/genesys.sdk 3.3.9 → 3.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -367,9 +367,15 @@ export async function buildProject(projectPath, runTsc, logger, handler) {
|
|
|
367
367
|
logger.log(`Using tsc: ${tscBinary}`);
|
|
368
368
|
// Only type check, don't emit files - esbuild will handle transpilation
|
|
369
369
|
// --incremental speeds up subsequent builds by caching results
|
|
370
|
-
await runCommandAsync(tscCommand, projectFolder, logger);
|
|
370
|
+
const tscResult = await runCommandAsync(tscCommand, projectFolder, logger);
|
|
371
371
|
const durationSec = (Date.now() - beginTime) / 1000;
|
|
372
372
|
logger.log(`Stats: TypeScript type checking completed in ${durationSec}s`);
|
|
373
|
+
if (tscResult.error && tscResult.error.code !== 0) {
|
|
374
|
+
// tsc outputs errors to stdout, not stderr
|
|
375
|
+
const errorOutput = tscResult.stdout || tscResult.stderr || tscResult.error.message;
|
|
376
|
+
await handler.ui.showErrorDialog('TypeScript type checking failed', errorOutput);
|
|
377
|
+
throw new Error(`TypeScript type checking failed: ${errorOutput}`);
|
|
378
|
+
}
|
|
373
379
|
}
|
|
374
380
|
{
|
|
375
381
|
const gameBundleFilePath = path.join(distFolder, ENGINE.DEFAULT_GAME_BUNDLE_NAME);
|