Skip to content

Commit e2f1f7b

Browse files
committed
fix(publish): pass dryRun: true to libnpmpack so it doesnt write a tarball
1 parent 0e231d4 commit e2f1f7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/commands/publish.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class Publish extends BaseCommand {
8383
})
8484
}
8585

86-
const tarballData = await pack(spec, opts)
86+
// we pass dryRun: true to libnpmpack so it doesn't write the file to disk
87+
const tarballData = await pack(spec, { ...opts, dryRun: true })
8788
const pkgContents = await getContents(manifest, tarballData)
8889

8990
// The purpose of re-reading the manifest is in case it changed,

0 commit comments

Comments
 (0)