corepack icon indicating copy to clipboard operation
corepack copied to clipboard

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

Open zanminkian opened this issue 9 months ago • 1 comments

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.

zanminkian avatar Mar 20 '25 03:03 zanminkian

You should expose your use-case in https://github.com/nodejs/corepack/pull/668, and explain why COREPACK_ENABLE_AUTO_PIN=0 is not enough

aduh95 avatar Mar 20 '25 10:03 aduh95