forked from primer/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.build.json
More file actions
25 lines (25 loc) · 790 Bytes
/
tsconfig.build.json
File metadata and controls
25 lines (25 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"extends": "./tsconfig.json",
"compilerOptions": {
"emitDeclarationOnly": true
},
// NOTE: We exclude Storybook stories and test utilities which import
// Storybook and its dependencies, because:
// a) we don't want Storybook types in our build output, and
// b) we don't want transitive dependencies, like @emotion/core, to have
// their React interface augmentations in our build output.
// See also:
// - https://github.com/primer/react/issues/1163
// - https://github.com/primer/react/issues/1849
"exclude": [
"src/utils/story-helpers.tsx",
"**/*.stories.tsx",
"**/*.test.tsx",
"script/**/*.ts",
"src/__tests__/",
"src/utils/test-*.tsx",
"src/utils/testing.tsx",
"e2e/**/*.ts",
"playwright.config.ts"
]
}