-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathtsconfig.json
33 lines (32 loc) · 1.17 KB
/
tsconfig.json
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
26
27
28
29
30
31
32
33
{
"extends": "@automattic/calypso-typescript-config/mixed-package.json",
"compilerOptions": {
"rootDir": ".",
"noEmit": true,
"types": [ "node", "@types/gtag.js", "@emotion/react/types/css-prop" ],
"paths": {
"calypso/*": [ "./*" ],
// Workaround for https://github.com/Automattic/wp-calypso/pull/57487#issuecomment-957104486
// TLDR: We have `node_modules/history` and `node_modules/@types/history`, which have incompatible types.
// `tsc` will always pick the former by default, even if the project depends on the latter. Hardcoding the
// path here works around that limitation.
// To be removed when we don't have `@types/history` (brought in by `history@^4`) in our dependency tree.
"history": [ "../node_modules/@types/history" ]
}
},
"references": [ { "path": "../packages" }, { "path": "../build-tools" } ],
"include": [
"**/*",
"./lib/domains/tlds/wpcom-multi-level-tlds.json",
"./__mocks__/lib/json-schema-draft-04.json",
"./package.json",
"./state/data-layer/wpcom/sites/jitm/schema.json",
"./declarations.d.ts"
],
"exclude": [
"./**/node_modules/**/*",
"./**/test/**/*",
"./server/devdocs/search-index.js",
"./**/.stories.tsx"
]
}