Skip to content

Conversation

@terrainvidia
Copy link
Contributor

PR makes npm run completion to take workspaces into account in case of cwd is inside workspace dir it will autocompletes from scripts section of nearest workspace's package.

Former behavoiur was to autocomplete everything from workspace root package, it has no sense since when you are in workspace directory script which will be suggested in such manner will not work. So there was a mismatch between the script launch and the autocomplete hint areas.

References

Fixes #7114

@terrainvidia terrainvidia requested a review from a team as a code owner February 27, 2025 01:35
@owlstronaut owlstronaut self-assigned this Mar 11, 2025
@owlstronaut owlstronaut changed the title fix: make npm run autocomplete to work with workspaces fix: make npm run autocomplete work with workspaces Mar 11, 2025
@owlstronaut owlstronaut merged commit 2f5392a into npm:latest Mar 11, 2025
20 checks passed
@github-actions github-actions bot mentioned this pull request Mar 11, 2025
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] In workspaces npm run autocomplete only lists root scripts

2 participants