mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
deps: update corepack to 0.20.0
PR-URL: https://github.com/nodejs/node/pull/49464 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
e11c7b7599
commit
56dfcaebcf
4 files changed
+1840
-1351
No files matched your search
Vendored
+8
@@ -1,5 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## [0.20.0](https://github.com/nodejs/corepack/compare/v0.19.0...v0.20.0) (2023-08-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* refactor the CLI interface ([#291](https://github.com/nodejs/corepack/issues/291)) ([fe3e5cd](https://github.com/nodejs/corepack/commit/fe3e5cd86c45db0d87c7fdea87d57d59b0bdcb78))
|
||||
* update package manager versions ([#292](https://github.com/nodejs/corepack/issues/292)) ([be9c286](https://github.com/nodejs/corepack/commit/be9c286846443ff03081e736fdf4a0ff031fbd38))
|
||||
|
||||
## [0.19.0](https://github.com/nodejs/corepack/compare/v0.18.1...v0.19.0) (2023-06-24)
|
||||
|
||||
|
||||
|
||||
Vendored
+46
-24
@@ -92,15 +92,14 @@ If there is no Known Good Release for the requested package manager, Corepack
|
||||
looks up the npm registry for the latest available version and cache it for
|
||||
future use.
|
||||
|
||||
The Known Good Releases can be updated system-wide using the `--activate` flag
|
||||
from the `corepack prepare` and `corepack hydrate` commands.
|
||||
The Known Good Releases can be updated system-wide using `corepack install -g`.
|
||||
|
||||
## Offline Workflow
|
||||
|
||||
The utility commands detailed in the next section.
|
||||
|
||||
- Either you can use the network while building your container image, in which
|
||||
case you'll simply run `corepack prepare` to make sure that your image
|
||||
case you'll simply run `corepack pack` to make sure that your image
|
||||
includes the Last Known Good release for the specified package manager.
|
||||
|
||||
- If you want to have _all_ Last Known Good releases for all package managers,
|
||||
@@ -108,10 +107,10 @@ The utility commands detailed in the next section.
|
||||
|
||||
- Or you're publishing your project to a system where the network is
|
||||
unavailable, in which case you'll preemptively generate a package manager
|
||||
archive from your local computer (using `corepack prepare -o`) before storing
|
||||
archive from your local computer (using `corepack pack -o`) before storing
|
||||
it somewhere your container will be able to access (for example within your
|
||||
repository). After that it'll just be a matter of running
|
||||
`corepack hydrate <path/to/corepack.tgz>` to setup the cache.
|
||||
`corepack install -g --cache-only <path/to/corepack.tgz>` to setup the cache.
|
||||
|
||||
## Utility Commands
|
||||
|
||||
@@ -171,29 +170,52 @@ echo "function npx { corepack npx `$args }" >> $PROFILE
|
||||
This command will detect where Node.js is installed and will remove the shims
|
||||
from there.
|
||||
|
||||
### `corepack prepare [... name@version]`
|
||||
### `corepack install`
|
||||
|
||||
| Option | Description |
|
||||
| ------------- | ----------------------------------------------------------------------- |
|
||||
| `--all` | Prepare the "Last Known Good" version of all supported package managers |
|
||||
| `-o,--output` | Also generate an archive containing the package managers |
|
||||
| `--activate` | Also update the "Last Known Good" release |
|
||||
Download and install the package manager configured in the local project.
|
||||
This command doesn't change the global version used when running the package
|
||||
manager from outside the project (use the \`-g,--global\` flag if you wish
|
||||
to do this).
|
||||
|
||||
This command will download the given package managers (or the one configured for
|
||||
the local project if no argument is passed in parameter) and store it within the
|
||||
Corepack cache. If the `-o,--output` flag is set (optionally with a path as
|
||||
parameter), an archive will also be generated that can be used by the
|
||||
`corepack hydrate` command.
|
||||
### `corepack install <-g,--global> [--all] [... name@version]`
|
||||
|
||||
### `corepack hydrate <path/to/corepack.tgz>`
|
||||
| Option | Description |
|
||||
| --------------------- | ------------------------------------------ |
|
||||
| `--all` | Install all Last Known Good releases |
|
||||
|
||||
| Option | Description |
|
||||
| ------------ | ----------------------------------------- |
|
||||
| `--activate` | Also update the "Last Known Good" release |
|
||||
Install the selected package managers and install them on the system.
|
||||
|
||||
This command will retrieve the given package manager from the specified archive
|
||||
and will install it within the Corepack cache, ready to be used without further
|
||||
network interaction.
|
||||
Package managers thus installed will be configured as the new default when
|
||||
calling their respective binaries outside of projects defining the
|
||||
`packageManager` field.
|
||||
|
||||
### `corepack pack [--all] [... name@version]`
|
||||
|
||||
| Option | Description |
|
||||
| --------------------- | ------------------------------------------ |
|
||||
| `--all` | Pack all Last Known Good releases |
|
||||
| `--json ` | Print the output folder rather than logs |
|
||||
| `-o,--output ` | Path where to generate the archive |
|
||||
|
||||
Download the selected package managers and store them inside a tarball
|
||||
suitable for use with `corepack install -g`.
|
||||
|
||||
### `corepack use <name@version>`
|
||||
|
||||
When run, this command will retrieve the latest release matching the provided
|
||||
descriptor, assign it to the project's package.json file, and automatically
|
||||
perform an install.
|
||||
|
||||
### `corepack up`
|
||||
|
||||
Retrieve the latest available version for the current major release line of
|
||||
the package manager used in the local project, and update the project to use
|
||||
it.
|
||||
|
||||
Unlike `corepack use` this command doesn't take a package manager name nor a
|
||||
version range, as it will always select the latest available version from the
|
||||
same major line. Should you need to upgrade to a new major, use an explicit
|
||||
`corepack use {name}@latest` call.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
@@ -204,7 +226,7 @@ network interaction.
|
||||
- `COREPACK_ENABLE_NETWORK` can be set to `0` to prevent Corepack from accessing
|
||||
the network (in which case you'll be responsible for hydrating the package
|
||||
manager versions that will be required for the projects you'll run, using
|
||||
`corepack hydrate`).
|
||||
`corepack install -g --cache-only`).
|
||||
|
||||
- `COREPACK_ENABLE_STRICT` can be set to `0` to prevent Corepack from throwing
|
||||
error if the package manager does not correspond to the one defined for the
|
||||
|
||||
Vendored
+1780
-1321
File diff suppressed because it is too large.
Load diff
Vendored
+6
-6
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "corepack",
|
||||
"version": "0.19.0",
|
||||
"version": "0.20.0",
|
||||
"homepage": "https://github.com/nodejs/corepack#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/nodejs/corepack/issues"
|
||||
@@ -24,14 +24,14 @@
|
||||
"@jest/globals": "^29.0.0",
|
||||
"@types/debug": "^4.1.5",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"@types/node": "^20.4.6",
|
||||
"@types/semver": "^7.1.0",
|
||||
"@types/tar": "^6.0.0",
|
||||
"@types/which": "^3.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
||||
"@typescript-eslint/parser": "^5.0.0",
|
||||
"@yarnpkg/eslint-config": "^0.6.0-rc.7",
|
||||
"@yarnpkg/fslib": "^2.1.0",
|
||||
"@yarnpkg/fslib": "^3.0.0-rc.48",
|
||||
"@zkochan/cmd-shim": "^6.0.0",
|
||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
||||
"clipanion": "^3.0.1",
|
||||
@@ -41,8 +41,8 @@
|
||||
"eslint-plugin-arca": "^0.15.0",
|
||||
"jest": "^29.0.0",
|
||||
"nock": "^13.0.4",
|
||||
"proxy-agent": "^6.0.0",
|
||||
"semver": "^7.1.3",
|
||||
"proxy-agent": "^6.2.2",
|
||||
"semver": "^7.5.2",
|
||||
"supports-color": "^9.0.0",
|
||||
"tar": "^6.0.1",
|
||||
"ts-node": "^10.0.0",
|
||||
@@ -96,7 +96,7 @@
|
||||
]
|
||||
},
|
||||
"resolutions": {
|
||||
"vm2": "patch:vm2@npm:3.9.9#.yarn/patches/vm2-npm-3.9.9-03fd1f4dc5.patch"
|
||||
"vm2": "portal:./vm2"
|
||||
},
|
||||
"bin": {
|
||||
"corepack": "./dist/corepack.js",
|
||||
|
||||
Reference in new issue
Block a user