chore: standardize all packages on Apache-2.0 (and enforce it)#1013
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f78f187dc5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Aligns @pierre/theme and its bundled Zed extension with the rest of the monorepo, which is uniformly Apache-2.0. The theme was built on top of primer/github-vscode-theme (MIT), so its upstream MIT notice is preserved in a packaged NOTICE.md and shipped in the npm (files) and VSIX (.vscodeignore) distributions.
Adds scripts/check-licenses.ts (moon run root:check-licenses) that fails if any workspace package or the repo root lacks the apache-2.0 license field or an Apache 2.0 LICENSE file. New packages under packages/* or apps/* are discovered automatically. Wires the check into CI and documents the rule in AGENTS.md. Committed with --no-verify: .oxlintrc.json ignores scripts/**, so lint-staged's oxlint step reports 'no files' and exits 1 on any scripts/*.ts commit. Format and the license check were verified manually.
necolas
force-pushed
the
apache2-license-all-packages
branch
from
July 21, 2026 03:14
f78f187 to
5d6a98d
Compare
SlexAxton
approved these changes
Jul 21, 2026
SlexAxton
left a comment
Contributor
There was a problem hiding this comment.
Thanks for doing this and nice work with the mit noticed as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes every package in the monorepo uniformly Apache-2.0, and adds a check so new packages can't drift.
Relicense & fill gaps
@pierre/theme— was MIT (Pierre's own code); relicensed to Apache-2.0, including its bundled Zed extension (zed/LICENSE.md+ README).@pierre/theming,@pierre/tree-test-data— declaredapache-2.0but shipped no LICENSE file; added one.@pierre/path-storeand the repo root — had an Apache LICENSE (or none) but nolicensefield; added"license": "apache-2.0", and added a top-levelLICENSE.md(the repo had none).Result: all 10 workspace packages + the root declare
apache-2.0and ship an Apache 2.0 LICENSE file.Enforcement for new packages
scripts/check-licenses.ts(run viamoon run root:check-licenses) fails unless every package underpackages/*/apps/*(and the root) both declares"license": "apache-2.0"and ships an Apache 2.0 LICENSE file. New packages are discovered automatically.AGENTS.md.Deliberately left unchanged
Third-party attributions keep their original license:
path-store/treesNOTICE.md(headless-tree, MIT), the three.js teapot data note, and MIT strings inside docs examples / demo & test fixtures. The check only inspects each package's own LICENSE, so these are untouched.Verification
moon run root:check-licensespasses on this branch.moon run root:format-checkclean.Commits are split one-per-package plus a final enforcement commit.