[BUG] npx --no
/npm exec --no
/npm exec --yes
runs tool in different path than npx --yes
or npx
#8021
Open
2 tasks done
Labels
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
package.json
structure, usingeslint
^5.16.0 as a dev-dependency.npx eslint --max-warnings=0 --ext .js --ext .jsx src/**/*
- observed files found and lintednpx --no eslint --max-warnings=0 --ext .js --ext .jsx src/**/*
- observed "No files matching the pattern were found"npx --yes eslint --max-warnings=0 --ext .js --ext .jsx src/**/*
- observed files found and lintednpm exec --no eslint --max-warnings=0 --ext .js --ext .jsx src/**/*
- observed "No files matching the pattern were found"npm exec --yes eslint --max-warnings=0 --ext .js --ext .jsx src/**/*
- observed "No files matching the pattern were found"npm exec eslint --max-warnings=0 --ext .js --ext .jsx src/**/*
- observed "No files matching the pattern were found"Expected Behavior
eslint
should be run in the directorynpx
ornpm exec
was run in, and files should be found and linted.--no/--yes
flag presence, or depending on whethernpx
ornpm exec
is used.Steps To Reproduce
Steps in "current behavior".
Environment
The text was updated successfully, but these errors were encountered: