Disallow field licenseText for npm
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:
-
package.jsonincludes a fieldlicense - the value of
licenseis anSPDX license identifier(see https://docs.npmjs.com/cli/v8/configuring-npm/package-json#license) - you publish the package with
yarn
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.
-
I have evaluated the MR acceptance checklist for this MR.