Skip to content

Commit

Permalink
chore(weave): Refactor hotfixes2 #2532
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong authored Sep 30, 2024
1 parent 1a3bdcf commit 42e818d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions weave_query/weave_query/frontend/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
set -e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
JS_DIR=$SCRIPT_DIR/../../weave-js
JS_DIR=$SCRIPT_DIR/../../../weave-js
SHA1=$(find $JS_DIR -not -path "*/.vite-cache/*" -not -path "*/node_modules/*" -not -path "*/build/*" -type f -print0 | sort -z | xargs -0 sha1sum | cut -d " " -f1 | sha1sum | cut -d " " -f1)

yarn --cwd=$JS_DIR install --frozen-lockfile
yarn --cwd=$SCRIPT_DIR/../../weave-js build
yarn --cwd=$SCRIPT_DIR/../../../weave-js build
cd $SCRIPT_DIR
rm -rf assets index.html
cp -R ../../weave-js/build/* .
cp -R ../../../weave-js/build/* .
echo $SHA1 > sha1.txt

0 comments on commit 42e818d

Please sign in to comment.