Skip to content

Commit

Permalink
Speed up check-build-type-declaration-files (#62538)
Browse files Browse the repository at this point in the history
* Remove npx usage from declaration checking script

* Revert "Remove npx usage from declaration checking script"

This reverts commit d5a1fe5.

* Try skipLibCheck

Co-authored-by: sirreal <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: noahtallen <[email protected]>
  • Loading branch information
4 people authored Jun 14, 2024
1 parent a7f74e5 commit 9f49db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/packages/check-build-type-declaration-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } );
Expand Down

0 comments on commit 9f49db1

Please sign in to comment.