Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
40 lines (40 loc) · 1.52 KB
/
Copy pathtsconfig.json
File metadata and controls
40 lines (40 loc) · 1.52 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
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"noEmit": false,
"declaration": true,
// The incremental build RECORD, pinned OUTSIDE the published build output.
// Left unpinned, TypeScript derives it from `outDir`/`rootDir`: a package with
// no `rootDir` gets `dist/tsconfig.tsbuildinfo` -- inside what `files: ["dist",
// ...]` publishes -- and `pnpm check:published-dist` then reds on a byte-identical
// tree as soon as anything runs `tsc` (objectui#9189). Pinned in every composite
// package so the location is a decision, not a side effect of an unrelated option.
"tsBuildInfoFile": "./tsconfig.tsbuildinfo",
"composite": true,
"declarationMap": true,
"skipLibCheck": true
},
"include": ["src"],
// Tooling is excluded by DIRECTORY, not just by file NAME. A helper under
// `__tests__/` that is not itself called `*.test.ts` is otherwise a program
// input, and an EMITTING program writes it into the published `dist`
// (objectui#4006 / #4836 / #6943 -- the same defect three times, each found
// by hand). Enforced repo-wide by `pnpm check:published-tsconfig-exclude`
// (objectui#7212), which derives these directory names from `TOOLING_FILE`
// in scripts/check-phantom-dependencies.mjs.
"exclude": [
"node_modules",
"dist",
"**/__tests__/**",
"**/__mocks__/**",
"**/__benchmarks__/**",
"**/*.test.ts",
"**/*.test.tsx"
]
}