49 Commits

Author SHA1 Message Date
Ryo Matsukawa
a8797c4e59 fix: handle EISDIR error when bin field points to directory (#10080)
close #9441
2025-10-13 10:00:06 +02:00
Ryo Matsukawa
50a47b0b63 fix: handle EPIPE errors when piping output (#10051) 2025-10-09 15:07:42 +02:00
Luis Hebendanz
9b9faa5c24 fix: retry filesystem operations on EAGAIN (#9959)
* fix: retry filesystem operations on EAGAIN

filesystem operations can raise EAGAIN to tell the application to try
again later. This is especially often the case under ZFS.

fix: move wrapped functions to graceful-fs directly

* fix: retry filesystem operations on EAGAIN

* fix: retry filesystem operations on EAGAIN

* fix: indexed-pkg-importer

* test: fix

* docs: add changeset

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-09-29 09:32:43 +02:00
Zoltan Kochan
87d3aa8bfc fix: fetching packument from AWS CodeArtifact (#9863)
close #9862
2025-08-15 12:10:22 +02:00
Zoltan Kochan
d1edf732ad feat: support installing Deno runtime (#9791)
* feat: support installing Deno runtime

* refactor: use npm registry to resolve deno version

* feat: wip

* feat: installing deno runtime

* style: fix

* test: fix

* test: deno

* test: fix

* feat: deno

* feat: deno

* feat: create zip fetcher

* style: fix

* refactor: node fetch

* feat: support a new binary fetcher

* test: fix

* feat: rename zip-fetcher to binary-fetcher

* refactor: change naming

* fix: windows

* refactor: rename packages

* refactor: deno resolver

* refactor: runtime resolvers

* refactor: binary fetcher

* refactor: runtime resolvers

* refactor: runtime resolvers

* refactor: create SingleResolution

* refactor: remove not needed change

* refactor: package requester

* docs: add changesets

* refactor: use VariationsResolution and AtomicResolution

* refactor: implement CR suggestions

* docs: add changesets

* fix: address comment in CR

* feat: update formatting of pnpm-lock.yaml
2025-07-30 11:27:07 +02:00
Zoltan Kochan
1ba2e15f2c feat: verify the integrity of Node.js artifacts (#9750) 2025-07-12 18:04:09 +02:00
Junxiao Shi
589ac1ffc7 fix(lifecycle): replace shell-quote with shlex (#9695)
* fix(lifecycle): replace shell-quote with shlex

close #9381

* fix: use shlex in @pnpm/worker

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-06-30 03:03:31 +02:00
Zoltan Kochan
7f520014a1 docs: add new sponsor 2025-06-25 01:39:12 +02:00
Zoltan Kochan
741fcd2adc feat: added support for Nushell to setup (#9510)
close #6476
2025-05-09 16:14:36 +02:00
Zoltan Kochan
fa1e69bd0c fix(deps): update @zkochan/cmd-shim to v7 (#9448)
close #9442
2025-04-22 23:39:04 +02:00
Khải
9c3dd03710 feat: add support for the jsr: protocol (#9358)
close #8941

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-04-20 11:51:51 +02:00
Zoltan Kochan
9bcca9f760 feat: config set local should save settings in pnpm-workspace.yaml (#9316) 2025-03-22 13:39:21 +01:00
Zoltan Kochan
cd8caece25 docs: update sponsors 2025-03-03 02:01:45 +01:00
Khải
331deacd45 chore(cspell): remove duplicated items (#9195) 2025-02-27 23:52:43 +01:00
Khải
e32b1a29e9 feat: update injected packages after run (#9100)
* feat: update injected packages after run (wip)

close #9081

* refactor: rename field

* feat: injectedPackages (wip)

* feat: findInjectedPackages (wip)

* feat: complete implementation

* test: findInjectedPackages

* docs: changeset

* refactor: be lazy

* chore: set `version` to `1000.0.0-0`

* feat: use hardlinks for injected packages

* refactor: just use `.modules.yaml`

* feat: debug logger

* refactor: `modulesDir` is unnecessary

* test: shouldUpdateInjectedFilesAfterRun

* fix(test): remove the test command

* test: updateInjectedPackagesAfterRun

* fix: eslint

* feat: rename config

* perf: diff to reduce fs operations

* perf: load source map only once

* chore(deps): remove unused dependencies

* fix: eslint

* refactor: use `symlink-dir`

* refactor: move type expr to an alias

* refactor: simplify types

* feat: reuse stats from the directory fetcher

* test: directories and symlinks

* feat: sort alphabetic

* test: diffDir

* test: rename a test

* test: remove nesting

* refactor: rename

* feat: remove buggy symlink support

* test: applyPatch

* docs: correct

* docs: fix

* test: extendFilesMap

* docs: remove outdated comment

* docs: remove unneeded comment

* test: fix

* test: more assertions

* test: DirPatcher

* test: more assertions

* test: more assertions

* test: just use `createDir`

* test: multiple patchers

* test: reuse stat results

* docs: consistent grammar

* test: workaround

* test: fix windows

* refactor: remove single-use `makeParent`

* refactor: remove nonsense test

How could I even misunderstand my own code?!

`Patcher.apply()` will never call stat on the files because they have all
been loaded to calculate `Patcher.patch`.

This test is therefore nonsense.

* feat: rename

* feat: rename again

* feat: remove `boolean`

* fix: broken lockfile

* test: use a fixture for testing sync injected deps

* test: refactor syne injected deps test

* test: refactor sync injected deps test

* test: refactor sync injected deps test

* refactor: rename injected deps to syncer

* refactor: change injected deps logger

* docs: update changeset

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-02-24 02:09:45 +01:00
Zoltan Kochan
f6006f2b4b feat: add an option to fail on unapproved dependency builds (#9071) 2025-02-11 00:26:25 +01:00
Khải
e8c2b173ca fix(overrides): move invalid peers to prod deps (#9000)
close #8978

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-01-28 18:00:59 +01:00
btea
2b49ee77c7 fix: install dependencies execute preprepare and postprepare scripts (#8989)
* fix: install dependencies execute preprepare script

* chore: remove unnecessary code

* fix: postprepare should run

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-01-26 20:31:00 +01:00
btea
12aebe29fe docs: README add Bluesky link (#8937) 2025-01-05 03:17:34 +01:00
Zoltan Kochan
cf9a8562eb docs: add new sponsor 2024-12-27 12:35:50 +01:00
Zoltan Kochan
ecb30d11b4 revert: "fix: installation dependency error in exFAT drive (#8872)"
This reverts commit 835b4e8f64.
2024-12-26 01:14:12 +01:00
Zoltan Kochan
5c48047e12 docs: add sponsors 2024-12-17 02:41:54 +01:00
btea
835b4e8f64 fix: installation dependency error in exFAT drive (#8872)
* fix: installation dependency error in exFAT drive

* fix: lint

* fix: update

* chore: remove console

* refactor: doctor

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-12-17 01:54:41 +01:00
Zoltan Kochan
31911f103e fix: dependency status check should never throw an exception (#8852) (#8857) 2024-12-10 17:16:08 +01:00
Zoltan Kochan
814bc74d6b revert: "feat: add linux-riscv64 build (#8779)"
This reverts commit cebe493d12.
2024-11-20 11:07:56 +01:00
Eric Long
cebe493d12 feat: add linux-riscv64 build (#8779)
close #7582
2024-11-19 02:07:03 +01:00
btea
934f1836f1 fix: script command regular parameters do not support the v flag (#8711) 2024-11-03 21:32:40 +01:00
Zoltan Kochan
ab041d648d chore: add words to cspell.json 2024-11-03 14:25:53 +01:00
Khải
81bd9427ad fix: prevent ENOENT caused by parallel store prune (#8586)
* fix: prevent ENOENT caused by parallel `store prune`

Close #8579

* fix: cspell

* test: fix
2024-09-30 02:44:05 +02:00
Paul Nodet
86732affd0 chore: migrate ESLint Configuration to the new flat config format (#8482)
* chore: bump node-version to v18.18

min required version for eslint flat config

* chore: migrate eslint to flat config

* chore: migrate monorepo to flat config

* fix: remove old eslint unused disable directives

* chore: include meta-updater in the tsconfig

* style: remove semicolons

* style: fix

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-09-01 23:06:12 +02:00
Ian Krieger
d500d9f12e feat(audit): add ability to ignore Github Security Advisory (#8483)
close #6838
2024-09-01 03:10:30 +02:00
Khải
9b4f73caaf chore(scripts): typecheck-only (#8395)
* chore(scripts): typecheck-only

* feat: change all configuration

* feat: include pnpm/ and pnpm/test/

* chore(deps): remove unused dependency

* refactor(typescript-only): use find-packages

* refactor(typescript-only): refactor paths

* fix: typescript-only

* fix: update compile-only

* fix: compile pnpm

* fix: windows

* fix: windows

* chore: meta-updater

* refactor(tsconfig): remove explicit composite

* fix: path in windows

* feat: don't depend on cwd

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-08-11 08:26:01 +02:00
Khải
1731386aa7 feat(patching): move edit dir to node_modules (#8379)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-08-07 01:57:53 +02:00
Khải
1b03682903 feat(dlx): read auth from local .npmrc (#8207)
close #7996
2024-06-25 17:51:43 +02:00
Zoltan Kochan
1a6f7fb7e5 fix: only automatically resolve optional peers with versions that satisfy the ranges (#8028)
close #7985
2024-04-29 14:19:40 +02:00
Zoltan Kochan
6cdbf11dea fix: unpacking tarballs that appear to be not USTAR or GNU TAR (#7677)
close #7120
2024-02-22 02:49:49 +01:00
Nacho Aldama
7733f3a943 feat: support scoped client certificates (#7626)
close #7427

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-02-14 12:11:12 +01:00
Zoltan Kochan
3477ee5ee8 feat!: check the packageManager field (#7635)
* feat!: check the packageManager field

* test: fix

* refactor: update error message to match what corepack prints

* feat: add pm-strict option

* refactor: pm-strict=>package-manager-strict

* fix: remove packageManager field from package.json on publish
2024-02-11 01:07:23 +01:00
Kirjava
8d7ec24666 fix: skip automatic download/install of Node.js versions in WebContainer (#7478)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-02 21:30:50 +01:00
Zoltan Kochan
33313d2fd0 fix: EPERM error in the store (#7455)
close #7213
2023-12-24 10:05:28 +01:00
Khải
d5a176af77 fix(fix-lockfile): crash on tarballs (#7404)
close  #7368
2023-12-13 00:01:31 +01:00
Zoltan Kochan
3db0db8d12 revert: "feat: use-experimental-npmjs-files-index option (#7177)"
This reverts commit a2bf6a0e96.
2023-11-22 02:01:27 +02:00
Tristan Knight
a2bf6a0e96 feat: use-experimental-npmjs-files-index option (#7177)
close #1328
2023-11-19 02:45:33 +02:00
Khải
4da7b463f6 perf: default network-concurrency to cpu count (#7285)
* feat: default network-concurrency to cpu count

It was found that setting network-concurrency to the exact number of
CPU cores gives fastest installation

* perf: set 16 as min default concurrency

* docs: add comment

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-11-10 21:47:03 +02:00
Zoltan Kochan
cfc017ee38 fix: don't copy optional dependencies from the store (#7255)
close #7046
2023-10-31 12:31:50 +02:00
Zoltan Kochan
500363647a fix: packing the same file twice during publish (#7250)
close #6997
2023-10-27 15:30:10 +03:00
Tristan Knight
8abd9beddd refactor: add type safety for config (#7249)
---------

Co-authored-by: tris203 <admin@snappeh.com>
2023-10-27 02:43:36 +03:00
Zoltan Kochan
95ffe6f639 test: check spelling in markdown files 2023-10-20 18:38:01 +03:00
Zoltan Kochan
733d612ad1 test: check spelling with cspell (#7229) 2023-10-20 15:58:27 +03:00