You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/package_json.md
+63-3Lines changed: 63 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -548,7 +548,10 @@ With the above configuration pnpm will not print deprecation warnings about any
548
548
549
549
## pnpm.patchedDependencies
550
550
551
-
This field is added/updated automatically when you run [pnpm patch-commit]. It is a dictionary where the key should be the package name and exact version. The value should be a relative path to a patch file.
551
+
This field is added/updated automatically when you run [pnpm patch-commit]. It defines patches for dependencies using a dictionary where:
552
+
553
+
***Keys**: Package names with an exact version, a version range, or just the name.
554
+
***Values**: Relative paths to patch files.
552
555
553
556
Example:
554
557
@@ -562,7 +565,47 @@ Example:
562
565
}
563
566
```
564
567
565
-
## pnpm.allowNonAppliedPatches
568
+
Dependencies can be patched by version range. The priority order is:
569
+
570
+
1. Exact versions (highest priority)
571
+
2. Version ranges
572
+
3. Name-only patches (applies to all versions unless overridden)
573
+
574
+
A special case: the version range `*` behaves like a name-only patch but does not ignore patch failures.
0 commit comments