From a176a50ff212a9abba799980f08d87143d09b798 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Wed, 3 Jun 2020 14:02:39 +0200 Subject: [PATCH] switch to cwd for yarn --- scripts/heroku/postbuild.sh | 12 +++--------- scripts/heroku/prebuild.sh | 8 ++------ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/scripts/heroku/postbuild.sh b/scripts/heroku/postbuild.sh index cd59f620..b6e68c4e 100755 --- a/scripts/heroku/postbuild.sh +++ b/scripts/heroku/postbuild.sh @@ -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" diff --git a/scripts/heroku/prebuild.sh b/scripts/heroku/prebuild.sh index b580a8b1..7f991920 100755 --- a/scripts/heroku/prebuild.sh +++ b/scripts/heroku/prebuild.sh @@ -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"