From e2f1f7b045a3ae9840f431cb4266ba046831247b Mon Sep 17 00:00:00 2001 From: nlf Date: Tue, 8 Feb 2022 12:25:16 -0800 Subject: [PATCH] fix(publish): pass dryRun: true to libnpmpack so it doesnt write a tarball --- lib/commands/publish.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/publish.js b/lib/commands/publish.js index 339c80daad65e..63106c520bd58 100644 --- a/lib/commands/publish.js +++ b/lib/commands/publish.js @@ -83,7 +83,8 @@ class Publish extends BaseCommand { }) } - const tarballData = await pack(spec, opts) + // we pass dryRun: true to libnpmpack so it doesn't write the file to disk + const tarballData = await pack(spec, { ...opts, dryRun: true }) const pkgContents = await getContents(manifest, tarballData) // The purpose of re-reading the manifest is in case it changed,