From 9f49db1bd29e9a2777f6d108389a0120ab707764 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 14 Jun 2024 11:15:20 +0200 Subject: [PATCH] Speed up check-build-type-declaration-files (#62538) * Remove npx usage from declaration checking script * Revert "Remove npx usage from declaration checking script" This reverts commit d5a1fe51a3fbb7cd42c8300249aad63b7b4141f7. * Try skipLibCheck Co-authored-by: sirreal Co-authored-by: cbravobernal Co-authored-by: noahtallen --- bin/packages/check-build-type-declaration-files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/packages/check-build-type-declaration-files.js b/bin/packages/check-build-type-declaration-files.js index 3d70145ceb588e..ffc68c83b8da8e 100644 --- a/bin/packages/check-build-type-declaration-files.js +++ b/bin/packages/check-build-type-declaration-files.js @@ -70,7 +70,7 @@ async function getDecFile( packagePath ) { async function typecheckDeclarations( file ) { return new Promise( ( resolve, reject ) => { exec( - `npx tsc --target esnext --moduleResolution node --noEmit "${ file }"`, + `npx tsc --target esnext --moduleResolution node --noEmit --skipLibCheck "${ file }"`, ( error, stdout, stderr ) => { if ( error ) { reject( { file, error, stderr, stdout } );