06aad80165
Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
16 lines
300 B
Bash
Executable file
16 lines
300 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
NOCLIENT=1 yarn install --pure-lockfile
|
|
|
|
rm -rf ./dist/server/tools/
|
|
|
|
(
|
|
cd ./server/tools
|
|
yarn install --pure-lockfile
|
|
)
|
|
|
|
npm run tsc -- --build --verbose ./server/tools/tsconfig.json
|
|
cp -r "./server/tools/node_modules" "./dist/server/tools"
|
|
cp "./tsconfig.json" "./dist"
|