@pnpm/global-bin-dir
Advanced tools
Comparing version 1.2.5 to 1.2.6
# @pnpm/global-bin-dir | ||
## 1.2.6 | ||
### Patch Changes | ||
- 941c5e8de: `npx pnpm install --global pnpm` should not install pnpm to the temporary directory of npx. | ||
## 1.2.5 | ||
@@ -4,0 +10,0 @@ |
@@ -29,3 +29,3 @@ "use strict"; | ||
const lowCaseDir = dir.toLowerCase(); | ||
if (isUnderDir('node', lowCaseDir) || | ||
if ((isUnderDir('node', lowCaseDir) || | ||
isUnderDir('nodejs', lowCaseDir) || | ||
@@ -35,3 +35,3 @@ isUnderDir('npm', lowCaseDir) || | ||
knownCandidates.some((candidate) => areDirsEqual(candidate, dir)) || | ||
dirHasNodeRelatedCommand(dir)) { | ||
dirHasNodeRelatedCommand(dir)) && !isUnderDir('_npx', lowCaseDir)) { | ||
if (canWriteToDirAndExists(dir)) | ||
@@ -38,0 +38,0 @@ return dir; |
{ | ||
"name": "@pnpm/global-bin-dir", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Finds a directory that is in PATH and we have permission to write to i", | ||
@@ -33,10 +33,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/error": "^1.4.0", | ||
"can-write-to-dir": "^1.0.0", | ||
"@pnpm/error": "1.4.0", | ||
"can-write-to-dir": "^1.0.1", | ||
"path-name": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/global-bin-dir": "link:", | ||
"is-windows": "^1.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
7782
1
Updated@pnpm/error@1.4.0
Updatedcan-write-to-dir@^1.0.1