This repository was archived by the owner on Feb 19, 2026. It is now read-only.
Commit 22175b8
committed
Remove use of env.npm_config_argv for npm 7
Instead use npm_config_* which works as far back as npm > 0.1.7.
It translates command line flags to environment variables, where:
--foo becomes npm_config_foo='true'
--no-foo becomes npm_config_foo=''
--foo=false becomes npm_config_foo=''1 parent 8acccac commit 22175b8
2 files changed
+14
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 9 | | |
30 | 10 | | |
31 | 11 | | |
32 | | - | |
33 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
34 | 16 | | |
35 | 17 | | |
36 | 18 | | |
37 | 19 | | |
38 | 20 | | |
39 | 21 | | |
40 | | - | |
| 22 | + | |
41 | 23 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
45 | 27 | | |
46 | 28 | | |
47 | 29 | | |
48 | 30 | | |
49 | | - | |
| 31 | + | |
| 32 | + | |
50 | 33 | | |
51 | 34 | | |
52 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments