Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline normalize-package-data logic #139

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Inline normalize-package-data logic #139

wants to merge 5 commits into from

Conversation

wraithgar
Copy link
Member

@wraithgar wraithgar commented Jan 15, 2025

This PR removes normalize-package-data and inlines the parts of it that were being used.
It also adds validate-npm-package-license which was a dependency of normalize-package-data.

The moving of code was accomplished by pulling in the code as-is, then adding full test coverage. Only then was dead and unused code pruned. After that some refactoring was done to further clean up the code.

@npmcli/eslint-config was also updated, and a now unneeded linting bypass was removed.

References

Closes: npm/statusboard#927

@wraithgar wraithgar requested a review from a team as a code owner January 15, 2025 15:11
This was accomplished by pulling in the code as-is, then adding full test coverage.  Only then was dead and unused code pruned.  After that some refactoring was done to further clean up the code.
The newest @npmcli/eslint-config allows these to be long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move normalize-package-data into @npmcli/package-json
1 participant