The runtime build installs the module's SDK itself and shows its compiler's output

A module never built on this workstation had no node_modules, tsc failed on the
first import behind /dev/null, and the suite reported a build that said nothing.
This commit is contained in:
2026-09-21 20:31:47 +02:00
parent 64c081d025
commit 2f11a29c4d
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ export function rebuild(env: NodeJS.ProcessEnv = process.env, testFiles: string[
// the code in front of you, which is the whole of 005.
throw new Error(
`could not build the ${build.what}: ${build.argv.join(" ")} in ${build.in}\n\n` +
`${(ran.stderr || ran.stdout || String(ran.error)).trim()}`,
`${(ran.stderr || ran.stdout || (ran.error ? String(ran.error) : `exit status ${ran.status}, and it said nothing`)).trim()}`,
);
}
built.push(build.what);