Skip to content

chore: combine deps license with same text#18356

Merged
sapphi-red merged 3 commits into
mainfrom
group-license-by-name
Oct 17, 2024
Merged

chore: combine deps license with same text#18356
sapphi-red merged 3 commits into
mainfrom
group-license-by-name

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Oct 15, 2024

Description

This shrinks our license file a bit by combining those with the same license text. It's slightly easier to review when hiding whitespace changes.

Initially my idea was even radical by grouping per license type, but it's not very feasible at the end since every license has slightly different formatting and additional text. Extending the copyright lines was also finicky to handle.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment thread packages/vite/LICENSE.md Outdated

License: MIT
By: Sindre Sorhus
Repository: chalk/strip-ansi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth collapsing these lines but only do it when the By is the same in all repositories to keep things simple? It seems there are several cases like this

License: MIT
By: Sindre Sorhus
Repositories: ..., sindresorhus/run-applescript, chalk/strip-ansi

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks great

@patak-cat
Copy link
Copy Markdown
Member

Nice! 👏🏼

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Oct 16, 2024
Comment thread packages/vite/rollupLicensePlugin.ts Outdated
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@sapphi-red sapphi-red merged commit b5d1a05 into main Oct 17, 2024
@sapphi-red sapphi-red deleted the group-license-by-name branch October 17, 2024 04:33
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants