Skip to content

[js] Allow TypeScript 7 to be installed along with the CLI by dropping codemod - #1594

Open
brandur wants to merge 1 commit into
masterfrom
brandur/drop-ts-codemod
Open

brandur wants to merge 1 commit into
masterfrom
brandur/drop-ts-codemod

Conversation

@brandur

@brandur brandur commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

We got a report that our TypeScript install instructions don't work as
currently advertised because the codemod requires TypeScript <7 and TS
may resolve to 7+.

This could be fixed by pinning TypeScript 6 or give the codemod its own
compiler dependency, but that doesn't seem like a good long term
solution since this the codemod API isn't going to get any less
deprecated. There's also a possibility of upgrading to the new 7.1+
codemod API, but that may have incompatibilities with older TS
compilers.

I think the most practical approach here might just be to drop the
codemod, which is what we do here. It's very likely that the original TS
package never had many users to begin with, and for the users that it
did have, upgrading using an LLM wouldn't be too much harder than
through the official codemod.

…g codemod

We got a report that our TypeScript install instructions don't work as
currently advertised because the codemod requires TypeScript <7 and TS
may resolve to 7+.

This could be fixed by pinning TypeScript 6 or give the codemod its own
compiler dependency, but that doesn't seem like a good long term
solution since this the codemod API isn't going to get any less
deprecated. There's also a possibility of upgrading to the new 7.1+
codemod API, but that may have incompatibilities with older TS
compilers.

I think the most practical approach here might just be to drop the
codemod, which is what we do here. It's very likely that the original TS
package never had many users to begin with, and for the users that it
did have, upgrading using an LLM wouldn't be too much harder than
through the official codemod.
@brandur
brandur force-pushed the brandur/drop-ts-codemod branch from f7c180f to 7eb337c Compare November 10, 2026 21:55
@brandur
brandur requested a review from bgentry November 13, 2026 04:31
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.

1 participant