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

fix(upgrade): use preferred-pm instead of which-pm-runs #11139

Merged
merged 1 commit into from
May 24, 2024

Conversation

Princesseuh
Copy link
Member

Changes

@astrojs/upgrade wrongfully used the current package manager used to run the command instead of the package manager used to install the project its run in. This normally would be fine, however many people uses npx even when using pnpm and other package managers, so using the package manager of the project ends up working better

image

Notice it now using pnpm despite using npx in this screenshot.

Testing

Tested manually, see screenshot

Docs

N/A

Copy link

changeset-bot bot commented May 24, 2024

🦋 Changeset detected

Latest commit: 448f093

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me 👍

@Princesseuh Princesseuh merged commit aaf0635 into main May 24, 2024
14 checks passed
@Princesseuh Princesseuh deleted the fix/upgrade-preferred branch May 24, 2024 12:58
@astrobot-houston astrobot-houston mentioned this pull request May 24, 2024
@@ -8771,6 +8771,13 @@ packages:
resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==}
dev: true

/@types/[email protected]:
resolution: {integrity: sha512-Ub1de7EkdavsyM1KNrTb1K1QL+ISepEELELh2QWccyDcVEcyUDiGoYzzOJfonpGNwpymYXY13oRFpXQluGOC5w==}
deprecated: This is a stub types definition. preferred-pm provides its own type definitions, so you do not need this installed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that the types package isn't needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I'll update this when possible!

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

Successfully merging this pull request may close these issues.

None yet

5 participants