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:
authornlf <quitlahok@gmail.com>2022-04-14 21:12:13 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-04-14 21:14:56 +0300
commit1f9eabac4bb19671a5d508be4b5cc54c9c83ac66 (patch)
tree9d5298c62c18acd7ef8d15d83e333eeda64cdc6b
parentec065b22bd61343a6240c386d66f83a8325774d1 (diff)
chore: make sure to build markdown docs for all commands as part of the docs target
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f52f2795b..72b285359 100644
--- a/Makefile
+++ b/Makefile
@@ -24,9 +24,11 @@ misc_mandocs = $(shell find docs/content/using-npm -name '*.md' \
mandocs = $(cli_mandocs) $(files_mandocs) $(misc_mandocs)
+markdown_docs = $(shell for file in $(find lib/commands -name '*.js'); do echo docs/content/commands/npm-$(basename $file .js).md; done)
+
all: docs
-docs: mandocs htmldocs
+docs: mandocs htmldocs $(markdown_docs)
# don't regenerate the snapshot if we're generating
# snapshots, since presumably we just did that.