Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improved dev command #892

Merged
merged 2 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"start:client": "pnpm --dir client start --isRoot",
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@ai16z/agent\" start --isRoot",
"dev": "bash ./scripts/dev.sh",
"dev:build": "turbo run build --filter=!eliza-docs",
"lint": "bash ./scripts/lint.sh",
"prettier-check": "npx prettier --check .",
"prettier": "npx prettier --write .",
Expand Down
10 changes: 8 additions & 2 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cat << "EOF"
* *
* 4. Update the 'agent/package.json' file: *
* *
* Add your plugin to the "dependencies" section like so: *
* Add your plugin to the "dependencies" section like so: *
* *
* "@ai16z/your-plugin-name": "workspace:*" *
* *
Expand All @@ -61,6 +61,12 @@ cat << "EOF"

EOF

# 2 seconds delay
for i in {1..5}; do
echo -n "."
sleep 0.4
done

# Check if the packages directory exists
if [ ! -d "$PACKAGES_DIR" ]; then
echo "Error: Directory $PACKAGES_DIR does not exist."
Expand Down Expand Up @@ -107,7 +113,7 @@ else
fi

# Run build command first
if ! pnpm dev:build; then
if ! pnpm build; then
echo "Build failed. Exiting."
exit 1
fi
Expand Down
Loading