Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ 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
# Move to project root
cd ..
echo Working dir $(pwd)

# Build bb.js
bootstrap_barretenberg

# 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...
Expand Down