Closed
Description
Current Behavior:
package-lock.json changes depending on name of local copy of git repo, e.g. if i have two copies of the same repo locally one which matches the name in package.json and one which doesn't i get two different package-lock files, one specifies the name of the package in the inner packages list and one doesn't.
Expected Behavior:
package-lock.json should be independent of top level directory name, when working in a team there shouldn't be unnecessary changes to package-lock file due to a team member having a different local name of their git repository.
Steps To Reproduce:
- clone a repository twice one in the default named directory and one into a name that differs from the repo name.
- run
npm install
- two different package-lock files will be generated.
Environment:
- OS: Ubuntu 20.04
- Node: 15.3.0
- npm: 7.0.14