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

Support monorepo projects that use npm workspaces #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Subv
Copy link

@Subv Subv commented Oct 1, 2023

When run in a monorepo, the npm ls command lists only the local packages as top-level dependencies, and does not automatically hoist the sub-dependents.

This change makes it so that if a local package is detected (the resolved location starts with file:) then the dependents of that package are recursively added to the top level dependencies.

When run in a monorepo, the `npm ls` command lists only the local packages as top-level dependencies, and does not automatically hoist the sub-dependents.

This change makes it so that if a local package is detected (the resolved location starts with `file:`) then the dependents of that package are recursively added to the top level dependencies.
@Subv Subv requested a review from jdanil as a code owner October 1, 2023 17:21
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.

1 participant