fix(cli,deps): prevent esbuild audit loop and lockfile churn discard - #46599
Closed
ft-ioxcs wants to merge 1 commit into
Closed
fix(cli,deps): prevent esbuild audit loop and lockfile churn discard#46599ft-ioxcs wants to merge 1 commit into
ft-ioxcs wants to merge 1 commit into
Conversation
Two changes: 1. Add npm override esbuild 0.28.1 in root package.json to force the patched version across all workspaces (web, ui-tui, bootstrap-installer). This fixes the recurring high-severity audit warnings that returned after every hermes update because the pulled lockfile still contained vulnerable esbuild 0.27.7 / 0.28.0 as transitive deps of vite. 2. Patch _discard_lockfile_churn() so it does not discard a lockfile when the corresponding package.json is also dirty. Previously, intentional dependency fixes (like the esbuild override) were silently thrown away before git pull, causing the vulnerability to reappear on every update.
Contributor
|
I salvaged the audit-loop fix onto current Thanks for finding and fixing the issue. |
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.
What does this PR do?