@ECHO off ECHO Update all dependencies... cd ..\.. where /q pnpm IF ERRORLEVEL 1 ( FOR /D %%a IN (%CD%\*) do echo -------------- && echo %%~fa && cd %%~fa && npm i ) ELSE ( FOR /D %%a IN (%CD%\*) do echo -------------- && echo %%~fa && cd %%~fa && pnpm i ) cd ..\.. @ECHO on