Commit Graph

23 Commits

Author SHA1 Message Date
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
Antoine du Hamel 863e0e0a50
chore(deps): upgrade all npm dependencies (#266) 2023-05-19 09:37:31 +00:00
Kristoffer K 15ceb832a3
build: migrate to esbuild (#229) 2023-01-08 15:19:08 +01:00
Kristoffer K 82a6715702
chore: fix linting (#223)
* chore: fix linting

* chore: lint
2023-01-04 13:15:07 +01: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
Shalvah 42e53d5eda
Fix typo: `corepath` -> `corepack` (#191) 2022-09-29 05:33:40 +02:00
Antoine du Hamel 29da06c515
feat: add support for tags and ranges in `prepare` command (#136)
Fixes: https://github.com/nodejs/corepack/issues/72
2022-07-08 19:18:47 +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 1026fe1b48
Fixes help (#81) 2022-01-19 17:38:02 +01:00
Maël Nison 7a034df587
Fixes symlink creation when install path has symlinks (#41) 2021-07-27 13:55:30 +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
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
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 8c494c6cae Adds tests 2020-09-08 14:26:09 +02:00
Maël Nison fe40284501 Implements pack 2020-09-08 14:05:04 +02:00