-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[next] use
tsconfig.build.json
for production build (#76373)
### Why? The types of unit tests and stories were included in the package. Exclude them by using `tsconfig.declaration.json` when `pnpm run types` during production build. | Before | After | |--------|--------| |  |  | Closes NDX-747 --------- Co-authored-by: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>
- Loading branch information
1 parent
58d328a
commit 4b23c7b
Showing
4 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
// Copied from tsconfig.json to not overwrite. | ||
"exclude": [ | ||
"dist", | ||
"./*.d.ts", | ||
"future/*.d.ts", | ||
"image-types/global.d.ts", | ||
"compat/*.d.ts", | ||
"legacy/*.d.ts", | ||
"types/compiled.d.ts", | ||
"navigation-types/*.d.ts", | ||
"navigation-types/compat/*.d.ts", | ||
"experimental/**/*.d.ts", | ||
// Don't generate types for internal files. | ||
"./**/*.test.ts", | ||
"./**/*.test.tsx", | ||
"./**/*.stories.tsx" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters