Skip to content

Disallow field licenseText for npm

Nourdin el Bacha requested to merge npm-disallow-field-licenseText into master

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR disallows the licenseText field in a npm package's meta-data

Consider the following use case:

Upon publishing with npm, things are fine.
Upon publishing with yarn, the SPDX id from license is used to add the licenseText field and populate it with the contents as per https://spdx.org/licenses/

Since the license's content is (very) large, this is resulting in a Package json structure is too large error.

Relates to #345759 (closed)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports