generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build sequentially for alpha tagging
- Loading branch information
1 parent
765f465
commit 202b2af
Showing
2 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# Array of folders to loop through | ||
folders=( | ||
"packages/crypto" | ||
"packages/crypto-aws-kms" | ||
"packages/common" | ||
"packages/dids" | ||
"packages/credentials" | ||
"packages/agent" | ||
"packages/identity-agent" | ||
"packages/proxy-agent" | ||
"packages/user-agent" | ||
"packages/api" | ||
) | ||
|
||
# Get the directory of the script | ||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
# Navigate to the root directory (assumes the script is in /scripts/) | ||
root_dir="$(dirname "$script_dir")" | ||
cd "$root_dir" || { echo "Failed to navigate to root directory"; exit 1; } | ||
|
||
# Loop through each folder | ||
for folder in "${folders[@]}"; do | ||
echo "Building in $folder" | ||
cd "$folder" || { echo "Failed to navigate to $folder"; exit 1; } | ||
pnpm build || { echo "Build failed in $folder"; exit 1; } | ||
cd "$root_dir" # Return to the root directory | ||
done | ||
|
||
echo "All builds completed successfully." |