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

Include LICENSE files from the bundled packages #97

Open
1 of 2 tasks
abdala opened this issue Oct 18, 2024 · 2 comments
Open
1 of 2 tasks

Include LICENSE files from the bundled packages #97

abdala opened this issue Oct 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@abdala
Copy link

abdala commented Oct 18, 2024

Feature request

Fist of all, thank you for your amazing work. Second, if that is something you would like to have, I would love to help.

When we use node_modules (most of the times) the LICENSE file is included there, but when you bundle everything in one file all the LICENSES are gone.

I was thinking that maybe that would be a nice feature, include all LICENSE files from the bundled devDependencies

Motivations

Follow the licenses requirement about the code included in your package

Alternatives

No response

Additional context

No response

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
@abdala abdala added the enhancement New feature or request label Oct 18, 2024
@privatenumber
Copy link
Owner

Great idea!

I think we can add a --license flag to enable this.

I haven't really looked into this, but here are some good references:

@prisis
Copy link

prisis commented Oct 19, 2024

If you like you could take a look on https://github.com/visulima/packem/blob/main/packages/packem/src/rollup/plugins/license.ts

It does what you would like to have, it use marker in the file that you provide as a licence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants