[BUG] the package-lock.json generated by npm i
errantly contains a ["packages"][""]["name"] property if the npm package is installed in a directory whose name differs from the npm package's name
#2812
Labels
Bug
thing that needs fixing
Duplicate
duplicate of another, existing issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
If the working directory's name differs from the name of the npm package it contains, then the generated package-lock.json has a ["packages"][""]["name"] property in violation of the npm v7 spec for the package-lock.json file per the docs at https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json
for example:
Expected Behavior:
The generated package-lock.json file should not have a "name" property under ["packages"][""]
for example:
Steps To Reproduce:
name
differs from the name of the npm packagenpm i
Environment:
The text was updated successfully, but these errors were encountered: