Commit d936c90
committed
fix(tsconfig): set explicit rootDir for TS6 builds
- Purpose: keep declaration builds working after the PR upgrades TypeScript from v5 to v6.
- Before: \tsconfig.json(8,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
tsconfig.json(9,5): error TS5023: Unknown compiler option 'allowImportingTsExtensions'.
tsconfig.json(10,5): error TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. inferred the common source directory and CI failed with TS5011 under TypeScript 6.
- Why that was a problem: the PR branch looked green locally with stale dependencies, but the actual CI environment installs the new compiler and the build stopped before publish.
- What this change accomplishes: it makes the source layout explicit so declaration emit remains stable on TypeScript 6.
- How it works: set \rootDir\: \src\ in \ to match the package entrypoints and output structure.1 parent 6611e12 commit d936c90
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
0 commit comments