File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ class Pack extends BaseCommand {
44
44
// noise generated during packing
45
45
const tarballs = [ ]
46
46
for ( const { arg, manifest } of manifests ) {
47
- const tarballData = await libpack ( arg , this . npm . flatOptions )
47
+ const tarballData = await libpack ( arg , {
48
+ ...this . npm . flatOptions ,
49
+ prefix : this . npm . localPrefix ,
50
+ workspaces : this . workspacePaths ,
51
+ } )
48
52
const pkgContents = await getContents ( manifest , tarballData )
49
53
tarballs . push ( pkgContents )
50
54
}
Original file line number Diff line number Diff line change @@ -80,7 +80,12 @@ class Publish extends BaseCommand {
80
80
}
81
81
82
82
// we pass dryRun: true to libnpmpack so it doesn't write the file to disk
83
- const tarballData = await pack ( spec , { ...opts , dryRun : true } )
83
+ const tarballData = await pack ( spec , {
84
+ ...opts ,
85
+ dryRun : true ,
86
+ prefix : this . npm . localPrefix ,
87
+ workspaces : this . workspacePaths ,
88
+ } )
84
89
const pkgContents = await getContents ( manifest , tarballData )
85
90
86
91
// The purpose of re-reading the manifest is in case it changed,
You can’t perform that action at this time.
0 commit comments