Repository navigation
build: include react-app dependency licenses in npm_licenses tarball - #18993
Merged
Merged
Conversation
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]>
SuperQ
approved these changes
Jun 22, 2026
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.
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 thenpm_licensestarget only scanned the workspace'sweb/ui/node_modules. As a result,npm_licenses.tar.bz2silently 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_modulesin addition to the workspace's.npm_licensesalready depends onui-install, which installs react-app'snode_modules, so the path exists at build time.Verification
🤖 Generated with Claude Code