-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(package manager): introduce Corepack (#674)
* chore(package manager): introduce Corepack From now on, we will use Corepack to manage pnpm versions. see https://nodejs.org/api/corepack.html see https://github.com/nodejs/corepack * ci(github actions): setup Corepack instead of pnpm Corepack automatically prepares the pnpm. Thus, all we have to do is execute the `corepack enable` command. * ci(corepack): should not use the latest Corepack for old Node.js * ci(corepack): override Corepack if version range is specified * ci(corepack): show installed Corepack versions * ci: use the `npm install --global ...` command instead of the `npm install -g ...` command * ci(debug): try to use pnpm without running the `corepack enable` command Surprisingly, Corepack seems to work with all versions of Node.js on GitHub Actions. Perhaps there is no need to run the `corepack enable` command. * revert: ci(debug): try to use pnpm without running the `corepack enable` command The following error occurred on each job: pnpm: command not found It seems that the `corepack enable` command must be executed. This reverts commit 8cb0f48. * docs: add setup instructions using Corepack in `CONTRIBUTING.md` file * ci(github actions): fix the name of steps for enable Corepack to be more understandable The step name "Setup Corepack" indicates that it is setting up Corepack. However, this step name does not clearly indicate that pnpm will be available automatically. Contributors who are not familiar with Node.js will not be able to grasp what is possible by enabling Corepack. So we fix the step names and clarify what we are enabling Corepack for.
- Loading branch information
1 parent
96a311f
commit 2a5ca2d
Showing
6 changed files
with
60 additions
and
99 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ | |
"typescript": "4.9.4", | ||
"ultra-runner": "3.10.5" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^12.17.x || 14.x || 15.x || 16.x || 17.x || >=18.x", | ||
"npm": "use pnpm please!", | ||
|