Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Running --test against dependencies only #14

Open
peterlauri opened this issue Feb 25, 2019 · 1 comment
Open

Question: Running --test against dependencies only #14

peterlauri opened this issue Feb 25, 2019 · 1 comment

Comments

@peterlauri
Copy link

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
@vweevers
Copy link

vweevers commented Sep 1, 2019

Does it actually do what I hope it is doing?

I had the same question and the answer is yes:

npm-consider/lib/install.js

Lines 163 to 168 in 8c6b717

if (!isProduction()) {
Object.assign(
allDependencies,
devDependencies || {}
);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants