The following commands are not executed after bat executes npm run build, please consult

echo %1

cd /d %1

git checkout master

git pull origin master


npm run build

-sharp 
cd /d %1/dist

git pull origin master

pause
Aug.19,2021

call npm run build


there is a temporary solution:

start npm run build
pause

means to watch the build finish manually before continuing.
I try to use:

start /wait npm run build

but I don't know how to close the open command line window, maybe there is such an option in the npm script. If anyone knows, please let me know

.
Menu