global-dirs
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -28,4 +28,4 @@ 'use strict'; | ||
// Homebrew special case: `$(brew --prefix)/lib/node_modules/npm/npmrc` | ||
if (process.execPath.endsWith('/Cellar/node')) { | ||
const homebrewPrefix = path.dirname(path.dirname(process.execPath)); | ||
if (process.execPath.includes('/Cellar/node')) { | ||
const homebrewPrefix = process.execPath.slice(0, process.execPath.indexOf('/Cellar/node')); | ||
return path.join(homebrewPrefix, '/lib/node_modules/npm/npmrc'); | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "global-dirs", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Get the directory of globally installed packages and binaries", | ||
@@ -50,7 +50,7 @@ "license": "MIT", | ||
"ava": "^2.4.0", | ||
"execa": "^2.0.4", | ||
"execa": "^3.2.0", | ||
"import-fresh": "^3.1.0", | ||
"tsd": "^0.7.4", | ||
"xo": "^0.24.0" | ||
"tsd": "^0.10.0", | ||
"xo": "^0.25.3" | ||
} | ||
} |
8272