Commit Graph

5 Commits

Author SHA1 Message Date
Kristoffer K. 85e556a1a9
test: migrate to vitest (#349) 2024-07-16 23:31:15 +02: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
Antoine du Hamel 12f1c31a0d
chore(tests): use separate envs for each tests (#371) 2024-02-12 22:33:51 +00:00
Antoine du Hamel 2950a8a30b
fix(use): create `package.json` when calling `corepack use` on empty dir (#350)
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2024-01-12 18:52:39 +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