From f4f54ec0736ef343e49c2589b312aaa313e490f0 Mon Sep 17 00:00:00 2001 From: Justin Irabor Date: Mon, 24 Oct 2022 20:03:13 +0100 Subject: [PATCH] TSC error suppression for latest versions --- lib/cli/cli.js | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cli/cli.js b/lib/cli/cli.js index e10292da..40c8fa94 100755 --- a/lib/cli/cli.js +++ b/lib/cli/cli.js @@ -58,7 +58,7 @@ export async function buildCom(source, target, { verbose = false }) { signale.success(`Generated ${CONTRACT_TARGET} contract successfully!`); } async function checkTsBuildWithTsc(sourceFileWithPath, verbose = false) { - await executeCommand(`${TSC} --noEmit --experimentalDecorators --target es2020 --moduleResolution node ${sourceFileWithPath}`, verbose); + await executeCommand(`${TSC} --noEmit --skipLibCheck --experimentalDecorators --target es2020 --moduleResolution node ${sourceFileWithPath}`, verbose); } // Common build function async function createJsFileWithRullup(sourceFileWithPath, rollupTarget, verbose = false) { diff --git a/tsconfig.json b/tsconfig.json index 5bcef427..20b33fd7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,8 @@ "noUnusedLocals": true, "experimentalDecorators": true, "resolveJsonModule": true, - "allowJs": true + "allowJs": true, + "skipLibCheck": true, }, "files": [ "src/index.ts",