npm-consider
npm-consider copied to clipboard
Question: Running --test against dependencies only
I was just playing around, and found that I can run the --test option together with the --production option, and it results in different results with much less packages. Our wish is to be able to run the --test only on the dependencies and not devDependencies.
This is the command I run. Does it actually do what I hope it is doing?
npx npm-consider install --test --production
Does it actually do what I hope it is doing?
I had the same question and the answer is yes:
https://github.com/delfrrr/npm-consider/blob/8c6b7175bf957513abe494bb694bb2110cac73d7/lib/install.js#L163-L168