Skip to content

Add support for the devEngines field #2050

@mrazauskas

Description

@mrazauskas

The devEngines field is some new standard field of package.json.

When the volta field is not defined, perhaps the devEngines field could be taken into account?

Specification: https://github.com/openjs-foundation/package-metadata-interoperability-collab-space/blob/main/devengines-field-proposal.md


It seems to be useful to have a dev requirements shared between tooling. The packageManager field was obviously not enough for Volta, because it does not cover Node.js version. The devEngines field covers both Node.js and package manager.

Volta is great! It does incredible job with projects that are set up using Volta and have the volta field. But if I wish to make a quick contribution to a project that was setup using corepack.. ups.. I have to disable Volta manually first.

Adding support for the devEngines field would solve the problem. It would not matter which dependency manager is used.


This proposal might sound similar to #2033. I think my idea is different. The proposal in #2033 is a breaking change and can be implemented in long term, of course. My suggestion is not a breaking change: as usual, look for the volta field first, if it is not defined try the devEngines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions