mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Log reminder about tsc if DocLint fails locally (#5652)
I lost some time debugging before realising that I needed to run tsc. I don't really want to put `npm run tsc` before this command else we'll run tsc multiple times on each CI build, so I think this message is suitable. Travis defines `process.env.TRAVIS` and if that exists we don't want to log this as on CI we're guaranteed to have an up to date `lib/` directory.
This commit is contained in:
parent
37bae17038
commit
a9f6a266b9
@ -87,6 +87,10 @@ async function run() {
|
||||
clearExit = false;
|
||||
}
|
||||
console.log(`${errors.length} failures, ${warnings.length} warnings.`);
|
||||
|
||||
if (!clearExit && !process.env.TRAVIS)
|
||||
console.log('\nIs your lib/ directory up to date? You might need to `npm run tsc`.\n');
|
||||
|
||||
const runningTime = Date.now() - startTime;
|
||||
console.log(`DocLint Finished in ${runningTime / 1000} seconds`);
|
||||
process.exit(clearExit ? 0 : 1);
|
||||
|
Loading…
Reference in New Issue
Block a user