Commit f9f82d5
committed
fix(ci): move deps:tree to script file to fix publish failure
The inline node -e command had backticks that sh on Linux interpreted
as command substitution, causing `sh: 1: n+t+: not found`. Also,
npm ls exits non-zero on ELSPROBLEMS (version mismatches in optional
platform-specific deps), which made execSync throw during publish.
Fix: move to scripts/gen-deps.cjs with try/catch to handle npm ls
failures gracefully, and use --omit=dev to exclude devDependencies.1 parent ae286d4 commit f9f82d5
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments