Skip to content

build: include react-app dependency licenses in npm_licenses tarball - #18993

Merged
krajorama merged 1 commit into
release-3.13from
krajo/fix-npm-licenses-react-app
Jun 22, 2026
Merged

krajorama merged 1 commit into
release-3.13from
krajo/fix-npm-licenses-react-app

Conversation

@krajorama

Copy link
Copy Markdown
Member

Since the npm-to-pnpm migration (#18797), the old react-app UI is a separate pnpm project with its own web/ui/react-app/node_modules, while the npm_licenses target only scanned the workspace's web/ui/node_modules. As a result, npm_licenses.tar.bz2 silently lost all of react-app's dependency licenses.

The old react-app UI is still embedded in the binary (served via --enable-feature=old-ui), so its dependencies — bootstrap, jquery, reactstrap, moment, tempusdominus, sanitize-html, etc. — are distributed, but their license texts are no longer bundled. This is a license-compliance gap.

Fix

Scan react-app's node_modules in addition to the workspace's. npm_licenses already depends on ui-install, which installs react-app's node_modules, so the path exists at build time.

Verification

before: 626 license files (no react-app deps)
after:  1992 license files (bootstrap, jquery, reactstrap, ... now included)
NONE

🤖 Generated with Claude Code

Since the npm-to-pnpm migration (#18797), react-app is a separate pnpm project
with its own web/ui/react-app/node_modules, while `npm_licenses` only scanned the
workspace's web/ui/node_modules. The old react-app UI is still embedded in the
binary (served via --enable-feature=old-ui), so its dependencies (bootstrap,
jquery, reactstrap, moment, etc.) are distributed but their licenses were dropped
from npm_licenses.tar.bz2.

Scan react-app's node_modules too. ui-install already installs it, so the path
exists at build time. The tarball grows from ~626 to ~1992 license files.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
@krajorama
krajorama requested review from a team, SuperQ and simonpasquier as code owners June 22, 2026 08:36
@krajorama
krajorama requested a review from juliusv June 22, 2026 08:37

@bwplotka bwplotka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@krajorama
krajorama enabled auto-merge (squash) June 22, 2026 08:44
@krajorama
krajorama merged commit 3c3c442 into release-3.13 Jun 22, 2026
40 checks passed
@krajorama
krajorama deleted the krajo/fix-npm-licenses-react-app branch June 22, 2026 09:00
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.

3 participants