If options.cwd is specified then it is prepended in front of node_modules/.bin in the path. But this means (if options.cwd is not absolute) when changed to the new working directory the path addition is wrong (it should be just node_modules/.bin).
And when options.cwd is absolute then node_modules/.bin would still be correct. So shouldn't options.cwd not be included in the node_modules/.bin path?
If
options.cwd
is specified then it is prepended in front ofnode_modules/.bin
in the path. But this means (ifoptions.cwd
is not absolute) when changed to the new working directory the path addition is wrong (it should be justnode_modules/.bin
).And when
options.cwd
is absolute thennode_modules/.bin
would still be correct. So shouldn'toptions.cwd
not be included in thenode_modules/.bin
path?