-
-
Notifications
You must be signed in to change notification settings - Fork 422
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 Bug when node_modules are outside of project #477
Conversation
Codecov Report
@@ Coverage Diff @@
## master #477 +/- ##
==========================================
+ Coverage 98.74% 98.75% +<.01%
==========================================
Files 12 12
Lines 239 240 +1
Branches 28 28
==========================================
+ Hits 236 237 +1
Misses 3 3
Continue to review full report at Codecov.
|
This PR is not acceptable as it has unnecessary and incorrect changes to the documentation and |
@sudo-suhas that's fine. Btw documentation changes are on my fork I use for the project, I didn't' intend it for this pr. |
The idea behind using
I can't imagine such case since |
Taking the case of |
I added a
|
Also, we use
Since we haven't faced any issue with binary resolution, I am reasonably confident with using |
Okay. Then ship it :) |
In that case it sounds more reasonable to look for the topmost
|
They aren't:
|
@sudo-suhas @okonet What's the status of this PR? |
@Vanuan would you mind propose a working solution and file a PR? As @sudo-suhas we can't merge this PR as is and it was closed by the author. Alternatively, I'd still be happy to accept @ultrox work but we'd need to clean things up and add related tests for this edge case. |
I've upgraded to latest and the issue appears to be fixed. Not sure why since this PR is not merged |
I'm not sure is this intended or not, but I think its more stable then using "app-root-path".
Said package fails to find package json, when
node_modules
are placed outside of project in any way, including when "node_modules" are symlinked in the project.process.cwd()
works better because it will always be actually root project in this case.