-
-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Description
Is your feature request related to a problem? Please describe.
The Package Metadata Interoperability Collab Space has a consensus on devEngines proposal, and it was merged in openjs-foundation/package-metadata-interoperability-collab-space#27
https://github.com/npm/cli/releases/tag/v10.9.0 has an initial implementation of this spec, as the following is an example user experience:
$ test-devEngines> npm -v
10.9.0
$ test-devEngines> echo '{ "devEngines": { "packageManager": { "name": "yarn" } } }' > package.json
$ test-devEngines> npm install
npm error code EBADDEVENGINES
npm error EBADDEVENGINES The developer of this package has specified the following through devEngines
npm error EBADDEVENGINES Invalid engine "packageManager"
npm error EBADDEVENGINES Invalid name "yarn" does not match "npm" for "packageManager"
npm error EBADDEVENGINES {
npm error EBADDEVENGINES current: { name: 'npm', version: '10.9.0' },
npm error EBADDEVENGINES required: { name: 'yarn' }
npm error EBADDEVENGINES }Although npm@10.9.0 implements this, the proposal doesn't explicitly mention whose responsibility it should be at the time of comment.
Describe the solution you'd like
Corepack implements devEngines proposal, so that existing users can continue using corepack.
Describe alternatives you've considered
Request my package manager to implement devEngines, and update my dependencies to that version
danielbayley and lishaduck
Metadata
Metadata
Assignees
Labels
No labels