From bf7a6fd54bb540e8fec6f6150dab1e4724278550 Mon Sep 17 00:00:00 2001 From: critesjosh Date: Tue, 14 Nov 2023 00:11:49 -0500 Subject: [PATCH 1/3] build bb.js in docs build script --- docs/scripts/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/scripts/build.sh b/docs/scripts/build.sh index e06ae5f2aa99..e322a174628f 100755 --- a/docs/scripts/build.sh +++ b/docs/scripts/build.sh @@ -17,6 +17,14 @@ if [ -n "$NETLIFY" ]; then cd .. echo Working dir $(pwd) + # Build bb.js + cd barretenberg/ts + yarn build + cd .. + ./bootstrap.sh + # Back to root + cd .. + # Make sure the latest tag is available for loading code snippets from it LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)" echo Fetching latest released tag $LAST_TAG... From e651529137035a0d15f0cbc6cc9a775f1c195e15 Mon Sep 17 00:00:00 2001 From: critesjosh Date: Wed, 15 Nov 2023 00:21:45 -0500 Subject: [PATCH 2/3] update build/bootstrap --- barretenberg/bootstrap.sh | 1 + docs/scripts/build.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/barretenberg/bootstrap.sh b/barretenberg/bootstrap.sh index 1f43a5bfcd2f..8fe08f412195 100755 --- a/barretenberg/bootstrap.sh +++ b/barretenberg/bootstrap.sh @@ -1,5 +1,6 @@ #!/bin/bash (cd cpp && ./bootstrap.sh) cd ts +yarn install yarn build npm link diff --git a/docs/scripts/build.sh b/docs/scripts/build.sh index e322a174628f..10e61a54422a 100755 --- a/docs/scripts/build.sh +++ b/docs/scripts/build.sh @@ -10,6 +10,11 @@ build_package() { (cd "yarn-project/$package_name" && $build_command) } +bootstrap_barretenberg() { + echo "Bootstrapping barretenberg and building bb.js..." + (cd barretenberg && ./bootstrap.sh) +} + # Build script. If run on Netlify, first it needs to compile all yarn-projects # that are involved in typedoc in order to generate their type information. if [ -n "$NETLIFY" ]; then @@ -18,11 +23,8 @@ if [ -n "$NETLIFY" ]; then echo Working dir $(pwd) # Build bb.js - cd barretenberg/ts - yarn build - cd .. - ./bootstrap.sh - # Back to root + cd barretenberg + bootstrap_barretenberg cd .. # Make sure the latest tag is available for loading code snippets from it From 844ec6c1a2cb727f0ca6503aa35813a2fda90af6 Mon Sep 17 00:00:00 2001 From: critesjosh Date: Wed, 15 Nov 2023 00:35:56 -0500 Subject: [PATCH 3/3] update --- docs/scripts/build.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/scripts/build.sh b/docs/scripts/build.sh index 10e61a54422a..cd3bb48f35b9 100755 --- a/docs/scripts/build.sh +++ b/docs/scripts/build.sh @@ -23,9 +23,7 @@ if [ -n "$NETLIFY" ]; then echo Working dir $(pwd) # Build bb.js - cd barretenberg bootstrap_barretenberg - cd .. # Make sure the latest tag is available for loading code snippets from it LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"