Commit e4230b4
Fix npm resolution crash on reinstall/uninstall due to missing platform package skeletons (#599)
- [x] Identify root cause: `preinstall.cjs` only creates a skeleton for
the current platform, but `optionalDependencies` references all 4
platforms as `file:` deps
- [x] Fix `preinstall.cjs` to create skeletons for all platforms so npm
can resolve all `file:` dependencies
- [x] Address review feedback: derive ALL_PLATFORMS from package.json
optionalDependencies instead of hardcoding
- [x] Address review feedback: remove unused `os` require
- [x] Address review feedback: fix placeholder version comment to
reference correct script
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>
Co-authored-by: Baiju Meswani <baijumeswani@gmail.com>1 parent c3e5841 commit e4230b4
1 file changed
+39
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
8 | 27 | | |
9 | 28 | | |
10 | 29 | | |
11 | | - | |
| 30 | + | |
| 31 | + | |
12 | 32 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
16 | 36 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
0 commit comments