diff --git a/build-fakeyou.sh b/build-fakeyou.sh index 3f59ea1687..b38eb27d6d 100755 --- a/build-fakeyou.sh +++ b/build-fakeyou.sh @@ -3,12 +3,6 @@ set -euxo pipefail -# --ignore-engines: https://stackoverflow.com/a/59615348 -yarn build-fakeyou --verbose --ignore-optional --ignore-engines - -mkdir fakeyou -mv packages/fakeyou/build/ fakeyou/build/ - # Add the GIT SHA to the build # COMMIT_REF is defined by Netlify to be the commit SHA # We want a short 8 character reference. @@ -18,6 +12,12 @@ find . -type f -exec sed -i "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + # The above command won't work with Mac's version of find/sed. The following is a Mac-friendly version: # find . -type f -exec sed -i '' -e "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + +# --ignore-engines: https://stackoverflow.com/a/59615348 +yarn build-fakeyou --verbose --ignore-optional --ignore-engines + +mkdir fakeyou +mv packages/fakeyou/build/ fakeyou/build/ + echo "Copying redirects configuration to Netlify build dir..." cp _redirects fakeyou/build/