Skip to content

feat: add types: ["node"] to all node tsconfig bases#353

Open
RobinBol wants to merge 1 commit intotsconfig:mainfrom
RobinBol:feature/add-types-node-to-node-configs
Open

feat: add types: ["node"] to all node tsconfig bases#353
RobinBol wants to merge 1 commit intotsconfig:mainfrom
RobinBol:feature/add-types-node-to-node-configs

Conversation

@RobinBol
Copy link
Copy Markdown

Summary

Backwards compatibility note

Setting types: ["node"] explicitly is not fully backwards compatible for TS5 users. Previously, with types unset, TypeScript auto-included all @types/* packages from node_modules (e.g. @types/jest, @types/react). With this change, only @types/node is included. Users relying on other @types/* packages will need to add them to their own types array.

I've left versioning as-is for maintainers to decide on the appropriate bump (minor vs major).

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.

TS6/7 Breaking Change: need to add types: ["node"] to tsconfig

1 participant