You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: automate bundled dependency license aggregation for npm releases (#790)
Add a shared rolldown plugin (`scripts/generate-license.ts`) that scans
chunk moduleIds to identify bundled node_modules packages, reads their
license info, and generates LICENSE.md matching Vite's format. Integrated
into all three published packages (cli, core, test) with post-build
validation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Medium risk because it changes the build pipeline for all published packages and can fail releases if dependency resolution/scanning misses packages or can’t locate license files (especially across pnpm layouts). No runtime code paths are modified.
>
> **Overview**
> Adds a shared `scripts/generate-license.ts` utility that scans built artifacts for `//#region ...node_modules...` markers, resolves referenced packages (including pnpm store layouts), reads their metadata/license texts, and emits a Vite-style aggregated `LICENSE.md`.
>
> Integrates this generator into the `cli`, `core`, and `test` build scripts (with package-specific `bundledPaths`, `resolveFrom`, and `extraPackages`), updates `.gitignore` to ignore generated `LICENSE.md`, and makes builds fail if the license file isn’t produced.
>
> <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 0ab46c8. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments