@npmcli/arborist
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -58,3 +58,4 @@ // add and remove dependency specs to/from pkg manifest | ||
// if we're in global mode, file specs are based on cwd, not arb path | ||
pkg[type][name] = specType === 'file' ? `file:${relpath(path, fetchSpec)}` | ||
pkg[type][name] = specType === 'file' || specType === 'directory' | ||
? `file:${relpath(path, fetchSpec)}` | ||
: (rawSpec || '*') | ||
@@ -61,0 +62,0 @@ } |
@@ -193,3 +193,4 @@ // Arborist.rebuild({path = this.path}) will do all the binlinks and | ||
process.emit('time', `build:run:${event}:${node.location}`) | ||
const timer = `build:run:${event}:${node.location}` | ||
process.emit('time', timer) | ||
const p = runScript({ | ||
@@ -213,4 +214,5 @@ event, | ||
return this[_doHandleOptionalFailure] | ||
? this[_handleOptionalFailure](node, p) : p | ||
return (this[_doHandleOptionalFailure] | ||
? this[_handleOptionalFailure](node, p) : p) | ||
.then(() => process.emit('timeEnd', timer)) | ||
})) | ||
@@ -217,0 +219,0 @@ process.emit('timeEnd', `build:run:${event}`) |
{ | ||
"name": "@npmcli/arborist", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Manage node_modules trees", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
275294
6719