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

chore: specify packageManager in package.json #3359

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

erickzhao
Copy link
Member

@erickzhao erickzhao commented Sep 20, 2023

For folks using the Corepack feature in Node.js, packageManager specifies which package manager version to use. Not sure if we want to land this right away since the feature isn't marked as stable in Node.js yet, but people using Corepack with the --activate (global fallback version) flag might be installing the wrong version of Yarn.

ref #3357 (comment)

Note: this feature is still marked as experimental. See nodejs/corepack#104 for discussion of stability.

@erickzhao erickzhao requested a review from a team as a code owner September 20, 2023 16:54
@erickzhao erickzhao force-pushed the chore/package-manager-corepack branch from 7f92a43 to 9679667 Compare September 20, 2023 17:07
@@ -174,6 +174,7 @@
"prettier": {
"singleQuote": true
},
"packageManager": "yarn@1.22.18+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447",
Copy link
Member Author

@erickzhao erickzhao Sep 20, 2023

Choose a reason for hiding this comment

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

sha1 hash grabbed from npm show yarn@1.22.19 (ref nodejs/corepack#231)

Copy link
Member

Choose a reason for hiding this comment

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

@erickzhao, just realized this lists 1.22.18 but the SHA is for 1.22.19 - is that going to cause a problem?

@VerteDinde VerteDinde merged commit 665a911 into main Oct 31, 2023
5 checks passed
@VerteDinde VerteDinde deleted the chore/package-manager-corepack branch October 31, 2023 20:40
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.

4 participants