Skip to content

Ship the MIT LICENSE in every publishable package - #253

Merged
jaredwray merged 1 commit into
mainfrom
cursor/sync-package-licenses-fc8e
Oct 26, 2026
Merged

jaredwray merged 1 commit into
mainfrom
cursor/sync-package-licenses-fc8e

Conversation

@jaredwray

Copy link
Copy Markdown
Owner

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bug fix. Every publishable package now ships the MIT LICENSE in its npm tarball.

Summary

@qified/redis, @qified/rabbitmq, @qified/valkey, @qified/nats, and @qified/zeromq listed LICENSE in files but had no LICENSE file in the package directory. Only the repo root and packages/qified had one, so the next publish from main would omit the license from those adapters. qified already had the file and is unchanged.

  • Commit a byte-for-byte copy of the root MIT LICENSE in each adapter package.
  • Add scripts/license-sync.ts and pnpm license:sync, modeled on keyv. It reads pnpm-workspace.yaml and copies the root LICENSE into every non-private workspace package.
  • pnpm pack:packages runs that sync before packing. The release workflow fails the pack step if any tarball is missing LICENSE.
  • pnpm test and pnpm test:ci run pnpm test:scripts, which covers the sync script at 100% and packs each package to assert package/LICENSE is present.

No version bump. Nothing is published to npm.

Open in Web Open in Cursor 

Copy the root MIT LICENSE into each npm package and sync it before pack
so adapter tarballs cannot omit the license file.

Co-authored-by: Jared Wray <me@jaredwray.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T23:29:42.402325Z 0dfdede PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (68910f2) to head (0dfdede).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #253   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        13    +1     
  Lines         1664      1723   +59     
  Branches       289       304   +15     
=========================================
+ Hits          1664      1723   +59     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray
jaredwray merged commit f56d8ef into main Oct 26, 2026
13 checks passed
@jaredwray
jaredwray deleted the cursor/sync-package-licenses-fc8e branch October 26, 2026 23:33
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.

2 participants