Zoltan Kochan
5d5818e44f
style: enforce node: protocol for builtin imports ( #10951 )
...
Add n/prefer-node-protocol rule and autofix all bare builtin imports
to use the node: prefix. Simplify the simple-import-sort builtins
pattern to just ^node: since all imports now use the prefix.
2026-03-13 07:59:51 +01:00
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
01914345d5
build: enable @typescript-eslint/no-import-type-side-effects ( #10630 )
...
* build: enable `@typescript-eslint/no-import-type-side-effects`
* build: disable `@typescript-eslint/consistent-type-imports`
* chore: apply fixes for `no-import-type-side-effects`
pnpm exec eslint "**/src/**/*.ts" "**/test/**/*.ts" --fix
2026-03-08 00:02:48 +01:00
Zoltan Kochan
e04a2fa7f0
fix(patch): use '/dev/null' instead of os.devNull for GIT_CONFIG_GLOBAL ( #10757 )
...
On Windows, os.devNull is '\\.\nul', which git cannot open as a config
file path (fatal: unable to access '\\.\nul': Invalid argument).
Git for Windows translates the literal '/dev/null' correctly via its
MSYS2 layer, fixing patch-commit on Windows.
2026-02-28 13:57:43 +01:00
Umesh More
cb49a64af7
fix(patch): prevent git config path errors in patch-commit ( #10640 )
...
* fix(patch): prevent git config path errors in patch-commit
Replace HOME='' with GIT_CONFIG_GLOBAL to bypass user config
without breaking home directory resolution in restricted environments.
Fixes #6537
* fix(patch): prevent git config path errors in patch-commit
Use GIT_CONFIG_NOSYSTEM and GIT_CONFIG_GLOBAL to bypass git config
without breaking HOME path resolution in restricted environments.
Fixes #6537
2026-02-28 01:37:37 +01:00
Johan Quan Vo
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
a8fe2d5298
feat!: remove the server command ( #10463 )
2026-01-15 11:32:07 +01:00
Zoltan Kochan
f307b9a130
Merge remote-tracking branch 'origin/main' into v11
2025-09-24 10:51:53 +02:00
xiaoliyooo
6633eb3eb0
fix: fix the state.json creation path when execute pnpm patch in sub package ( #9733 )
...
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2025-09-20 02:51:23 +02:00
Zoltan Kochan
cb0c5b94c6
Merge remote-tracking branch 'origin/main' into v11
2025-09-19 14:31:36 +02:00
Andrew Schmadel
c1540ea035
fix(patch): forcibly disable ANSI color codes when generating patch diff ( #9914 )
...
Add `--no-color` to pnpm's invocation of `git diff` within the patch-commit
command. Ensures that the .diff files are valid when operating inside of
a git repository that has a local config that includes `diff.color=always`
2025-09-13 18:44:38 +02:00
Zoltan Kochan
491a84fb26
feat: use ESM instead of commonjs ( #9870 )
2025-08-25 10:02:00 +02:00
Zoltan Kochan
facd7656e8
refactor: always use extensions in relative imports ( #9878 )
2025-08-19 15:25:11 +02:00
btea
81b8a0eacb
fix(patch-remove): check if the parameters are valid ( #9809 )
2025-07-31 14:02:46 +02:00
btea
b656f8aea1
fix: patch support unpublished pkg ( #9694 )
2025-07-07 11:58:23 +02:00
Khải
0e596f60b8
refactor: use Object.hasOwn ( #9674 )
2025-06-20 17:49:28 +02:00
Zoltan Kochan
540986f326
refactor: rename peersSuffix to peerDepGraphHash ( #9656 )
2025-06-17 02:27:58 +02:00
Azat S.
d385b71d9c
fix: sort package versions semantically in patch command ( #9601 )
2025-06-04 11:23:18 +02:00
Zoltan Kochan
b0ead519b3
feat: global virtual store ( #8190 )
...
close #1001
2025-06-03 18:18:58 +02:00
Zoltan Kochan
8a9f3a4835
refactor: rename pref to bare specifier ( #9445 )
2025-04-20 22:58:08 +02:00
btea
17b7e9fbb3
fix(patch): saved path file should be relative path ( #9403 )
...
* fix(patch): saved path file should be relative path
* fix: update relative dir
* fix: update
* fix: paths in patchedDependencies should be normalized
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2025-04-14 11:42:14 +02:00
btea
31b19ae427
fix: patch-remove command failed to remove path file ( #9374 )
2025-04-07 14:10:57 +02:00
Khải
72cff38486
refactor: pass whole registries to the resolver ( #9375 )
2025-04-04 01:20:16 +02:00
btea
013285a01b
fix: patch command error message add editDir ( #9363 )
2025-04-03 07:34:57 +02:00
btea
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
e1a5fbc592
fix: terminalLink does not support ( #9277 )
2025-03-13 12:16:27 +01:00
Khải
0378a9a0ff
feat(patching): stop using /tmp for comparison ( #9251 )
...
* feat(patching): stop using `/tmp` for comparison
* refactor: use `getStorePath`
* fix: update patching/plugin-commands-patching/src/patchCommit.ts
2025-03-10 01:52:31 +01:00
Zoltan Kochan
d965748ff4
feat: setting config settings via pnpm-workspace.yaml ( #9211 )
...
Related discussion: https://github.com/orgs/pnpm/discussions/9037
2025-03-04 15:09:13 +01:00
btea
adb236f1a1
refactor: improve regexp ( #9203 )
2025-03-02 13:17:09 +01:00
Ben McCann
b8b0c687f2
perf: switch to tinyglobby ( #9169 )
2025-03-02 03:06:12 +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 Inori
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
btea
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ải
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ả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
cb006df38c
feat(patching): apply patch to all versions ( #8337 )
...
Related issue: #5686
2024-08-01 15:05:15 +02:00
Zoltan Kochan
c5ef9b0643
refactor: rename filter-utils to lockfile.utils
2024-07-28 01:35:40 +02:00
Zoltan Kochan
e9908b3185
refactor: rename lockfile-file to lockfile.fs
2024-07-28 01:15:20 +02:00
Khải
726753f05d
fix(patch): error message for missing .modules.yaml ( #8315 )
...
close #8257
2024-07-16 17:46:12 +02:00
Zoltan Kochan
0406d4ad3d
refactor: use a branded type for project root dir paths ( #8272 )
2024-07-04 13:13:34 +02:00
Christoph Nakazawa
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
华丽
08dad01af0
fix(patching): disallow external diff drivers ( #8179 )
2024-06-07 11:18:58 +02:00
Khải
2786b549d9
chore(eslint): explicit-module-boundary-types ( #7926 )
2024-04-14 13:37:50 +02:00
Khải
ffd3dc3b37
refactor(patching): return type annotations ( #7872 )
...
* refactor(patching): return type annotations
* lint: fix
* refactor(patching): type alias
2024-04-08 21:33:49 +02:00
btea
c1fee78a2f
fix: remove empty patch dir ( #7532 )
...
---------
Co-authored-by: Zoltan Kochan <z@kochan.io >
2024-01-19 00:30:06 +01:00
Ahmed Abdelbaset
06ac802b04
fix(patch-commit): wrap out patch dir in quotes in the log statement ( #7437 )
2023-12-18 10:52:06 +01:00
btea
9a53179e37
fix(plugin-commands-patching): do not create empty patch directory ( #7410 )
2023-12-13 11:11:02 +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