mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
build: refresh markdown lint dependencies on lockfile changes
Reinstall markdown lint dependencies when the lockfile changes and recheck all Markdown files with the updated rules. Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com> PR-URL: https://github.com/nodejs/node/pull/67185 Refs: https://github.com/nodejs/node/pull/67023 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
b48b454e03
commit
82940d6fa5
1 file changed
+5
-4
@@ -1475,10 +1475,11 @@ bench-addons-clean:
|
||||
$(RM) -r benchmark/napi/*/build
|
||||
$(RM) benchmark/napi/.buildstamp
|
||||
|
||||
ifeq ("$(wildcard tools/.mdlintstamp)","")
|
||||
LINT_MD_NEWER =
|
||||
else
|
||||
# Recheck all Markdown when the lint dependencies change.
|
||||
ifeq ($(shell test tools/.mdlintstamp -nt tools/lint-md/package-lock.json && echo 1),1)
|
||||
LINT_MD_NEWER = -newer tools/.mdlintstamp
|
||||
else
|
||||
LINT_MD_NEWER =
|
||||
endif
|
||||
|
||||
LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(filter-out CLAUDE.md,$(wildcard *.md))
|
||||
@@ -1488,7 +1489,7 @@ LINT_MD_FILES = $(shell $(FIND) $(LINT_MD_TARGETS) -type f \
|
||||
run-lint-md = tools/lint-md/lint-md.mjs $(LINT_MD_FILES)
|
||||
|
||||
# Check for a specific file, as (empty) directories are persisted in git.
|
||||
tools/lint-md/node_modules/remark-parse/package.json:
|
||||
tools/lint-md/node_modules/remark-parse/package.json: tools/lint-md/package-lock.json
|
||||
-cd tools/lint-md && $(call available-node,$(run-npm-ci))
|
||||
|
||||
# Lint all changed markdown files maintained by us
|
||||
|
||||
Reference in new issue
Block a user