Skip to content

Rename LICENSE.md to LICENSE for better compatibility with Bazel tooling#3950

Merged
UziTech merged 1 commit intomarkedjs:masterfrom
davido:rename_license_file
Apr 19, 2026
Merged

Rename LICENSE.md to LICENSE for better compatibility with Bazel tooling#3950
UziTech merged 1 commit intomarkedjs:masterfrom
davido:rename_license_file

Conversation

@davido
Copy link
Copy Markdown
Contributor

@davido davido commented Apr 19, 2026

Starting with aspect_rules_js 3.x, the default npm packaging behavior excludes Markdown files (for example, *.md) from generated package contents.

As a result, packages that ship their license exclusively as LICENSE.md are no longer picked up by Bazel-based license collection pipelines.

This affects downstream consumers such as Gerrit Code Review, which relies on Bazel tooling to aggregate third-party licenses from node_modules. In this setup, marked was the only dependency whose license was omitted, because it was provided solely as LICENSE.md.

Rename the file to LICENSE so the package license is preserved in Bazel-generated npm package directories and can be detected by license aggregation and compliance tooling.

This is a packaging-only change and does not affect runtime behavior.

Fixes #3949
Refs: aspect-build/rules_js#2806

Marked version:

Markdown flavor: Markdown.pl|CommonMark|GitHub Flavored Markdown|n/a

Description

  • Fixes #### (if fixing a known issue; otherwise, describe issue using the following format)

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

Starting with aspect_rules_js 3.x, the default npm packaging behavior
excludes Markdown files (for example, *.md) from generated package
contents.

As a result, packages that ship their license exclusively as
LICENSE.md are no longer picked up by Bazel-based license collection
pipelines.

This affects downstream consumers such as Gerrit Code Review, which
relies on Bazel tooling to aggregate third-party licenses from
node_modules. In this setup, marked was the only dependency whose
license was omitted, because it was provided solely as LICENSE.md.

Rename the file to LICENSE so the package license is preserved in
Bazel-generated npm package directories and can be detected by license
aggregation and compliance tooling.

This is a packaging-only change and does not affect runtime behavior.

Fixes markedjs#3949
Refs: aspect-build/rules_js#2806
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

@davido is attempting to deploy a commit to the MarkedJS Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request involves changes to the LICENSE file. I have no feedback to provide as no review comments were submitted for evaluation.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marked-website Ready Ready Preview, Comment Apr 19, 2026 6:48am

Request Review

@UziTech
Copy link
Copy Markdown
Member

UziTech commented Apr 19, 2026

Does this need to be pushed to NPM or will it work to just update the repo and let this be pushed to NPM in the next release?

@davido
Copy link
Copy Markdown
Contributor Author

davido commented Apr 19, 2026

It's fully sufficient to be included in the next regular NPM release.

@UziTech UziTech merged commit 55a54b5 into markedjs:master Apr 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use non-Markdown license file (LICENSE.txt) for Bazel toolchains

2 participants