From b5f0deeb29b3d72b07e4b5f2bc7cb0cf8f1f5b02 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sun, 4 Sep 2022 21:44:47 +0800 Subject: [PATCH 1/2] docs: remove duplicate description for `prepare` script --- docs/content/using-npm/scripts.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md index 2b9171e4aefdd..cfb156551ce4f 100644 --- a/docs/content/using-npm/scripts.md +++ b/docs/content/using-npm/scripts.md @@ -44,8 +44,6 @@ situations. These scripts happen in addition to the `pre`, `post`, **prepare** (since `npm@4.0.0`) * Runs any time 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` From 3fcbc6a29d5c10af21227bc99974f0f1526754ee Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sun, 4 Sep 2022 21:47:55 +0800 Subject: [PATCH 2/2] Stylistic change to be consistent --- docs/content/using-npm/scripts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/using-npm/scripts.md b/docs/content/using-npm/scripts.md index cfb156551ce4f..1c921eb393764 100644 --- a/docs/content/using-npm/scripts.md +++ b/docs/content/using-npm/scripts.md @@ -42,10 +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 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