Skip to content

Commit 5530cf3

Browse files
lobsterkatieAbhiPrasad
authored andcommitted
fix(build): Prevent redundant typechecking (#5115)
When the tsconfig option`skipLibCheck`[1] is false (as it is by default), TS typechecks not only your code, and not only the code you use from dependencies, but the entire codebase of all of your dependencies. Not only does this seem like overkill, in our case it's actually largely redundant, because our packages have very few dependencies other than each other. Turning this off speeds up the build and prevents us from, for example, typechecking the entire `utils` package 15 times (once for its own sake, and once for every one of the 14 packages which depend on it). [1] https://www.typescriptlang.org/tsconfig#skipLibCheck
1 parent 4d5f40f commit 5530cf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"allowSyntheticDefaultImports": true,
66
"declaration": false,
77
"declarationMap": false,
8+
"skipLibCheck": true,
89
"types": ["node"],
910
}
1011
}

0 commit comments

Comments
 (0)