@echo on if not exist src\winbox-with-interactjs\node_modules ( echo Failed to find src\winbox-with-interactjs\node_modules >&2 echo Have you run ./NPM-DEV-INSTALL.sh ? >&2 exit /b 1 ) cd src\winbox-with-interactjs ^ && echo Running npm run build in src/winbox-with-interactjs ^ && call npm run build ^ && echo Copying built 'dist' to 'winbox-with-iteractjs-dist' ^ && if exist ..\..\winbox-with-interactjs-dist ( rd /s /q ..\..\winbox-with-interactjs-dist ) ^ && mkdir ..\..\winbox-with-interactjs-dist ^ && xcopy /e /h dist ..\..\winbox-with-interactjs-dist\ ^ && cd ..\..