Skip to content

Commit

Permalink
fix(publish): pass dryRun: true to libnpmpack so it doesnt write a ta…
Browse files Browse the repository at this point in the history
…rball
  • Loading branch information
nlf committed Feb 8, 2022
1 parent 0e231d4 commit e2f1f7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e2f1f7b

Please sign in to comment.