switch to cwd for yarn
This commit is contained in:
parent
1ec3879ba4
commit
a176a50ff2
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user