You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some valid feedback on the subject. pnpm pkg doesn't have npm pkg that is very good when you want to read/write/delete in multiple package.json files. https://docs.npmjs.com/cli/v9/commands/npm-pkg
I know that you can write pnpm -r exec npm pkg get version but the output is not the same and not JSON parsable.
I rather define workspaces in one place and not have to maintain two places like package.json and pnpm-workspace.yaml.
> npm pkg get name version --ws
{
"hello": {
"name": "hello",
"version": "0.0.1"
},
"world": {
"name": "world",
"version": "1.0.0"
}
}
vs
> pnpm -r exec npm pkg get name version
{
"name": "hello",
"version": "0.0.1"
}
{
"name": "world",
"version": "1.0.0"
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@zkochan #2255
I have some valid feedback on the subject.
pnpm pkg
doesn't havenpm pkg
that is very good when you want to read/write/delete in multiplepackage.json
files.https://docs.npmjs.com/cli/v9/commands/npm-pkg
I know that you can write
pnpm -r exec npm pkg get version
but the output is not the same and not JSON parsable.I rather define workspaces in one place and not have to maintain two places like
package.json
andpnpm-workspace.yaml
.vs
Beta Was this translation helpful? Give feedback.
All reactions