libnpmexec
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -5,8 +5,8 @@ const crypto = require('crypto') | ||
const cacheInstallDir = ({ cache, packages }) => { | ||
if (!cache) | ||
throw new Error('Must provide a valid cache path') | ||
const cacheInstallDir = ({ npxCache, packages }) => { | ||
if (!npxCache) | ||
throw new Error('Must provide a valid npxCache path') | ||
// only packages not found in ${prefix}/node_modules | ||
return resolve(cache, '_npx', getHash(packages)) | ||
return resolve(npxCache, getHash(packages)) | ||
} | ||
@@ -13,0 +13,0 @@ |
@@ -127,4 +127,4 @@ const { delimiter, dirname, resolve } = require('path') | ||
if (needInstall) { | ||
const { cache } = flatOptions | ||
const installDir = cacheInstallDir({ cache, packages }) | ||
const { npxCache } = flatOptions | ||
const installDir = cacheInstallDir({ npxCache, packages }) | ||
await mkdirp(installDir) | ||
@@ -131,0 +131,0 @@ const arb = new Arborist({ |
{ | ||
"name": "libnpmexec", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "lib" |
@@ -20,3 +20,4 @@ # libnpmexec | ||
args: ['yosay', 'Bom dia!'], | ||
cache: '~/.npm', | ||
cache: '~/.npm/_cacache', | ||
npxCache: '~/.npm/_npx', | ||
yes: true, | ||
@@ -34,2 +35,3 @@ }) | ||
- `cache`: The path location to where the npm cache folder is placed **String** | ||
- `npxCache`: The path location to where the npx cache folder is placed **String** | ||
- `color`: Output should use color? **Boolean**, defaults to `false` | ||
@@ -36,0 +38,0 @@ - `localBin`: Location to the `node_modules/.bin` folder of the local project to start scanning for bin files **String**, defaults to `./node_modules/.bin`. **libexec** will walk up the directory structure looking for `node_modules/.bin` folders in parent folders that might satisfy the current `arg` and will use that bin if found. |
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
51
14877
11