Commit bbd566ddaf9 for nodejs
commit bbd566ddaf9444cba45bc42e8ac49fedbcf1f026
Author: Ved Chaudhari <84765263+vedchaudhari@users.noreply.github.com>
Date: Mon Oct 5 18:08:17 2026 +0530
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 <vedc2853@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66475
Refs: https://github.com/nodejs/node/pull/66467
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
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.