mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
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>
This commit is contained in:
1 parent
593c96446c
commit
a341ac460a
1 file changed
+2
-1
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user