parent
4f07a36680
commit
5682c77255
|
@ -97,7 +97,6 @@ const readFilePromise = util.promisify(fs.readFile);
|
|||
});
|
||||
|
||||
const args = [
|
||||
'tsc',
|
||||
'-b',
|
||||
...packagesWithTs.map(({packageDir}) => packageDir),
|
||||
...process.argv.slice(2),
|
||||
|
@ -106,7 +105,7 @@ const readFilePromise = util.promisify(fs.readFile);
|
|||
console.log(chalk.inverse(' Building TypeScript definition files '));
|
||||
|
||||
try {
|
||||
await execa('yarn', args, {stdio: 'inherit'});
|
||||
await execa('tsc', args, {stdio: 'inherit'});
|
||||
console.log(
|
||||
chalk.inverse.green(' Successfully built TypeScript definition files '),
|
||||
);
|
||||
|
@ -114,7 +113,6 @@ const readFilePromise = util.promisify(fs.readFile);
|
|||
console.error(
|
||||
chalk.inverse.red(' Unable to build TypeScript definition files '),
|
||||
);
|
||||
throw e;
|
||||
}
|
||||
|
||||
console.log(chalk.inverse(' Validating TypeScript definition files '));
|
||||
|
|
Loading…
Reference in New Issue