Maël Nison
9bee415081
feat: add support for rangeless commands ( #338 )
...
This diff makes it possible to run the CLI commands without an explicit range, in which case we use an implicit `*`, e.g.: `corepack install -g yarn`.
2023-12-29 13:00:38 +01:00
Kristoffer K
2533d12887
test: check that a semver version is required ( #312 )
2023-10-09 00:33:54 +02: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
17d1f3dd41
fix: don't override `process.exitCode` ( #268 )
...
* fix: don't override exit codes
* chore: update nock files
2023-05-24 00:31:58 +02:00
Antoine du Hamel
863e0e0a50
chore(deps): upgrade all npm dependencies ( #266 )
2023-05-19 09:37:31 +00:00
Gamadril
7b5f2f9fcb
fix: recreate cache folder if necessary ( #200 )
...
Fixes: https://github.com/nodejs/corepack/issues/198
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-10-28 04:53:10 +02:00
Kenrick
5eadc50192
feat: when strict checking is off, treat like transparent ( #197 )
2022-10-24 17:06:47 +02:00
Teppei Sato
f06e23d758
test: refactor with expect.stringMatching() ( #176 )
2022-09-04 11:17:42 +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
c0df287a57
chore: reduce test flakiness ( #168 )
2022-09-01 11:44:17 +02:00
Antoine du Hamel
92b52f6b49
feat: add `COREPACK_ENABLE_STRICT` env variable ( #167 )
2022-09-01 10:13:16 +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
a79a7637d8
test: fix tests when default versions contain hashes ( #143 )
...
Refs: https://github.com/nodejs/corepack/pull/137
2022-07-09 01:10:50 +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
Kyle Herock
da3ed402d0
Fixes `corepack prepare` when no additional arguments are passed ( #99 )
...
* chore: update sdks
This fixes ZipFS paths in VSCode 1.66
* fix: `prepare` should infer the project packageManager version when no spec is passed
2022-05-15 10:42:46 +02:00
Maël Nison
1d41c48480
chore: auto-sync package manager versions ( #88 )
...
* chore: auto-sync package manager versions
* Disables nock
* Removes check for newline
2022-02-07 22:47:09 +01: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
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
b77ed59321
Set of tweaks ( #38 )
...
* Inlines tar rather than move it as a separate vendor
* Updates network queries
2021-07-05 12:05:32 +02:00
Masashi Hirano
8ff2499e83
fix: bin file name for pnpm >=6.0 ( #35 )
...
* fix: bin file name for pnpm >=6.0
* Adds test
* Adds nock entry
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2021-05-31 17:03:20 +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
Maël Nison
fa627ba513
Turns `--cache-only` into `--output` ( #23 )
...
* Inverses the workflow
* Adds support for multiple package managers per archive
* Updates the readme
* Fixes --all check
2020-10-08 20:23:12 +02:00
Kristoffer K
1836d17b4f
fix: handle package managers with a bin array correctly ( #20 )
...
* test: fix tests on older versions of node
* test: fix tests on Windows
* fix: handle package managers with a bin array correctly
2020-10-01 00:47:31 +02:00
Maël Nison
b8c9ec0f1f
Implements transparent commands ( #19 )
...
* Implements transparent commands
* Adds a test
* Removes enquirer
2020-09-30 12:22:38 +02:00
Maël Nison
9809b8f856
Refactors pmm -> corepack
2020-09-27 00:51:52 +02:00
Maël Nison
8c494c6cae
Adds tests
2020-09-08 14:26:09 +02:00
Maël Nison
0985889458
Renames engines.pm into packageManager
2020-09-08 12:45:32 +02:00
Maël Nison
8c29576ca8
Refactors the code
2020-08-03 18:54:16 +02:00
Maël Nison
c754806d54
Fixes return value
2020-05-08 01:46:52 +02:00
Maël Nison
d774ef2400
Increases the timeout
2020-05-08 00:31:10 +02:00
Maël Nison
b7e22df79b
Improves tests
2020-05-08 00:24:36 +02:00
Maël Nison
c99569c283
Improvements
2020-03-19 00:19:52 +01:00