Skip to content

Upgrade to TypeScript 6.0 - #191

Open
ajeetdsouza wants to merge 4 commits into
mainfrom
ajeet/ts6
Open

ajeetdsouza wants to merge 4 commits into
mainfrom
ajeet/ts6

Conversation

@ajeetdsouza

Copy link
Copy Markdown
Contributor

Also removed "esModuleInterop": false - it is deprecated in TypeScript 6.0, and removed in 7.0.

Signed-off-by: Ajeet D'Souza <[email protected]>
Comment thread packages/example/tsconfig.json Outdated
Comment thread packages/example/tsconfig.json Outdated
Signed-off-by: Ajeet D'Souza <[email protected]>
Signed-off-by: Ajeet D'Souza <[email protected]>
"prebuild": "rm -rf ./dist/*",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:cjs": "tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --ignoreDeprecations 6.0 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ignoring the deprecation via a flag looks good to me. In protobuf-es, connect-es, and connectrpc/connect-playwright-es#207 we're setting the tsconfig option instead. In connectrpc/connect-query-es#605, we're using both. Can we make this consistent? Will make reviews and future changes much easier.

@ajeetdsouza ajeetdsouza Sep 21, 2026 •

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.

That's deliberate - in connectrpc/connect-playwright-es#207 and connectrpc/connect-query-es#605, when we set ignoreDeprecations, the tsconfig itself uses moduleResolution=Node10. I figured we could upgrade the moduleResolution in a separate PR since it's not related to TS 6.0, but if we want a consistent set of PRs, I can make that change in this PR itself.

Signed-off-by: Ajeet D'Souza <[email protected]>
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