Repository navigation
fix(pacquet): read legacy license fields - #13446
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe package manifest crate adds shared license extraction for modern and legacy fields. The licenses CLI uses it, with unit and end-to-end tests covering legacy MIT metadata and reported package paths. ChangesLegacy license support
Estimated code review effort: 3 (Moderate) | ~20 minutes Assessment against linked issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by Qodofix(pacquet): read legacy package.json license fields
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness or security issues identified. The new extractor matches the existing TypeScript license-resolution contract, and the CLI continues to group and render the resulting license values through its established output path. Reviews (1): Last reviewed commit: "fix(pacquet): read legacy license fields" | Re-trigger Greptile |
Code Review by Qodo
Context used✅ Compliance rules (platform):
32 rules 1. Changeset missing pnpm entry
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13446 +/- ##
=======================================
Coverage 87.64% 87.64%
=======================================
Files 545 545
Lines 93978 94011 +33
=======================================
+ Hits 82367 82399 +32
- Misses 11611 11612 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Aligns the Rust
pnpm licenses listlicense values with TypeScript pnpm by reading both the modernlicensefield and legacylicensesmanifest forms. This completes the remaining license-value parity work for #13438.Adds parser coverage for precedence, object, array, and multi-license forms, plus a CLI integration fixture that verifies a legacy license is reported under
MIT.Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
pnpm licenses listso packages using legacy license metadata are recognized correctly.