GeezerVison is showing github.com — build: refresh markdown lint dependencies on lockfile changes · nodejs/node@829afea
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Makefile +5-4Lines changed: 5 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1475,10 +1475,11 @@ bench-addons-clean: |
1475 | 1475 | $(RM) -r benchmark/napi/*/build |
1476 | 1476 | $(RM) benchmark/napi/.buildstamp |
1477 | 1477 |
|
1478 | | -ifeq ("$(wildcard tools/.mdlintstamp)","") |
1479 | | -LINT_MD_NEWER = |
1480 | | -else |
| 1478 | +# Recheck all Markdown when the lint dependencies change. |
| 1479 | +ifeq ($(shell test tools/.mdlintstamp -nt tools/lint-md/package-lock.json && echo 1),1) |
1481 | 1480 | LINT_MD_NEWER = -newer tools/.mdlintstamp |
| 1481 | +else |
| 1482 | +LINT_MD_NEWER = |
1482 | 1483 | endif |
1483 | 1484 |
|
1484 | 1485 | 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 \ |
1488 | 1489 | run-lint-md = tools/lint-md/lint-md.mjs $(LINT_MD_FILES) |
1489 | 1490 |
|
1490 | 1491 | # Check for a specific file, as (empty) directories are persisted in git. |
1491 | | -tools/lint-md/node_modules/remark-parse/package.json: |
| 1492 | +tools/lint-md/node_modules/remark-parse/package.json: tools/lint-md/package-lock.json |
1492 | 1493 | -cd tools/lint-md && $(call available-node,$(run-npm-ci)) |
1493 | 1494 |
|
1494 | 1495 | # Lint all changed markdown files maintained by us |
|