Skip to content

Commit

Permalink
Merge pull request elizaOS#892 from ai16z/dev_command
Browse files Browse the repository at this point in the history
chore: improved dev command
  • Loading branch information
shakkernerd authored Dec 7, 2024
2 parents 9bc2963 + 1656ce7 commit e713ed1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
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

0 comments on commit e713ed1

Please sign in to comment.