Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/cliPublic

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

Draft
kchindam-infy wants to merge2 commits intonpm:latest
base:latest
Choose a base branch
Loading
fromkchindam-infy:fix/8008

Conversation

kchindam-infy
Copy link

References

@kchindam-infykchindam-infy requested a review froma team as acode ownerMarch 27, 2025 17:12
@kchindam-infykchindam-infy marked this pull request as draftMarch 27, 2025 17:23
@owlstronautowlstronautforce-pushed thelatest branch 2 times, most recently from85ec0c9 to26b6454CompareMarch 27, 2025 18:03
@kchindam-infykchindam-infy changed the titleDon't default name is not available iin package-jsonchrome:omit name from package-lock.json in case of package.json don't have nameMar 31, 2025
@kchindam-infykchindam-infy changed the titlechrome:omit name from package-lock.json in case of package.json don't have namechore:omit name from package-lock.json in case of package.json don't have nameMar 31, 2025
@kchindam-infykchindam-infy changed the titlechore:omit name from package-lock.json in case of package.json don't have namechore: omit name from package-lock.json in case of package.json don't have nameMar 31, 2025
@kchindam-infy
Copy link
Author

While 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

Related to#8008

@kchindam-infykchindam-infy marked this pull request as ready for reviewApril 10, 2025 14:26
@kchindam-infykchindam-infy marked this pull request as draftApril 10, 2025 14:46
@wraithgarwraithgar changed the titlechore: omit name from package-lock.json in case of package.json don't have namefix: omit name from package-lock.json in case of package.json don't have nameApr 10, 2025
@mbtools
Copy link
Contributor

i like it 👍

kchindam-infy reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kchindam-infy@mbtools

[8]ページ先頭

©2009-2025 Movatter.jp