-
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.81 KB
/
Copy pathtsconfig.json
File metadata and controls
35 lines (35 loc) · 1.81 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
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
// [#10101] Widened from `./src` as a CONSEQUENCE of the `paths` rule
// below, exactly as `packages/rest` records for #9960: redirecting
// `@objectstack/metadata-core` to source puts `packages/metadata-core/
// src/**` into this program, and `rootDir` is enforced over every
// program file even under `--noEmit` (TS6059). `../..` is the directory
// that genuinely contains every file in the program. Emit is unaffected:
// this package builds with tsup, and `typecheck` passes `--noEmit`.
"rootDir": "../..",
"types": ["node"],
"lib": ["ES2021"],
// [#10101] Resolve the shared platform-row resolver to SOURCE for
// `tsc --noEmit`, so this package's typecheck is a verdict about the
// checkout rather than about `metadata-core/dist` build state
// (`pnpm check:type-source-resolution` — same fix `packages/rest`
// records for `@objectstack/metadata-protocol`).
"paths": {
"@objectstack/metadata-core": ["../../metadata-core/src/index.ts"],
// [#12642] Resolve the i18n provenance seam to SOURCE. This package's
// translation barrel passes its committed
// `<locale>.source-hashes.generated.ts` companions through
// `withSourceFallback`, whose home is `@objectstack/platform-objects/apps`
// — a NEW type import here, so without this rule the typecheck would be a
// verdict about that package's `dist/` build state
// (`pnpm check:type-source-resolution`). Anchored on the SUBPATH: the
// bare key would match by prefix and resolve `/apps` through a file.
"@objectstack/platform-objects/apps": ["../../platform-objects/src/apps/index.ts"]
}
},
"include": ["src/**/*"],
"exclude": ["dist", "node_modules", "**/*.test.ts"]
}