When there is no name prop in the root package.json, npm i sets the directory name as name prop in package-lock.json. When using git worktree, you work with different branches in different directories, e.g., directory identity-wallet-review.
But then npm i sets the name tag in package-lock.json to identity-wallet-review, which creates an unwanted change in every work tree.
This can be fixed by setting the name prop in the root package.json.
Description
When there is no
name
prop in the rootpackage.json
,npm i
sets the directory name asname
prop inpackage-lock.json
. When usinggit worktree
, you work with different branches in different directories, e.g., directoryidentity-wallet-review
.But then
npm i
sets thename
tag inpackage-lock.json
toidentity-wallet-review
, which creates an unwanted change in every work tree.This can be fixed by setting the
name
prop in the rootpackage.json
.Motivation
No response
Resources
No response
To-do List
n/a