Commit 80e0916
committed
Fix shadow bin argument passing - args were shifted incorrectly
The shadow-bin/npm and shadow-bin/npx files were incorrectly passing the
bin name ('npm'/'npx') as the first argument, which caused args to be
set to a string instead of an array. This resulted in 'findLast is not
a function' errors because strings don't have the findLast method.
- shadow-bin/npm: Remove 'npm' argument (already hardcoded in shadowNpmBin)
- shadow-bin/npx: Use correct shadowNpxBin function and remove 'npx' argument
Fixes #9111 parent 93808b4 commit 80e0916
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments