From f13daff434deada09558b53f508109596c411d20 Mon Sep 17 00:00:00 2001 From: Yadd Date: Sat, 16 Jul 2022 13:03:04 +0800 Subject: [PATCH] don't fail if typescript files contains references Forwarded: not-needed Last-Update: 2022-02-10 Gbp-Pq: Name dont-fail-on-typescript-references.patch --- scripts/buildTs.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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;