Skip to content

chore: declare the MIT license in every published package - #11723

Merged
NathanWalker merged 1 commit into
mainfrom
chore/mit-license-fields
Dec 2, 2026
Merged

NathanWalker merged 1 commit into
mainfrom
chore/mit-license-fields

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

What is the current behavior?

The repository LICENSE has been MIT, "Copyright OpenJS Foundation and other contributors", since 2021 (c0a0770). @nativescript/core, @nativescript/webpack and @nativescript/vite ship that file in their npm tarballs.

Their package.json files disagree:

  • core, types, types-ios, types-android, types-minimal, ui-mobile-base, webpack5 and winter-tc declare Apache-2.0;
  • vite declares no license at all.

So npm and license scanners report Apache-2.0 for a package whose LICENSE file says MIT.

What is the new behavior?

Every published package declares "license": "MIT", matching the repository LICENSE. Only that field changes; the code and the LICENSE file are untouched.

Third-party files keep their own licenses and headers. These include the Apache-2.0 Android flexbox/tab widgets and the image cache in ui-mobile-base, the Gradle wrapper, and the MIT-licensed color, css, css-value, css-mediaquery, fetch and easysax sources in core.

The repository LICENSE has been MIT ("Copyright OpenJS Foundation and
other contributors") since 2021, and core, webpack and vite ship that
file in their tarballs, but their package.json still said Apache-2.0, so
npm reported a different license than the one shipped. vite declared
none.
@nx-cloud

nx-cloud Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 41c1acd

Command Status Duration Result
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-12-02 20:39:28 UTC

@NathanWalker
NathanWalker merged commit 0b8b9bf into main Dec 2, 2026
12 of 13 checks passed
@NathanWalker
NathanWalker deleted the chore/mit-license-fields branch December 2, 2026 20:39
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.

1 participant