Skip to content

Commit

Permalink
chore: update config snapshot when manually making docs
Browse files Browse the repository at this point in the history
The better to avoid having to do patches like 771a1cb.

PR-URL: #3664
Credit: @isaacs
Close: #3664
Reviewed-by: @wraithgar
  • Loading branch information
isaacs authored and wraithgar committed Aug 24, 2021
1 parent e387853 commit 52401fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -209,7 +209,7 @@
"test": "tap",
"check-coverage": "tap",
"snap": "tap",
"postsnap": "make -s docs/content/*/*.md",
"postsnap": "make -s mandocs",
"test:nocleanup": "NO_TEST_CLEANUP=1 npm run test --",
"sudotest": "sudo npm run test --",
"sudotest:nocleanup": "sudo NO_TEST_CLEANUP=1 npm run test --",
Expand Down

0 comments on commit 52401fd

Please sign in to comment.