You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have defined the script entry and am trying to pass additional parameters to it. This is supported if demo-bin was installed through npm. If I try to run lint-staged, this happens:
λ yarn run lint-staged
yarn run v1.0.2
warning ..\package.json: No license field
$ lint-staged
> Running tasks for *.js
× demo-bin hello
→ demo-bin could not be found. Try `npm install demo-bin`.
demo-bin could not be found. Try `npm install demo-bin`.
error Command failed with exit code 1.
We split the command into bin and args while using npm-which:
I am not 100% this is a bug but here's an extremely convoluted demo:
I have defined the script entry and am trying to pass additional parameters to it. This is supported if
demo-bin
was installed through npm. If I try to runlint-staged
, this happens:We split the command into
bin
andargs
while usingnpm-which
:https://github.com/okonet/lint-staged/blob/fd79a318985cdc7d94fa8e2969b0a98817c2b4e1/src/findBin.js#L35-L37
Should we be doing this for
packageJson.scripts[cmd]
as well?The text was updated successfully, but these errors were encountered: