Mike McCready
0b94797f96
fix: debug text typo ( #698 )
2025-04-08 11:46:08 +02:00
Antoine du Hamel
4be72f6941
fix(use): do not throw on invalid `packageManager` ( #663 )
2025-02-28 19:20:09 +01:00
Mike McCready
351d86c202
fix: replace explicit with specify as verb ( #665 )
2025-02-26 12:25:46 +01:00
Antoine du Hamel
12e77e5069
fix: do not resolve fallback descriptor when `packageManager` is defined ( #632 )
2025-02-08 18:55:54 +01:00
Antoine du Hamel
6019d7b56e
fix: make `DEBUG=corepack` more useful ( #538 )
2024-07-18 13:52:19 +02:00
Wojciech Maj
e7ad533d43
fix: selectively import required semver functions ( #511 )
...
By selectively importing only the functions and classes we use, we avoid bundling in the entire semver package, and shave a few kB off from the Corepack bundle.
2024-07-12 10:47:18 +02:00
Antoine du Hamel
32a93ea4f5
fix: add path to `package.json` in error message ( #456 )
2024-04-15 18:17:33 +00:00
Jakob Ackermann
c449adc818
feat: separate read and write operations on lastKnownGood.json ( #446 )
...
Also skip overwriting `lastKnownGood.json` with same content.
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-13 11:38:56 +00:00
Antoine du Hamel
e561dd00bb
feat: verify integrity signature when downloading from npm registry ( #432 )
...
When the user has not provided any hash (so when running `corepack up`/`corepack use …`), and the package manager is downloaded from the npm registry, we can verify the signature.
BREAKING CHANGE: attempting to download a version from the npm registry (or a mirror) that was published using the now deprecated PGP signature without providing a hash will trigger an error. Users can disable the signature verification using a environment variable.
2024-04-12 22:49:11 +00:00
Kristoffer K
47f1e2fadc
chore: remove unused `Cancellation` error ( #428 )
2024-03-15 23:14:12 +01:00
Antoine du Hamel
b7ec137210
fix: ignore `EROFS` errors ( #421 )
2024-03-08 08:39:08 +00:00
Maël Nison
8b6c6d4b2b
feat: Pins the package manager as it's used for the first time ( #413 )
...
* feat: Pins the package manager as it's used for the first time
* Adds a warning when auto-pinning the package manager version
* Updates wording
2024-03-03 13:50:18 +01:00
zhyupe
47be27c9db
fix: improve support for `COREPACK_NPM_REGISTRY` with Yarn Berry ( #396 )
2024-02-27 10:55:04 +01:00
Antoine du Hamel
9834f5790a
fix: do not hard fail if Corepack home folder cannot be created ( #382 )
2024-02-21 04:15:14 +01:00
Antoine du Hamel
4a8ce6d42f
feat: add support for URL in `"packageManager"` ( #359 )
2024-02-20 09:11:52 +01:00
Kristoffer K
65880cafed
fix: remove unsafe remove of install folder ( #372 )
...
* fix: remove unsafe remove of install folder
* test: update to use folderUtils
* perf: skip `existsSync` check
2024-02-11 21:13:45 +01:00
Antoine du Hamel
a56c13bd0b
feat: bump Known Good Release when downloading new version ( #364 )
2024-01-30 22:51:09 +00:00
Antoine du Hamel
addf455f74
chore: bump dev dependencies ( #346 )
2023-12-29 23:45:32 +01:00
Maël Nison
0717c6af89
feat(yarn): fallback to npm when `COREPACK_NPM_REGISTRY` is set ( #339 )
...
Yarn publishing its versions on its own was inconvenient for people using private npm mirrors, so it makes sense to offer a way to fallback to the npm store when requested. This diff changes the logic so that we use the `@yarnpkg/cli-dist` package when the `COREPACK_NPM_REGISTRY` variable is set. It should be backward-compatible, since the `registry` field is still the same.
2023-12-29 12:28:27 +01:00
Maël Nison
fe3e5cd86c
Refactoring of the CLI interface ( #291 )
...
* Refactoring of the CLI interface
* Updates the Nock snapshots
* Regenerates the Nock files on Node 16
* Update README.md
* Adds --cache-only to corepack install -g
* Fixes hash generation
2023-08-28 22:01:48 +02:00
Teppei Sato
5a0727b439
fix: handle tags including numbers in `prepare` command ( #165 )
...
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-09-01 20:24:03 +02:00
Antoine du Hamel
055b92807f
feat: download the latest version instead of a pinned one ( #134 )
...
Fixes: https://github.com/nodejs/corepack/issues/93
2022-08-19 23:53:18 +02:00
Antoine du Hamel
6a480a72c2
feat: add support for hash checking ( #133 )
...
Fixes: https://github.com/nodejs/corepack/issues/37
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2022-07-09 00:42:16 +02:00
Paul Soporan
5ff6e82028
perf: load binaries in the same process ( #97 )
2022-04-08 00:07:29 +02:00
Jonah Snider
328ee1ff83
Update references of pmm to Corepack ( #59 )
...
* docs: rename pmm -> Corepack
* build: use nodejs/corepack repo instead of arcanis/pmm
* refactor: rename TS source pmm -> Corepack
* docs: fix spelling error
2021-10-06 11:53:05 +02:00
Maël Nison
d6e3e652ed
Makes it possible to call arbitrary package manager versions from the Corepack CLI ( #47 )
2021-08-15 20:05:04 +02:00
Maël Nison
a11e796f7f
Adds support for executing arbitrary versions of packages managers ( #39 )
2021-07-05 22:11:23 +02:00
Maël Nison
ee2d45de0d
Modernize the dependencies ( #36 )
...
* Upgrade dependencies
* Uses a more recent Yarn version as jumper
* Linting
* Fixes Nock recordings
* Replaces git tags by urls
* Updates nock records
2021-05-31 14:35:56 +02:00
Kristoffer K
2a46b6d13a
fix: handle prereleases ( #32 )
2021-05-21 15:19:36 +02:00
Maël Nison
1a3db689dc
Implements enable / disable ( #11 )
...
* Implements enable / disable
* Adds tests
* Debugs GH-only crash
* Fixes CI by running the build beforehand
* Fixes build
2020-09-30 00:23:24 +02:00
Kristoffer K
b56df30796
fix: avoid symlinks to work on Windows ( #13 )
2020-09-30 00:02:59 +02:00
Maël Nison
9809b8f856
Refactors pmm -> corepack
2020-09-27 00:51:52 +02:00
Maël Nison
8c29576ca8
Refactors the code
2020-08-03 18:54:16 +02:00