fix npm metadata with node16+ / npm7+
add hasInstallScript field and correctly set _hasShrinkwrap field based on files in the package tarball.
Issue: #346772 (closed)
add hasInstallScript field and correctly set _hasShrinkwrap field based on files in the package tarball.
Issue: #346772 (closed)