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
Corepack support (Yarn only) #1222
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colincasey
added a commit
that referenced
this pull request
Mar 25, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
Merged
colincasey
added a commit
that referenced
this pull request
Mar 25, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
colincasey
added a commit
that referenced
this pull request
Mar 25, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
joshwlewis
reviewed
Mar 26, 2024
joshwlewis
reviewed
Mar 26, 2024
joshwlewis
reviewed
Mar 26, 2024
joshwlewis
reviewed
Mar 27, 2024
joshwlewis
reviewed
Mar 27, 2024
joshwlewis
reviewed
Mar 27, 2024
colincasey
force-pushed
the
corepack_support
branch
3 times, most recently
from
March 27, 2024 15:43
213ab2e
to
4de5c95
Compare
colincasey
added a commit
that referenced
this pull request
Mar 27, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
joshwlewis
reviewed
Apr 1, 2024
colincasey
force-pushed
the
corepack_support
branch
2 times, most recently
from
April 2, 2024 12:20
375fd1a
to
6ac0c04
Compare
colincasey
added a commit
that referenced
this pull request
Apr 2, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
joshwlewis
approved these changes
Apr 2, 2024
colincasey
force-pushed
the
corepack_support
branch
2 times, most recently
from
April 4, 2024 12:36
b421ec1
to
a70cc6b
Compare
These changes lay the groundwork for [Corepack](https://nodejs.org/docs/latest/api/corepack.html) support in Node.js projects. [Yarn 4 already prefers corepack for installation](https://yarnpkg.com/getting-started/install) so this feature will be available for use with Yarn and, in the future, it will be expanded to support pnpm. [W-15237072](https://gus.lightning.force.com/a07EE00001m2GDFYA2)
colincasey
force-pushed
the
corepack_support
branch
from
April 4, 2024 13:33
2d536c5
to
3594407
Compare
joshwlewis
approved these changes
Apr 4, 2024
colincasey
added a commit
that referenced
this pull request
Apr 4, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
colincasey
added a commit
that referenced
this pull request
Apr 4, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
Merged
colincasey
added a commit
that referenced
this pull request
Apr 11, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
colincasey
added a commit
that referenced
this pull request
Apr 29, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
colincasey
added a commit
that referenced
this pull request
Apr 29, 2024
These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies
colincasey
added a commit
that referenced
this pull request
Apr 29, 2024
* pnpm support These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html). The build process has also been modified use the `pnpm` binary at the following stages: - installing dependencies - running build scripts: - `heroku-prebuild` - `build` (or `heroku-postbuild`) - `heroku-cleanup` - pruning dev dependencies * Prune the pnpm store periodically (#1231) * Multiple lockfiles error (#1228) These changes build on top of [existing pnpm support](#1224) and modify the failure message shown when multiple lockfiles are detected to now include pnpm. * Add pnpm caching (#1225) These changes build on top of [existing pnpm support](#1224) to allow `pnpm` dependencies to be saved and restored between builds. * pnpm support (default version) (#1226) These changes build on top of [existing pnpm support](#1224) to default to the `latest` version when it appears that pnpm should be used but there is no `engines.pnpm` or `packageManager` specified in `package.json`. * pnpm support engines (#1227) These changes build on top of [existing pnpm support](#1224) to use the version specified by the `engines.pnpm` field in `package.json`. * Only prune when it's safe to do so (#1238) * Update CHANGELOG.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes lay the groundwork for Corepack support in Node.js projects. Yarn 4 already prefers corepack for installation so this feature will be available for use with Yarn and, in the future, it will be expanded to support pnpm.
Usage
As stated in the Corepack docs, setting the package manager to be used is done using the
packageManager
field inpackage.json
:Notes
14.19.0
/16.9.0
, attempting to use it in an unsupported version will result in an error.packageManager
andengines.yarn
field ofpackage.json
then the version specified inpackageManager
will be used and a warning will be displayed noting this..yarn/releases
folder and referencing it usingyarnPath
from a project's.yarnrc.yml
. If a vendored binary is present and a Yarn version is set in thepackageManager
field ofpackage.json
then the vendored binary will be used and a warning will be displayed noting this.W-15237072