node-cross-spawn icon indicating copy to clipboard operation
node-cross-spawn copied to clipboard

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

Open patrickkfkan opened this issue 9 months ago • 0 comments

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.

patrickkfkan avatar May 18 '24 22:05 patrickkfkan