[Improvement] Better devDep heuristic
Currently, deps are installed only when the file ends with .spec.js and .test.js. Some developers like to follow a different convention which includes a single test.js file or a /test directory where all the files are executed when tests are executed.
Would you be open to changing the heuristic currently used to determine if a file is a test file to include such conventions?
Yes!
I've been thinking about this. What do you think about a regex that you can add to your package.json?
Adding that ability in the package.json is a good idea as an override, but as for sensible defaults, why not make a breaking change that operates on files which match **/test/** and **/test.js? I say good defaults beat customization anyday. That way people don't need to setup anything on their own unless they want more advanced filetype triggers.
Do you want to take a shot at it?
I'm not going to currently, the offer is open for anyone else.