Skip to content

Upgrade pkg.engines.node to LTS/Maintenance version ranges #3

@anddoutoi

Description

@anddoutoi

Issue

Current pkg.engines.node is set to >=10.18.

  • v10 reached End-of-life a long time ago (2021-04-30)
  • Using >= means that this package endorse the use of unstable and "odd major versions"

Suggestion

pkg.engines.node should only use version ranges for stable releases and in best cases only endorse LTS versions.

It could look something like:

{
  "engines": {
    "node": "^14 || ^16 || ^18"
  }
}

npm pkg set engines.node='^14 || ^16 || ^18' should probably do the trick.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions