mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(cli): print tsc error correctly (#11680)
This commit is contained in:
parent
2322f1d765
commit
7dce6d2f30
@ -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',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user