nodejs / nodejs/corepack

Feature request: read `packageManager` and `devEngines` fields from outside of package.json

Open
#682 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.8k
Forks
279
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Use case:

When developing some projects which reject to add packageManager and devEngines fields to its package.json, it would be not easy to use correct pacakge manager and package manager version, even though I've enabled corepack.

if corepack reads packageManager and devEngines fields from outside of package.json like .corepack.env, it would be convenient.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how Corepack currently obtains packageManager and devEngines from package.json, then compare that behavior with the proposed .corepack.env source. Define the precedence and accepted format for external values; done means Corepack selects the requested package manager and version when those fields are provided outside package.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.