Document new shrinkwrap dev dep behavior #14519
Conversation
5f7a883
to
2623ece
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, otherwise LGTM.
`npm install --only=production` they won't be installed. Similarly, if | ||
the environment variable `NODE_ENV` is `production` then they won't be | ||
installed. You can request they not be included with: | ||
`npm shrinkwrap --production` or `npm shrinkwrap --only=prod`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about flipping the order of these around. It would be nice to (eventually) deprecate --prod
and --dev
and only use the clearer --only
and --also
in their place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Flipping the order in both places.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
installed `devDependencies` are excluded, then npm will print a | ||
warning. If you want them to be installed with your module by | ||
default, please consider adding them to `dependencies` instead. | ||
Starting with npm v4.0.0, `devDependencies` are included when you run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/4.0.0/4.0.1/
2623ece
to
dd61cc3
Compare
dd61cc3
to
05a646d
Compare
05a646d
to
62561cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐑🚀🔥
merged as 7f41295 |
Changes Unknown when pulling 62561cd on iarna/shrinkwrap-docs into * on release-next*. |
Changes Unknown when pulling 62561cd on iarna/shrinkwrap-docs into * on release-next*. |
Changes Unknown when pulling 62561cd on iarna/shrinkwrap-docs into * on release-next*. |
Changes Unknown when pulling 62561cd on iarna/shrinkwrap-docs into * on release-next*. |
@coveralls is being really unhelpful. |
Changes Unknown when pulling 62561cd on iarna/shrinkwrap-docs into * on release-next*. |
Back in 4.0.1 I made shrinkwraps include devepment dependencies by default, but forgot to update the associated documentation.
Fixes: #14479