@types/node should not be set to an exact version in dependencies #1867
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
semver:patch
Milestone
The
@slack/bolt
package specifies an exact version of@types/node
in it'sdependencies
list, rather thandevDependencies
. This pollutes the types of any project that uses it, because they are very unlikely to have that exact version too, and may run an entirely different version of Node and require different types.Reproducible in:
The Slack SDK version
@slack/bolt >=3.12.2
Node.js runtime version
All versions
Steps to reproduce:
Add
@slack/bolt
>=3.12.2 to any projectExpected result:
@slack/bolt
should not have@types/node
in thedependencies
list unless Node.js types are referenced in the public interface. If it does require@types/node
then it should permit all versions that@slack/bolt
supports, without specifying an exact version.Actual result:
@slack/bolt
forces the install of "@types/node" v18 or above in the project.Requirements
See above
The text was updated successfully, but these errors were encountered: