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
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
Kristoffer K
df89e38200
refactor: separate library and cli entry point ( #250 )
2023-05-19 10:08:16 +02:00
tison
25fa62354b
chore: report URL on `fetchUrlStream` error message ( #261 )
2023-04-29 13:00:31 -04:00
Spencer Kaiser
aa3cbdb54f
fix(doc): add a note about troubleshooting network errors ( #259 )
...
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-29 14:02:40 +02: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
82a6715702
chore: fix linting ( #223 )
...
* chore: fix linting
* chore: lint
2023-01-04 13:15:07 +01:00
Kristoffer K
8c8e329700
refactor: simplify `v8-compile-cache` setup ( #222 )
2023-01-03 00:32:45 +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
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
Kenrick
5eadc50192
feat: when strict checking is off, treat like transparent ( #197 )
2022-10-24 17:06:47 +02:00
Shalvah
42e53d5eda
Fix typo: `corepath` -> `corepack` ( #191 )
2022-09-29 05:33:40 +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
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
09e24cf497
feat: do not use `~/.node` as default value for `COREPACK_HOME` ( #152 )
...
* feat: do not use `~/.node` as default value for `COREPACK_HOME`
Fixes: https://github.com/nodejs/corepack/issues/145
Refs: https://github.com/nodejs/node/issues/43859
* fixup! feat: do not use `~/.node` as default value for `COREPACK_HOME`
* Update sources/folderUtils.ts
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
* Update README
* migrate old corepack home folder
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2022-08-15 20:35:45 +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
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
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
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
Kirill Romanov
876ce02fe7
feat: auto setup proxy for http requests ( #69 )
...
* feat: auto setup proxy for http requests
* Adds dependencies
* Triggers CI again
Co-authored-by: Maël Nison <nison.mael@gmail.com>
2022-04-08 00:05:54 +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
Maël Nison
1026fe1b48
Fixes help ( #81 )
2022-01-19 17:38:02 +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
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
Kristoffer K
78d94eb297
fix: avoid using eval to get the corepack version ( #45 )
2021-08-08 19:58:28 +02:00
Maël Nison
75054fa74e
Fixes the displayed version number ( #42 )
2021-07-31 11:30:29 +02: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
a11e796f7f
Adds support for executing arbitrary versions of packages managers ( #39 )
2021-07-05 22:11:23 +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
Kristoffer K
2a46b6d13a
fix: handle prereleases ( #32 )
2021-05-21 15:19:36 +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
de0bd5553f
Restricts to exact versions ( #18 )
2020-09-30 01:16:49 +02:00
Maël Nison
3c0af2b36b
Fixes the corepack binary ( #16 )
2020-09-30 01:07:37 +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