Skip to content

chore(W-22515355): upgrade to typescript 6 - #1641

Merged
jfeingold35 merged 3 commits into
mainfrom
k80/ts-v6
Aug 27, 2026
Merged

chore(W-22515355): upgrade to typescript 6#1641
jfeingold35 merged 3 commits into
mainfrom
k80/ts-v6

Conversation

@k80bowman

Copy link
Copy Markdown
Contributor

What does this PR do?

Upgrades the dev toolchain to TypeScript 6. Specifically:

  1. Bumps the typescript devDependency from ^5 to ^6.0.3.
  2. Sets explicit module/moduleResolution: nodenext across the root/test tsconfigs and all test fixtures, as required by TS 6's stricter defaults.
  3. Switches rootDirs: ["./src"] to rootDir: "./src" in the root tsconfig.

Repro

Manual testing is not applicable for this change — it's a dev-tooling upgrade covered by the existing build and automated test suite. To verify:

  1. yarn install
  2. yarn build — compiles cleanly under TypeScript 6.
  3. yarn test — existing unit/integration tests pass.

What issues does this PR fix or reference?

@W-22515355@

Bump typescript devDependency ^5 -> ^6.0.3. Set explicit
module/moduleResolution: nodenext across tsconfigs and test
fixtures, and switch rootDirs -> rootDir, as required by the
stricter TS 6 defaults.
"compilerOptions": {
"outDir": "./lib",
"rootDirs": ["./src"]
"rootDirs": ["./src"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why didn't the rootDirs property in this and the others need to change to rootDir like the top-level one did?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure. I suspect it's because it doesn't really matter. Claude changed the top-level one and it made sense so I left it. But whether it's rootDirs with an array of one or rootDir with a string doesn't make a difference.

@jfeingold35
jfeingold35 merged commit 26cac1a into main Aug 27, 2026
224 of 247 checks passed
@jfeingold35
jfeingold35 deleted the k80/ts-v6 branch August 27, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants