Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-08-19 19:02:54 +0300
committerGar <gar+gh@danger.computer>2021-08-24 19:04:09 +0300
commit52401fd45ae98f44a00350df66fdba313e3deab3 (patch)
tree949289ad694dd7da825be9d068188d79e4b6af36 /Makefile
parente3878536f3612d9ddc3002c126cfa9a91021c7db (diff)
chore: update config snapshot when manually making docs
The better to avoid having to do patches like 771a1cbf7. PR-URL: https://github.com/npm/cli/pull/3664 Credit: @isaacs Close: #3664 Reviewed-by: @wraithgar
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8762574da..6fb39c704 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,12 @@ all: docs
docs: mandocs htmldocs
+# don't regenerate the snapshot if we're generating
+# snapshots, since presumably we just did that.
mandocs: dev-deps $(mandocs)
+ @ ! [ $${npm_lifecycle_event} = "snap" ] && \
+ ! [ $${npm_lifecycle_event} = "postsnap" ] && \
+ TAP_SNAPSHOT=1 node test/lib/utils/config/definitions.js || true
$(version_mandocs): package.json