Describe the bug
If the user removes the scripts or other sections that reflex puts into package.json during reflex init, a subsequent hot reload can result in the dev server not being able to start.
To Reproduce
reflex run
truncate -s 0 reflex.lock/package.json then touch a python file -> trigger hot reload
- get the lockfile out of sync warning
- exit reflex, delete
reflex.lock
reflex run -> dev server cannot start since package.json is missing the scripts section
Expected behavior
Reflex shouldn't blindly copy package.json without ensuring the necessary dev scripts are in place.
Describe the bug
If the user removes the scripts or other sections that reflex puts into package.json during
reflex init, a subsequent hot reload can result in the dev server not being able to start.To Reproduce
reflex runtruncate -s 0 reflex.lock/package.jsonthen touch a python file -> trigger hot reloadreflex.lockreflex run-> dev server cannot start since package.json is missing the scripts sectionExpected behavior
Reflex shouldn't blindly copy package.json without ensuring the necessary dev scripts are in place.