Commit Graph

25 Commits

Author SHA1 Message Date
zhyupe 467216281e
fix: hash check when downloading Yarn Berry from npm (#439)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2024-04-01 14:27:26 +02:00
Antoine du Hamel d2677538cd
fix: re-add support for custom registries with auth (#397) 2024-03-27 19:23:43 +01:00
Kristoffer K 6054339f55
chore: remove `fsUtils.rimraf` (#429) 2024-03-15 22:43:33 +01:00
zhyupe 47be27c9db
fix: improve support for `COREPACK_NPM_REGISTRY` with Yarn Berry (#396) 2024-02-27 10:55:04 +01:00
Henry 295a1cdb9c
fix: Windows malicious file analysis waiting problem (#398)
Co-authored-by: Steven <steven@ceriously.com>
2024-02-27 09:16:55 +00: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
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
Kristoffer K be2489cd0a
feat: support ESM (#270) 2023-06-13 17:18:46 +02:00
Kristoffer K 2f3678cd79
fix: disable `v8-compile-cache` when using `npm@>=9.7.0` (#276)
Node.js segfaults when using `npm@>=9.7.0` and `v8-compile-cache`
```console
$ docker run -it node:20.3.0-slim corepack npm@9.7.1 --version
[SIGSEGV]
```
2023-06-13 11:35:21 +02:00
Antoine du Hamel 863e0e0a50
chore(deps): upgrade all npm dependencies (#266) 2023-05-19 09:37:31 +00:00
ZHAO Jin-Xiang 1b353624e6
fix: npm registry override (#219)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-02-17 01:31:31 +01:00
Kristoffer K 15ceb832a3
build: migrate to esbuild (#229) 2023-01-08 15:19:08 +01:00
Kristoffer K 8c8e329700
refactor: simplify `v8-compile-cache` setup (#222) 2023-01-03 00:32:45 +01:00
Mike Scott 662ae9057c
feat: add support for configurable registries and applicable auth options (#186)
Fixes: https://github.com/nodejs/corepack/issues/66
2022-10-28 04:50:07 +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
Antoine du Hamel 185da44078
fix: streamline the cache exploration (#135)
If a large number of versions are cached on the host system, trying to
read the whole cache at once can be quite memory intensive. Instead, we
can use an iterative approach that doesn't hold the whole directory
content in memory.
2022-07-08 19:21:38 +02:00
Steven 31913aa317
chore: include install directory in debug log (#111)
This is useful when `DEBUG=corepack` is set because it tells you where it installed to.

Alternatively, we could add this to the `Install finished` debug line at the end.
2022-05-28 11:33:09 +02:00
Antoine du Hamel 6c736c3950
chore: update dependencies, remove unused ones (#100)
* chore: update dependencies, remove unused ones

* fix types

* Updates snapshots

* Fixes prepack

* try with Node.js 16.x

* Update more packages

* Upgrade to Jest 28

* Bump other packages

* Bump other packages

* Use Node.js 14.19.2

* Revert "try with Node.js 16.x"

This reverts commit 45aa8a3a96.
This reverts commit 4a275f68b6.

* Use specific Node.js version

* trying something

* Pin exact Node.js version number

* Bump Jest to 28.1.0

* dist-upgrade

* Don't pin Node.js version when it's not necessary

* Update more dependencies

* Update more dependencies

* Revert "Pin exact Node.js version number"

This reverts commit dd72a68061.

Co-authored-by: Maël Nison <nison.mael@gmail.com>
2022-05-15 10:35:13 +02:00
Paul Soporan 5ff6e82028
perf: load binaries in the same process (#97) 2022-04-08 00:07:29 +02:00
Kristoffer K 5cfc6c9df0
fix: handle parallel installs (#84)
* fix: handle parallel installs

* build: skip unnecessary shims
2022-02-02 23:25:33 +01: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