diff --git a/scripts/buildTs.js b/scripts/buildTs.js index 72568f3..e7b4b0c 100644 --- a/scripts/buildTs.js +++ b/scripts/buildTs.js @@ -180,17 +180,14 @@ const readFilePromise = util.promisify(fs.readFile); }), ), ); + console.log( + chalk.inverse.green(' Successfully validated TypeScript definition files '), + ); } catch (e) { console.error( chalk.inverse.red(' Unable to validate TypeScript definition files '), ); - - throw e; } - - console.log( - chalk.inverse.green(' Successfully validated TypeScript definition files '), - ); })().catch(error => { console.error('Got error', error.stack); process.exitCode = 1;