From bbd566ddaf9444cba45bc42e8ac49fedbcf1f026 Mon Sep 17 00:00:00 2001 From: Ved Chaudhari <84765263+vedchaudhari@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:08:17 +0530 Subject: [PATCH] build: fix vcbuild format-md install and exit Install the Markdown linter before formatting and exit afterwards. Assisted-by: Claude Code Signed-off-by: vedchaudhari PR-URL: https://github.com/nodejs/node/pull/66475 Refs: https://github.com/nodejs/node/pull/66467 Reviewed-By: Luigi Pinca Reviewed-By: Stefan Stojanovic --- vcbuild.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcbuild.bat b/vcbuild.bat index cc677b121a5..d1a6d8fb7f3 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -237,7 +237,7 @@ if "%target_env%"=="vs2026" set "node_gyp_exe=%node_gyp_exe% --msvs_version=2026 if "%*"=="lint" if exist "%node_exe%" goto lint-cpp :: skip building if the only argument received was format-md -if "%*"=="format-md" if exist "%node_exe%" goto format-md +if "%*"=="format-md" if exist "%node_exe%" goto lint-md-build if "%config%"=="Debug" set configure_flags=%configure_flags% --debug if defined nosnapshot set configure_flags=%configure_flags% --without-snapshot @@ -900,6 +900,7 @@ for /D %%D IN (doc\*) do ( ) %node_exe% tools\lint-md\lint-md.mjs --format %lint_md_files% ENDLOCAL +goto exit :no-lint echo Linting is not available through the source tarball.