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
When adding a package to a yarn's workspace-enabled multi packages repository, it fails to add a package because the command needs the -W flag. From my understanding, arguments are not passed through.
To reproduce this bug:
In a new folder, create a package.json with:
{
"private": true,
"workspaces": ["packages/*"]
}
Run yarn
Run install-peerdeps <package> --dev -W -Y
The command fails with:
Running this command will add the dependency to the workspace root rather than workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
The text was updated successfully, but these errors were encountered:
No problem, I went the plain old way and simply installed the peer dependencies one by one. I was giving install-peerdeps a try for the first time and assumed that arguments were passed through. Apparently, it's more complicated than I thought. 😊
In v1.7.0 extra args can be passed through using --. In your case, you can update (yarn global add install-peerdeps) and then run install-peerdeps <package> --dev -Y -- -W.
Hope this helps if you ever choose to use this package again!
When adding a package to a yarn's workspace-enabled multi packages repository, it fails to add a package because the command needs the
-W
flag. From my understanding, arguments are not passed through.To reproduce this bug:
package.json
with:yarn
install-peerdeps <package> --dev -W -Y
The command fails with:
The text was updated successfully, but these errors were encountered: