-
Type:
Sub-task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: js-bson, TypeScript
-
0
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Use Case
As a... js-bson maintainer
I want... the library to build cleanly under TypeScript 6.0
So that... our CI exercises the full build pipeline, real regressions in upcoming TS versions are caught before they ship
User Experience
- check-typescript-next in .evergreen/config.yml flips from TRY_COMPILING_LIBRARY: "false" to "true"
- No behavioral change for end users - purely build-configuration maintenance.
Dependencies
- None
Risks/Unknowns
- N/A
Acceptance Criteria
Implementation Requirements
- In tsconfig.json: replace "moduleResolution": "node" with "bundler" (or justified alternative) - resolves TS5107.
- In tsconfig.json: add "rootDir": "src" - resolves TS5011, which TS 6.0 now requires when outDir is set with multiple source files.
- In .evergreen/config.yml, check-typescript-next task: flip TRY_COMPILING_LIBRARY from "false" to "true" and remove the accompanying TODO comment.
- Upgrade @microsoft/api-extractor if compatibility requires it.
Testing Requirements
- npm run build exits cleanly under TS 6.0 locally
- Diff emitted bson.d.ts and lib/* bundles against the TS 5.9.2 baseline; document/justify any non-trivial differences in the PR description.
Documentation Requirements
- None
Follow Up Requirements
- N/A