Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for pnpm package.yaml ? #579

Open
la-magra opened this issue Nov 24, 2024 · 0 comments
Open

Support for pnpm package.yaml ? #579

la-magra opened this issue Nov 24, 2024 · 0 comments

Comments

@la-magra
Copy link

Having a project that uses pnpm's package.yaml (ours are extensively commented), we get:

$ corepack up
Usage Error: Couldn't find a project in the local directory - please explicit the package manager to pack, or run this command from a valid project

Right now we are using the following script for corepack updates, in case someone needs it:

(yq -Poj package.yaml > package.json) && corepack up && pmversion=$(yq '.packageManager' package.json) && yq -i ".packageManager = ${pmversion}" package.yaml && rm package.json

Perhaps adding support to package.yaml could be useful for projects that use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant