Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
50 lines (50 loc) · 2.2 KB
/
Copy pathtsconfig.json
File metadata and controls
50 lines (50 loc) · 2.2 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
{
"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"],
// The exclusions cover TOOLING DIRECTORIES, not just the `*.test.*` name
// (objectui#4836). `vite-plugin-dts` builds its declaration program from this
// config, so a tooling file left in it is emitted into `dist` and published:
// measured, `src/__tests__/__mocks__/plugin-form.tsx` and `plugin-grid.tsx`
// are not `*.test.tsx` by name, so the old list let
// `dist/__tests__/__mocks__/plugin-{form,grid}.d.ts` (+ `.d.ts.map`) ship in
// the tarball. Same shape as objectui#4006, same cause — an exclusion table
// written against a filename pattern while the repo's convention is a
// directory one (`__tests__` / `__mocks__` / `__benchmarks__`, exactly as
// `TOOLING_FILE` in scripts/check-phantom-dependencies.mjs spells it).
//
// No type coverage moves with them. Both mocks are reached from the suites
// here through a `vi.mock()` factory that returns a dynamic
// `import('./__mocks__/plugin-grid')`, and a dynamic import with a literal
// specifier is a module edge `tsc` follows — so the `tsconfig.test.json`
// chained off `type-check` already reads both as program inputs (measured
// with `tsc --listFiles`), both before and after this change.
"exclude": [
"node_modules",
"dist",
"**/__tests__/**",
"**/__mocks__/**",
"**/__benchmarks__/**",
"**/*.test.ts",
"**/*.test.tsx"
]
}