Commit Graph

39 Commits

Author SHA1 Message Date
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
b656f8aea1 fix: patch support unpublished pkg (#9694) 2025-07-07 11:58:23 +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
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
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
huuya
046388c64b fix(plugin-commands-patching): exclude .DS_Store file at patch-commit (#8923)
close #8922
2024-12-31 02:41:41 +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
0406d4ad3d refactor: use a branded type for project root dir paths (#8272) 2024-07-04 13:13:34 +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
9a53179e37 fix(plugin-commands-patching): do not create empty patch directory (#7410) 2023-12-13 11:11:02 +01:00
Zoltan Kochan
500363647a fix: packing the same file twice during publish (#7250)
close #6997
2023-10-27 15:30:10 +03: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
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
d774a3196c feat: onlyBuiltDependenciesFile (#7167)
close #7137
2023-10-08 01:50:47 +03:00
LaicZhang
41b5eb7a5b perf: replace startsWith with === (#7138) 2023-09-27 16:32:05 +03:00
Anders Kaseorg
512d712540 fix(plugin-commands-patching): leave final newline in patch files (#6905)
The safe-execa library strips the final newline from the command
output by default.  Here it should be left in.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-08-17 15:29:47 +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
Kirk Lin
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
Zoltan Kochan
ee61ca4cb7 style: update eslint (#6236) 2023-03-18 14:57:29 +02:00
Tao Zhou
40845b9add feat: support --patches-dir on patch-commit command (#6215)
close #6202

Co-authored-by: Zoltan Kochan <z@kochan.io>
2023-03-16 00:45:17 +00:00
await-ovo
185ab01adf feat: when patch package does not specify a version, use locally installed version by default. (#6197)
close #6192
2023-03-13 16:40:21 +02:00
await-ovo
6f56cc16e3 fix: patch-commit should auto apply patches in workspaces (#6120)
close #6048
2023-02-22 22:56:35 +02:00
Zoltan Kochan
50ecad2390 refactor: move plugin-commands-patching 2023-01-13 18:36:31 +02:00