Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I meet the bug for my tool la-starter-cli
It seems the same as #28
the bug
In my case,
app-root-path
parse my tool'sappRoot
as/usr/local/lib/
on MacSo I got
/usr/local/lib/package.json
not found in my codeIt should be
/usr/local/lib/node_modules/@seognil-lab/la-starter-cli/
instead(install and run my tool
lcli -v
)(the bug should appear after reopen my code line 7 & 8 and comment line 10)
the fix
I trace the code, it happens while there are multi
node_modules
in the path stringe.g.
/usr/local/lib/node_modules/@seognil-lab/la-starter-cli/node_modules/app-root-path/lib
I update the code, and test manually passed for both mac and window
It may fix #28
(Maybe #20 as well, not checked that too much)
remaining
But I'm not sure the origin logic,
And I know
app-root-path
is used by tons of libsSo I also keep it as comment code,
Please check it
Thanks ~
(UPDATE)
I notice that CI failed,
so maybe we could seperate the use-case somehow?