pacote 13.4.0 → 13.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dir.js +3 -1
- package/package.json +1 -1
package/lib/dir.js
CHANGED
|
@@ -63,10 +63,12 @@ class DirFetcher extends Fetcher {
|
|
|
63
63
|
stream.resolved = this.resolved
|
|
64
64
|
stream.integrity = this.integrity
|
|
65
65
|
|
|
66
|
+
const { prefix, workspaces } = this.opts
|
|
67
|
+
|
|
66
68
|
// run the prepare script, get the list of files, and tar it up
|
|
67
69
|
// pipe to the stream, and proxy errors the chain.
|
|
68
70
|
this[_prepareDir]()
|
|
69
|
-
.then(() => packlist({ path: this.resolved }))
|
|
71
|
+
.then(() => packlist({ path: this.resolved, prefix, workspaces }))
|
|
70
72
|
.then(files => tar.c(tarCreateOptions(this.package), files)
|
|
71
73
|
.on('error', er => stream.emit('error', er)).pipe(stream))
|
|
72
74
|
.catch(er => stream.emit('error', er))
|