@npmcli/arborist
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -187,2 +187,3 @@ // Arborist.rebuild({path = this.path}) will do all the binlinks and | ||
package: pkg, | ||
location, | ||
} = node | ||
@@ -194,4 +195,5 @@ | ||
const timer = `build:run:${event}:${node.location}` | ||
const timer = `build:run:${event}:${location}` | ||
process.emit('time', timer) | ||
this.log.info('run', pkg._id, event, location, pkg.scripts[event]) | ||
const p = runScript({ | ||
@@ -213,7 +215,15 @@ event, | ||
scriptShell: this[_scriptShell], | ||
}).catch(er => { | ||
const { code, signal } = er | ||
this.log.info('run', pkg._id, event, {code, signal}) | ||
throw er | ||
}).then(({code, signal}) => { | ||
this.log.info('run', pkg._id, event, {code, signal}) | ||
}) | ||
return (this[_doHandleOptionalFailure] | ||
? this[_handleOptionalFailure](node, p) : p) | ||
.then(() => process.emit('timeEnd', timer)) | ||
await (this[_doHandleOptionalFailure] | ||
? this[_handleOptionalFailure](node, p) | ||
: p) | ||
process.emit('timeEnd', timer) | ||
})) | ||
@@ -220,0 +230,0 @@ process.emit('timeEnd', `build:run:${event}`) |
{ | ||
"name": "@npmcli/arborist", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"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
275607
6728