Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pacote/lib/util/pack-dir.js')
-rw-r--r--node_modules/pacote/lib/util/pack-dir.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/pacote/lib/util/pack-dir.js b/node_modules/pacote/lib/util/pack-dir.js
index 60989025c..54a94e586 100644
--- a/node_modules/pacote/lib/util/pack-dir.js
+++ b/node_modules/pacote/lib/util/pack-dir.js
@@ -32,7 +32,9 @@ function packDir (manifest, label, dir, target, opts) {
} else {
const cacher = cacache.put.stream(
opts.cache, cacheKey('packed-dir', label), opts
- )
+ ).on('integrity', i => {
+ target.emit('integrity', i)
+ })
return BB.all([
pipe(packer, cacher),
pipe(packer, target)