nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.46k stars 160 forks source link

fix(use): create `package.json` when calling `corepack use` on empty dir #350

Closed aduh95 closed 7 months ago

aduh95 commented 8 months ago

Fixes: https://github.com/nodejs/corepack/issues/347

aduh95 commented 7 months ago

NIT: This seems more like a new feature (feat:) than a bugfix (fix:).

I chose fix because it was already the intent of the code, as you can see the 'NoProject' string was already supposed to mark the creation of a package.json. No strong feelings though

merceyz commented 7 months ago

Right, in that case I agree, it's a bugfix 👍