aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/dev/cli.sh
blob: 39ecaad94486cbef4be9cfff18c88ffe786e27ae (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
           












                                                         
                 
                                                                                                                     
#!/bin/bash

set -eu

rm -rf ./dist/server/tools/

(
    cd ./server/tools
    yarn install --pure-lockfile
)

mkdir -p "./dist/server/tools"
cp -r "./server/tools/node_modules" "./dist/server/tools"

cd ./server/tools
../../node_modules/.bin/tsc-watch --build --verbose --onSuccess 'sh -c "cd ../../ && npm run resolve-tspaths:server"'