- Notifications
You must be signed in to change notification settings - Fork3.5k
fix: omit name from package-lock.json in case of package.json don't have name#8193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:latest
Are you sure you want to change the base?
Conversation
85ec0c9
to26b6454
CompareWhile name is not available in package.json, packag-lock.json inherits name of the directory which results in changes in package-lock.json each time when someone use the repo with different name which don't have any actual changes. To resolve it we can omit name from package-lock.json in case of no name available in package.json. This PR enhances the omission of the 'name' field from the package-lock.json when the package.json does not include a 'name'. This changes ensures consistency and avoids unnecessary data in the lock file. Passes all the test cases References
|
i like it 👍 |
References