You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a CLI Docs Enhancement, not another kind of Docs Enhancement.
This is a CLI Docs Enhancement.
Description of Problem
The npm docs for ci state,
This command is similar to npm install, except it's meant to be used in automated environments such as test platforms, continuous integration, and deployment -- or any situation where you want to make sure you're doing a clean install of your dependencies. It can be significantly faster than a regular npm install by skipping certain user-oriented features. It is also more strict than a regular install, which can help catch errors or inconsistencies caused by the incrementally-installed local environments of most npm users.
The enumerated list of differences below do not mention the hooks run.
The documentation for prepare state,
Runs BEFORE the package is packed
Runs BEFORE the package is published
Runs on local npm install without any arguments
Run AFTER prepublish, but BEFORE prepublishOnly
NOTE: If a package being installed through git contains a prepare script, its dependencies and devDependencies will be installed, and the prepare script will be run, before the package is packaged and installed.
It's not clear from these two passages whether or not npm ci runs the hooks that npm install does (namely prepare in my case). It's also not clear from the docs on prepare whether or not it runs under npm ci
Potential Solution
Document hooks with respect to ci, and document prepare as working under npm ci or not.
Docs URL
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This is a CLI Docs Enhancement, not another kind of Docs Enhancement.
Description of Problem
The npm docs for ci state,
The enumerated list of differences below do not mention the hooks run.
The documentation for prepare state,
npm install
without any argumentsIt's not clear from these two passages whether or not
npm ci
runs the hooks thatnpm install
does (namelyprepare
in my case). It's also not clear from the docs onprepare
whether or not it runs undernpm ci
Potential Solution
Document hooks with respect to
ci
, and document prepare as working undernpm ci
or not.Docs URL
No response
The text was updated successfully, but these errors were encountered: