npm-consider icon indicating copy to clipboard operation
npm-consider copied to clipboard

Question: Running --test against dependencies only

Open peterlauri opened this issue 6 years ago • 1 comments

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

peterlauri avatar Feb 25 '19 19:02 peterlauri

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

vweevers avatar Sep 01 '19 08:09 vweevers