This also works pretty well:
ssh <server>
cd <directory>
git pull
tsc
pm2 restart all ssh <server>
cd <directory>
git pull
tsc
pm2 restart allNo restart or compile because php don't care.