Skip to content

fix: refresh npx cache for local bin changes#9767

Open
cyphercodes wants to merge 1 commit into
npm:latestfrom
cyphercodes:cyphercodes/npx-directory-bin-cache
Open

fix: refresh npx cache for local bin changes#9767
cyphercodes wants to merge 1 commit into
npm:latestfrom
cyphercodes:cyphercodes/npx-directory-bin-cache

Conversation

@cyphercodes

Copy link
Copy Markdown
Contributor

Fixes #9766

Summary

  • avoid reusing a stale npx cache entry when a local directory package changes its bin map
  • include the current local directory bin map in the npx cache key
  • add regression coverage for adding a new local bin between sequential npm exec runs

Testing

  • npm --workspace=libnpmexec exec -- tap test/local.js --grep 'bin changes|same-named local bins' --no-coverage
  • npm --workspace=libnpmexec exec -- eslint lib/index.js test/local.js
  • git diff --check

@cyphercodes
cyphercodes requested review from a team as code owners July 15, 2026 03:16
@cyphercodes
cyphercodes force-pushed the cyphercodes/npx-directory-bin-cache branch from ad78789 to d18f367 Compare July 15, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] npx never reinstalls a local directory spec, so newly-added bins are "command not found"

1 participant