@npmcli/config
Advanced tools
Comparing version 7.1.0 to 7.2.0
@@ -21,9 +21,2 @@ const definitions = require('./definitions.js') | ||
} | ||
// XXX make this the bin/npm-cli.js file explicitly instead | ||
// otherwise using npm programmatically is a bit of a pain. | ||
flat.npmBin = require.main ? require.main.filename | ||
: /* istanbul ignore next - not configurable property */ undefined | ||
flat.nodeBin = process.env.NODE || process.execPath | ||
return flat | ||
@@ -30,0 +23,0 @@ } |
@@ -118,2 +118,3 @@ // TODO: set the scope config from package.json or explicit cli config | ||
this.npmPath = npmPath | ||
this.npmBin = join(this.npmPath, 'bin/npm-cli.js') | ||
this.argv = argv | ||
@@ -235,2 +236,4 @@ this.env = env | ||
} | ||
this.#flatOptions.nodeBin = this.execPath | ||
this.#flatOptions.npmBin = this.npmBin | ||
process.emit('timeEnd', 'config:load:flatten') | ||
@@ -237,0 +240,0 @@ |
@@ -104,6 +104,3 @@ // Set environment variables for any non-default configs, | ||
} | ||
if (require.main && require.main.filename) { | ||
env.npm_execpath = require.main.filename | ||
} | ||
env.npm_execpath = config.npmBin | ||
env.NODE = env.npm_node_execpath = config.execPath | ||
@@ -110,0 +107,0 @@ } |
{ | ||
"name": "@npmcli/config", | ||
"version": "7.1.0", | ||
"version": "7.2.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "bin/", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
125436
3532
19