Skip to content

Commit 24811fa

Browse files
committed
Improve npm config load readability
1 parent 51fcde7 commit 24811fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/lockfile/helpers/load-npm-config.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import Config from "@npmcli/config";
22
import defaults from "@npmcli/config/lib/definitions/index.js";
33

44
export async function loadNpmConfig({ npmPath }: { npmPath: string }) {
5-
const conf = new Config({
5+
const config = new Config({
66
npmPath,
77
definitions: defaults.definitions,
88
shorthands: defaults.shorthands,
99
flatten: defaults.flatten,
1010
});
1111

12-
await conf.load();
12+
await config.load();
1313

14-
return conf;
14+
return config;
1515
}

0 commit comments

Comments
 (0)