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

when semver is wildcard, package.json is not updated with exact version #5681

Closed
1 task done
HomyeeKing opened this issue Nov 24, 2022 · 1 comment · Fixed by #5720
Closed
1 task done

when semver is wildcard, package.json is not updated with exact version #5681

HomyeeKing opened this issue Nov 24, 2022 · 1 comment · Fixed by #5720
Milestone

Comments

@HomyeeKing
Copy link
Contributor

HomyeeKing commented Nov 24, 2022

Describe the user story

{
  "typescript": "*"
}

after run pnpm i typescript@latest, the package.json still, expect to be "typescript": "4.9.3"
Describe the solution you'd like

when install with specified package, update the exact version repectively, like npm, i.e.

npm i typescript 
npm i typescript@latest

# both will update the package.json
{
  "typescript": "4.9.3"
}

Describe the drawbacks of your solution

Describe alternatives you've considered

@zkochan
Copy link
Member

zkochan commented Nov 25, 2022

I don't have objections.

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

Successfully merging a pull request may close this issue.

2 participants