Skip to content

Commit

Permalink
docs: remove duplicate description for prepare script (npm#5468)
Browse files Browse the repository at this point in the history
* docs: remove duplicate description for `prepare` script

* Stylistic change to be consistent
  • Loading branch information
kidonng authored Sep 8, 2022
1 parent 548e70e commit 7fc2b6f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/content/using-npm/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ situations. These scripts happen in addition to the `pre<event>`, `post<event>`,
* `prepare`, `prepublish`, `prepublishOnly`, `prepack`, `postpack`, `dependencies`

**prepare** (since `[email protected]`)
* Runs any time before the package is packed, i.e. during `npm publish`
* Runs BEFORE the package is packed, i.e. during `npm publish`
and `npm pack`
* 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`
* Runs 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
Expand Down

0 comments on commit 7fc2b6f

Please sign in to comment.