If I use the following npm script:
"scripts": {
"lint:markdown": "markdownlint app/**/*.md",
},
and run npm run lint:markdown
, the glob only finds 5 files.
However, if I run the same command via npx
, e.g. npx markdownlint app/**/*.md
, glob correctly finds 287 files.
I’ve added logging to the executable in node_modules/bin/markdownlint
, and both commands display this logging, to the same executable is being run. WTF?