Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make npm run autocomplete work with workspaces #8135

Merged
merged 1 commit into from
Mar 11, 2025

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
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