-
Notifications
You must be signed in to change notification settings - Fork 14
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
Incorrectly resolves root in monorepo #4
Comments
I would also add myself to that question. It's a problem for yarn managed repositories. I would propose taking the workspace.root and adding a way to define our own independent files |
It could be improved, consider send PR. |
any further ? please ~ |
@chemzqm |
@Geschoss you should
|
@IndexXuan |
#9 |
@IndexXuan |
@Geschoss I will local build your code and check it in my project tomorrow. |
I have a monorepo with many
package.json
files throughout (managed with yarn workspaces). When I try to run:Jest
or:JestCurrent
it errors saying it can't find the Jest executable. In order to run it I have to first open my root level package.json.It seems that the
resolveRoot
function usesfindUp
to find the nearestpackage.json
and assumes that will be the location of Jest. Since I have multiple packages, it's most likely stopping too soon. Is there a reason not to useworkspace.root
from thecoc.nvim
plugin? I'm still new to this plugin and its ecosystem, but seems to be if something already has the root plugins should prefer that, no?The text was updated successfully, but these errors were encountered: