Commit 5462a96
committed
fix: use npm config get registry to support direct CLI invocation
Instead of only checking npm_config_registry env var (which is only
set when invoked via npx/npm), now uses `npm config get registry`
to read .npmrc regardless of how the CLI was started.
This addresses the maintainer's feedback that the original solution
did not work when DevTools CLI is called directly.1 parent 6d91b00 commit 5462a96
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
0 commit comments