Commit 87976ff
authored
fix: support negated pnpm os|cpu constraints (#2696)
Fix #2694
PNPM os/cpu constraints can also be negated such as `!arm`, for example:
```
[email protected]:
resolution: {integrity: sha512-...==}
cpu: ['!arm', '!arm64', '!riscv64', '!x64']
```
See:
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#cpu
https://nodejs.org/docs/latest-v24.x/api/process.html#processarch
https://nodejs.org/docs/latest-v24.x/api/process.html#processplatform
### Changes are visible to end-users: no
### Test plan
- New test cases added1 parent d266e8a commit 87976ff
File tree
22 files changed
+2092
-364
lines changed- e2e/pnpm_lockfiles
- base
- v101
- snapshots
- v90
- snapshots
- npm
- private
- test
- snapshots
- platforms/pnpm
22 files changed
+2092
-364
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
0 commit comments