-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtsconfig.json
More file actions
35 lines (35 loc) · 1.7 KB
/
Copy pathtsconfig.json
File metadata and controls
35 lines (35 loc) · 1.7 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
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
// `outDir` / `rootDir` were removed and `noEmit` set as a CONSEQUENCE of
// the `paths` block below — the same correction
// `packages/qa/downstream-contract` made for the same reason. tsc emits
// nothing for this app either way (`typecheck` is `tsc --noEmit`; the app
// is BUILT by the ObjectStack CLI, not by tsc), but an emit-shaped config
// still enforces the output-tree rules: `rootDir` is inferred from the
// `include` roots, so formula's source — pulled in by an import, never a
// root — produced a wall of `TS6059: File '.../packages/formula/src/...'
// is not under 'rootDir'` that would drown any real error this typecheck
// exists to print.
"noEmit": true,
//
// #8990: `test/action-predicate-sparse-face.test.ts` imports the CEL engine
// to evaluate this app's row-action predicate. Without this rule the import
// resolves through the workspace link to `packages/formula/dist/*.d.ts` — a
// BUILD ARTIFACT — so `tsc --noEmit` would be checking against whatever was
// last built rather than against the source in this checkout, and a stale
// `dist` typechecks green over an engine contract that has since moved.
// `pnpm check:type-source-resolution` is the gate; it wants the `paths`
// rule, not a registry entry.
"paths": {
"@objectstack/formula": ["../../packages/formula/src/index.ts"]
}
},
"include": ["src/**/*", "objectstack.config.ts", "test/**/*", "vitest.config.ts"]
}