| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -184,7 +184,7 @@ if defined package set stage_package=1 | |||
| 184 | 184 | :: assign path to node_exe | |
| 185 | 185 | set "node_exe=%config%\node.exe" | |
| 186 | 186 | set "node_gyp_exe="%node_exe%" deps\npm\node_modules\node-gyp\bin\node-gyp" | |
| 187 | - set "npm_exe="%~dp0%node_exe%" %~dp0deps\npm\bin\npm-cli.js" | ||
| 187 | + set "npm_exe="%node_exe%" deps\npm\bin\npm-cli.js" | ||
| 188 | 188 | if "%target_env%"=="vs2022" set "node_gyp_exe=%node_gyp_exe% --msvs_version=2022" | |
| 189 | 189 | ||
| 190 | 190 | :: skip building if the only argument received was lint | |
@@ -608,9 +608,7 @@ if not defined doc if not defined build_addons ( | |||
| 608 | 608 | ) | |
| 609 | 609 | if exist "tools\doc\node_modules\unified\package.json" goto skip-install-doctools | |
| 610 | 610 | SETLOCAL | |
| 611 | - cd tools\doc | ||
| 612 | - %npm_exe% ci | ||
| 613 | - cd ..\.. | ||
| 611 | + %npm_exe% --prefix tools\doc ci | ||
| 614 | 612 | if errorlevel 1 goto exit | |
| 615 | 613 | ENDLOCAL | |
| 616 | 614 | :skip-install-doctools | |
@@ -753,9 +751,7 @@ goto lint-js-build | |||
| 753 | 751 | ||
| 754 | 752 | :lint-js-build | |
| 755 | 753 | if not defined lint_js_build if not defined lint_js if not defined lint_js_fix goto lint-md-build | |
| 756 | - cd tools\eslint | ||
| 757 | - %npm_exe% ci | ||
| 758 | - cd ..\.. | ||
| 754 | + %npm_exe% --prefix tools\eslint ci | ||
| 759 | 755 | ||
| 760 | 756 | :lint-js | |
| 761 | 757 | if not defined lint_js goto lint-js-fix | |
@@ -773,9 +769,7 @@ goto lint-md-build | |||
| 773 | 769 | ||
| 774 | 770 | :lint-md-build | |
| 775 | 771 | if not defined lint_md if not defined format_md goto lint-md | |
| 776 | - cd tools\lint-md | ||
| 777 | - %npm_exe% ci | ||
| 778 | - cd ..\.. | ||
| 772 | + %npm_exe% --prefix tools\lint-md ci | ||
| 779 | 773 | ||
| 780 | 774 | :lint-md | |
| 781 | 775 | if not defined lint_md goto format-md | |
| Back | FazBrowse Home | New Git URL |
0 commit comments