Repository navigation
Log why npm is used when only package-lock.json is persisted - #7305
Conversation
a8330da to
dd0f1c6
Compare
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Merging this PR will improve performance by 5.19%
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
masenf
left a comment
There was a problem hiding this comment.
Thank you for contributing
Closes #7093
After a successful run with
REFLEX_USE_NPM=1,reflex.lock/holdspackage-lock.jsonand nobun.lock, so later runs keep picking npm even with the env var unset. That's intended (committing onlypackage-lock.jsonopts a project into npm), but nothing says it's happening.This logs a single info line when npm is picked only because of the persisted lockfile, pointing at
REFLEX_USE_NPM=0to switch back. An explicitREFLEX_USE_NPMstays silent. Selection logic is unchanged; the switch-back itself already works since #7129 drops the stale npm lock when bun runs.Tested with the unit suite (
tests/units), ruff, codespell and pyright on the changed files.AI help: used for parts of this change.