fix(cli): print tsc error correctly (#11680)
This commit is contained in:
@@ -104,7 +104,10 @@ async function buildTypeDeclarations() {
|
|||||||
const tsConfig = join(process.cwd(), 'tsconfig.declaration.json');
|
const tsConfig = join(process.cwd(), 'tsconfig.declaration.json');
|
||||||
|
|
||||||
if (existsSync(tsConfig)) {
|
if (existsSync(tsConfig)) {
|
||||||
await execa('tsc', ['-p', tsConfig]);
|
await execa('tsc', ['-p', tsConfig], {
|
||||||
|
stdout: 'inherit',
|
||||||
|
stderr: 'inherit',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user