@zkochan/npm-conf
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -23,8 +23,11 @@ 'use strict'; | ||
conf.addFile(conf.get('userconfig'), 'user'); | ||
if (conf.get('workspace-prefix')) { | ||
// TODO: cover with tests that configs from workspace .npmrc have bigger priority | ||
// than the ones in userconfig | ||
if (conf.get('workspace-prefix') && conf.get('workspace-prefix') !== projectConf) { | ||
const workspaceConf = path.resolve(conf.get('workspace-prefix'), '.npmrc'); | ||
conf.addFile(workspaceConf, 'workspace'); | ||
} | ||
conf.addFile(conf.get('userconfig'), 'user'); | ||
if (conf.get('prefix')) { | ||
@@ -31,0 +34,0 @@ const etc = path.resolve(conf.get('prefix'), 'etc'); |
{ | ||
"name": "@zkochan/npm-conf", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Get the npm config", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
21635
659