Skip to content

Commit d936c90

Browse files
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

File tree

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"noUnusedParameters": true,
1616
"noFallthroughCasesInSwitch": true,
1717
"declaration": true,
18+
"rootDir": "src",
1819
"outDir": "dist"
1920
},
2021
"include": ["src"],
2122
"exclude": ["src/__tests__"]
22-
}
23+
}

0 commit comments

Comments
 (0)