From 7fc2b6f3cc157c8727da9e480f1f552eae2451e2 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Fri, 9 Sep 2022 01:30:02 +0800 Subject: [PATCH] docs: remove duplicate description for `prepare` script (#5468) * docs: remove duplicate description for `prepare` script * Stylistic change to be consistent --- docs/content/using-npm/scripts.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md index 2b9171e4aefdd..1c921eb393764 100644 --- a/docs/content/using-npm/scripts.md +++ b/docs/content/using-npm/scripts.md @@ -42,12 +42,10 @@ situations. These scripts happen in addition to the `pre`, `post`, * `prepare`, `prepublish`, `prepublishOnly`, `prepack`, `postpack`, `dependencies` **prepare** (since `npm@4.0.0`) -* 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