Commit c0ace81
committed
fix: accounts dot vs dash version/license config
Fixes a compat problem with the new `@npmcli/config` module that changes
the way these properties are handled, these aliases are no longer
auto-merged and instead live as two different properties in the new
config scheme. With that in mind this adds an extra check that validates
that the value retrieved by dot-separated property is actually different
from the default value defined in the global npm config before trying to
use that - this way users defining dash-separated configs can actually
use their values.1 parent b20020b commit c0ace81
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | | - | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
233 | 245 | | |
234 | | - | |
| 246 | + | |
235 | 247 | | |
236 | 248 | | |
237 | 249 | | |
| |||
0 commit comments