forked from noodlapp/noodl
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtsconfig.json
More file actions
56 lines (56 loc) · 2.59 KB
/
Copy pathtsconfig.json
File metadata and controls
56 lines (56 loc) · 2.59 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"compilerOptions": {
"jsx": "react",
"lib": ["ES2019", "DOM", "DOM.Iterable", "ESNext"],
"target": "ES2019",
"noImplicitAny": false,
"esModuleInterop": true,
"sourceMap": true,
"module": "ES2020",
"moduleResolution": "node",
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
// Resolve @noodl/runtime to declarations, not sources — this program includes
// `noodl-viewer-react/src`, compiles at `module: ES2020`, and would otherwise pull
// runtime `.ts` files into an ESM program where `export =` is TS1203. The same
// mapping lives in `packages/noodl-viewer-react/tsconfig.json`; see PLAT-006.
// Generate the tree with `npm run build:types` in `packages/noodl-runtime`.
"@noodl/runtime": ["./packages/noodl-runtime/dist-types/noodl-runtime.d.ts"],
"@noodl/runtime/src/*": ["./packages/noodl-runtime/dist-types/src/*"],
"@noodl-viewer-cloud/execution-history": ["./packages/noodl-viewer-cloud/src/execution-history/index.ts"],
"@noodl-core-ui/*": ["./packages/noodl-core-ui/src/*"],
"@noodl-hooks/*": ["./packages/noodl-editor/src/editor/src/hooks/*"],
"@noodl-utils/*": ["./packages/noodl-editor/src/editor/src/utils/*"],
"@noodl-models/*": ["./packages/noodl-editor/src/editor/src/models/*"],
"@noodl-constants/*": ["./packages/noodl-editor/src/editor/src/constants/*"],
"@noodl-contexts/*": ["./packages/noodl-editor/src/editor/src/contexts/*"],
"@noodl-types/*": ["./packages/noodl-editor/src/editor/src/types/*"],
"@noodl-store/*": ["./packages/noodl-editor/src/editor/src/store/*"],
// CAN-002 added `versioning/` with the alias declared only in
// packages/noodl-editor/tsconfig.json, so `npm run typecheck` (which runs
// this program) could not resolve it: 18 TS2307s in files nobody had
// touched. Same two mappings, verbatim.
"@noodl-versioning": ["./packages/noodl-editor/src/editor/src/versioning/index.ts"],
"@noodl-versioning/*": ["./packages/noodl-editor/src/editor/src/versioning/*"]
}
},
"include": [
"packages/noodl-types/src/**/*",
"packages/noodl-core-ui/src/**/*",
"packages/noodl-editor/src/**/*",
"packages/noodl-editor/@include-types/**/*",
"packages/noodl-viewer-react/src/**/*",
"packages/noodl-platform/src/**/*",
"packages/noodl-platform-electron/src/**/*",
"packages/noodl-platform-node/src/**/*",
"packages/noodl-git/src/**/*"
],
"exclude": [
"node_modules",
"**/node_modules",
"**/*.stories.tsx"
]
}