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

Custom root detection for NPM workspaces #135

Open
codeinabox opened this issue Mar 26, 2024 · 1 comment
Open

Custom root detection for NPM workspaces #135

codeinabox opened this issue Mar 26, 2024 · 1 comment

Comments

@codeinabox
Copy link

Thank you for this plug-in! I've been using it to detect the project root using a package.json pattern, which works great. However, I've discovered when working with a project with NPM workspaces I need more sophisticated root detection, and to inspect if the package.json contains a workspaces key - is this possible?

@airblade
Copy link
Owner

The code isn't capable at the moment of inspecting the contents of files.

Perhaps you could give a specific example of a rooter situation with a workspace? (In #124 we came up with a pattern that worked with Rust workspaces, so maybe we could do the same here.)

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

No branches or pull requests

2 participants