Commit Graph
57 Commits
Author SHA1 Message Date
Zoltan Kochan 1c8c4e49f5 style: add eslint-plugin-simple-import-sort (#10947)
Add eslint-plugin-simple-import-sort to enforce consistent import ordering:
- Node.js builtins first
- External packages second
- Relative imports last
- Named imports sorted alphabetically within each statement
2026-03-13 02:02:38 +01:00
Zoltan Kochan 3a5bfaa94f chore: update zkochan packages to latest versions (#10930)
Update all packages from zkochan/packages to their latest major versions
and exclude them from minimumReleaseAge requirement. This includes
updating catalog entries, adapting to breaking API changes (default
exports replaced with named exports, sync functions renamed with Sync
suffix), and updating type declarations.
2026-03-11 13:47:46 +01:00
Brandon Cheng 1a5b5beea2 build: replace ts-jest with simple transformer (#10579)
* test: use `import type` in more places

Several tests are failing because a module isn't being mocked. This is
due to the mocked module being imported before the mock being set up.

Switching to `import type` should elide the import fully.

* build: replace ts-jest with simple transformer

* chore: remove `ts-jest`

* chore: remove babel dependencies from root project

* ci: use Node.js 22.13.0 (instead of 22.12.0)

Node.js 22.13.0 introduces the `stripTypeScriptTypes` function

* fix: copilot feedback
2026-02-09 11:35:22 +01:00
Johan Quan VoandZoltan Kochan 7b1c189f2e feat!: remove deprecated patch options (#10505)
* refactor: remove allowNonAppliedPatches

* refactor: remove ignorePatchFailures

* refactor: remove `strict` field in groupPatchedDependencies

* test: update test failure in package patching

* test: fix

* docs: update changesets

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-01-27 17:08:45 +01:00
Zoltan Kochan cf9f14aa9e fix: update tempy 2025-08-28 14:00:51 +02:00
Zoltan Kochan 491a84fb26 feat: use ESM instead of commonjs (#9870) 2025-08-25 10:02:00 +02:00
Zoltan Kochan 27cbc09206 style: fix jest-related linting issues (#9894) 2025-08-22 21:56:49 +02:00
Zoltan Kochan facd7656e8 refactor: always use extensions in relative imports (#9878) 2025-08-19 15:25:11 +02:00
Zoltan Kochan c89c93d59b test: use @jest/globals (#9877) 2025-08-19 00:16:25 +02:00
Zoltan Kochan cf630a8e84 feat: allow to set multiple pnpmfiles (#9702) 2025-07-08 14:54:07 +02:00
Zoltan Kochan b0ead519b3 feat: global virtual store (#8190)
close #1001
2025-06-03 18:18:58 +02:00
martinkorsandZoltan Kochan 046af72a96 feat: add new catalogMode setting (#9552)
* feat: add new `catalogMode` setting

Add new `catalogMode` setting for automatically adding new dependencies to
the default catalog.

Closes pnpm#8876, Closes pnpm#8308

* fix: catalogs don't only store semver ranges and versions

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-05-20 16:47:05 +02:00
Zoltan Kochan 8a9f3a4835 refactor: rename pref to bare specifier (#9445) 2025-04-20 22:58:08 +02:00
bteaandZoltan Kochan e9e4c594e6 feat: setting patchedDependencies write to pnpm-workspace.yaml (#9248)
close #9305

Co-authored-by: Zoltan Kochan <z@kochan.io>
2025-03-19 16:56:18 +01:00
btea adb236f1a1 refactor: improve regexp (#9203) 2025-03-02 13:17:09 +01:00
Khải 0f35416e6e fix(patching): reuse patch without version (#8936)
close #8919
2025-01-04 11:33:42 +01:00
huuya 046388c64b fix(plugin-commands-patching): exclude .DS_Store file at patch-commit (#8923)
close #8922
2024-12-31 02:41:41 +01:00
Rantetsu InoriandZoltan Kochan f74070d72f fix: command suggestion to apply patch on Windows (#8851)
close #7546

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-12-20 10:38:17 +01:00
Khải c3011e65f8 test: fix patch.test.ts (#8886) 2024-12-18 23:54:52 +01:00
Zoltan Kochan d47c4266db perf: faster repeat install (#8838) 2024-12-08 23:42:33 +01:00
Zoltan Kochan e9985b6f21 feat!: default value of virtual-store-dir-max-length set to 60 on Windows (#8556) 2024-09-23 09:30:45 +02:00
da3fa97c8d fix: should not delete state.json info after apply patch (#8401)
* fix: should not delete state.json info after apply patch

* Update .changeset/yellow-dodos-press.md

Co-authored-by: Khải <hvksmr1996@gmail.com>

* Update .changeset/yellow-dodos-press.md

Co-authored-by: Khải <hvksmr1996@gmail.com>

* test: patch-commit multiple times

* refactor: remove unused deleteEditDirState

* fix: read patch state from correct directory

---------

Co-authored-by: Khải <hvksmr1996@gmail.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-08-15 02:09:49 +02:00
KhảiandZoltan Kochan ed2bc5d161 fix(patching): commit now accepts relative path (#8405)
* fix(patching): commit now accepts relative path

* fix: correct the solution

* fix: correct again

* test: fix

* refactor: revert not needed changes

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-08-13 00:54:12 +02:00
KhảiandZoltan Kochan 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ảiandZoltan Kochan 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 cb006df38c feat(patching): apply patch to all versions (#8337)
Related issue: #5686
2024-08-01 15:05:15 +02:00
Christoph NakazawaandZoltan Kochan fd884c1915 fix(patch): improve printing of the pnpm patch command (#8239)
* style(patch): improve printin of the `pnpm patch` command

* fix: add missing dep

* test: fix

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-28 01:28:00 +02:00
Brandon ChengandZoltan Kochan 75a98e12b3 refactor: improve type checking when finding workspace packages (#8214)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-06-17 17:34:54 +02:00
Zoltan Kochan 47341e5004 fix: make the peers suffix shorter (#8177)
ref #7079
2024-06-07 23:37:07 +02:00
Brandon Cheng c7e1b6fae8 chore: configure TypeScript project references for tests (#8128)
* refactor: store link values before converting to references

* fix: use .sort() without localeCompare

https://github.com/pnpm/pnpm/pull/8128#discussion_r1614031566

> Nit, but you probably just want to call sort without a comparison
> function; these are already strings and locale compare is not a good
> comparison for anything but human readable strings since it will
> differ on different people's machines based on their language setting.
> I've hit this too many times before for code gen.

* feat: configure meta-updater to write test/tsconfig.json files

* fix: relative imports for __typings__

* chore: `pnpm run meta-updater`

* fix: explicitly use test/tsconfig.json for ts-jest
2024-05-31 12:48:13 +02:00
Zoltan Kochan 9719a42d0e feat: configurable max length of directories inside node_modules/.pnpm (#7994)
close #7355
2024-04-28 11:07:29 +02:00
Zoltan Kochan a5a3b995c1 test: use sync fs operations in tests (#7664) 2024-02-16 19:43:04 +01:00
bteaandZoltan Kochan c1fee78a2f fix: remove empty patch dir (#7532)
---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-01-19 00:30:06 +01:00
btea 9a53179e37 fix(plugin-commands-patching): do not create empty patch directory (#7410) 2023-12-13 11:11:02 +01:00
Zoltan Kochan 5462cb6d4e fix: dependency deduplication (#7385)
fixes regression introduced via #7359
2023-12-06 15:43:46 +01:00
Zoltan Kochan 6558d1865f fix: dedupe commands of direct dependencies (#7359) 2023-12-05 16:39:52 +01:00
Hiroshi Ogawa 2dfc8c80af fix(plugin-commands-patching): fix reusing existing patch when shared-workspace-file=false (#7252) 2023-11-07 01:13:44 +02:00
await-ovo d93e5d06d0 fix(plugin-commands-patching): should fetch dependency from tarball url when patching dependency installed from git (#7230)
close #7196
2023-10-24 15:52:01 +03:00
Nacho AldamaandZoltan Kochan 43ce9e4a6a feat: add support to install different architectures (#7214)
close #5965

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-10-24 15:50:40 +03:00
Zoltan Kochan d6592964f0 refactor: rootProjectManifestDir is a required option 2023-10-24 15:14:33 +03:00
Zoltan Kochan ac5abd3ff7 fix(dlx): don't fail when running dlx from project with patched deps (#7201)
close #7198
close #7183
close #7200
2023-10-15 04:44:55 +03:00
Zoltan Kochan 4c959b7122 test: do not finish the workers after each test run 2023-08-25 18:13:41 +03:00
Zoltan Kochan f2009d1756 perf: use a worker pool to link packages (#6950)
ref #6808
2023-08-24 20:05:53 +03:00
Zoltan Kochan 083bbf5907 perf: extract packages in a worker pool (#6850) 2023-08-14 02:07:39 +03:00
await-ovo 12b0f09768 fix(plugin-commands-patching): patch should works correctly when shared-workspace-file is false (#6889) 2023-08-03 02:53:06 +03:00
await-ovo 653e9104c0 fix(plugin-commands-patching): ignore empty patch content when patch-commit (#6826) 2023-07-19 13:47:29 +03:00
Zoltan Kochan a950aa1483 test(patching): fix 2023-06-30 01:09:37 +03:00
btea 057927cd3b fix: remove patchedDependencies if all patch files are deleted (#6688) 2023-06-19 15:28:42 +03:00
Kirk LinandZoltan Kochan f0d68ab2fd fix: pnpm patch should ignore files that are not included in the patched package (#6596)
close #6565

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-06-08 03:33:28 +03:00
Zoltan Kochan 9c4ae87bd1 feat: include some settings as fields in the lockfile (#6557)
ref #6312
2023-05-21 02:40:39 +03:00