[BUG] npm pack --dry-run undefined@undefined in an empty package #3099
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
If you try to run
npm pack --dry-run
on a package that has noname
property in itspackage.json
file, the output showsundefined@undefined
for the package name andundefined-undefined.tgz
for the filename.Expected Behavior:
I think there should be a guard for when the
name
property, and evenversion
anddescription
properties are not set whenever runningnpm pack
.Steps To Reproduce:
steps to reproduce the behavior:
npm pack --dry-run
undefined@undefined
without warningsEnvironment:
Linux archlinux 5.11.15-arch1-2 #1 SMP PREEMPT Sat, 17 Apr 2021 00:22:30 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: