Process persisted package json before web sync#6792
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Greptile SummaryThis PR fixes a bug where a stale or corrupted
Confidence Score: 5/5Safe to merge — the change is narrowly scoped to the package.json sync path and the fallback for a missing root file preserves the existing no-op behaviour. The new helper re-renders the persisted package.json through the same compiler used by No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Update reflex/utils/frontend_skeleton.py" | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Summary
Fixes #6765.
This updates the root lockfile sync path so
package.jsonis processed before being mirrored into.web/.Previously, a stale or corrupted
reflex.lock/package.jsoncould be copied directly into.web/package.json, whichcould drop Reflex-managed scripts like
devandexport.Changes
.web/package.jsonwhen no root persisted package.json exists.