switch to cwd for yarn

This commit is contained in:
Michael Schramm 2020-06-03 14:02:39 +02:00
parent 1ec3879ba4
commit a176a50ff2
2 changed files with 5 additions and 15 deletions

View File

@ -1,17 +1,11 @@
cd ui/
echo "Build and Export UI"
yarn export
cd ../api
yarn --cwd ui export
echo "Copy Exported UI to API"
cp -r ui/out public
yarn install
cp -r ui/out/ api/public/
echo "Build API"
yarn build
yarn --cwd api build
echo "FINISHED postbuild"

View File

@ -1,12 +1,8 @@
cd ui/
echo "Install UI"
yarn install --frozen-lockfile
cd ../api
yarn --cwd ui install --frozen-lockfile
echo "Install API"
yarn install --frozen-lockfile
yarn --cwd api install --frozen-lockfile
echo "FINISHED prebuild"