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

fix: cmd-shim not identified if placed outside node_modules/.bin/ #158

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

Conversation

patrickkfkan
Copy link

I have a node executable installed globally with npm i -g . Because of this, the cmd-shim was not placed in node_modules/.bin/. On Windows, this caused cross-spawn to escape arguments only once.

This PR inspects the contents of the target file and if it can obtain the wrapped command, it will take it as cmd-shim and escape arguments twice.

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.

None yet

1 participant