question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include LICENSE file in javascript package.

See original GitHub issue

🚀 Feature

Please include a LICENSE file in the distributed javascript package.

Motivation

Many automated license management tools expect this file to be present. If the file is not present, it requires manual intervention to find the license and add it.

Additional context

While we are on the subject, since the distributed javascript package contains a compiled version of the CPython runtime, shouldn’t the license field of package.json be "(Apache-2.0 AND PSF-2.0)"? And therefore the proposed LICENSE file would include all relevant licenses.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
dlechcommented, Sep 7, 2022

Also, also, this repository uses the MPL-2.0 license at the top level, so is the Apache-2.0 license listed in package.json wrong?

0reactions
rthcommented, Sep 17, 2022

Interestingly minified Javascript is not considered source code according to the MPL license but an executable. https://www.mozilla.org/en-US/MPL/2.0/FAQ/ (Q16). Still I think we should ask for advice from people specialized in this before making any changes, as it does have serious implications.

In particular, I’m not even sure that if this npm package is labeled as MPL 2, Pyscript can use the npm package and output unminified bundle https://pyscript.net/latest/pyscript.js under the Apache 2 license, as they are doing currently. I’ll ask them to see what they think about this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

generate-license-file - npm
Generates a text file containing all of the licences for your production dependencies. Latest version: 2.0.0, last published: 4 months ago.
Read more >
Add a License to Your package.json - YouTube
You can add license information to your packages and projects to dictate how others can use your work. Some common licenses for open...
Read more >
How to License and Distribute a Private Node Module - Keygen
Learn how to license and distribute private Node.js packages using Keygen's software licensing and distribution API.
Read more >
Combining all of the node_modules packages' LICENSE files ...
I want to run a script of some kind whether it be Python or JS that takes the contents of each LICENSE file...
Read more >
Always include `license` file in package · Issue #5529 - GitHub
Even though you .npmignore the readme.md file or don't include it in the files array in package.json it's included anyway.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found