boltpkg / bolt

⚡️ Super-powered JavaScript project management
MIT License
2.34k stars 84 forks source link

Bolt add fails when using dist-tag versions if dependency already exists in workspaces #274

Closed Blasz closed 3 years ago

Blasz commented 4 years ago

We changed bolt add recently to work if the dependency already existed in the repo, similar to yarn.

When using dist-tag versions, e.g. bolt add foo@latest, it will update workspace versions of that dependency to 'latest' rather than the resolved version. The original dependency version in the root package.json is correct.

I've confirmed that bolt upgrade works correctly so it's just an issue with bolt add.