Commit Graph

129 Commits

Author SHA1 Message Date
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
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
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 3b2961aaa8
Bump Yarn to 1.22.15 (#58)
* Update config.json

* Bumps to 1.22.15
2021-10-06 11:51:27 +02:00
Maël Nison 31dce75d0f
Makes the tests stable (#60)
* Makes the tests stable

* Removes debug
2021-10-06 11:21:40 +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 545f90f2b9
Updates the checked-in known good versions (#40)
* Updates the checked-in known good versions

* Bumps version

* Bumps Yarn

* Updates the http recordings
2021-07-27 11:09:12 +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 4714eeb7ff
Prevents npm from being accidentally set (#24)
* Prevents npm from being accidentally set

* Updates a test
2020-10-08 21:53:53 +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
Maël Nison 0d6262057c Makes the enable shims point to the dist entries, not the shims 2020-10-07 17:46:17 +02:00
Maël Nison 6f8c086b99
Windows CI (#21)
* Update ci.yml

* Implements ls-remote without spawning the git binary

* Implements enable/disable for Windows

* Triggers CI

* Mocks HTTP calls

* Fixes the shell on Windows

* Increases the timeout, thanks Windows
2020-10-03 21:18:23 +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 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
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