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