Skip to content

Commit

Permalink
skip installing dependency if no package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonOstrez committed Jan 23, 2025
1 parent 2734e36 commit df61e3c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/agents/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ async def run(self) -> bool:
return True

async def install_dependencies(self):
# Check if node_modules directory exists
# First check if package.json exists
package_json_path = os.path.join(self.state_manager.get_full_project_root(), "package.json")
if not os.path.exists(package_json_path):
# Skip if no package.json found
return

# Then check if node_modules directory exists
node_modules_path = os.path.join(self.state_manager.get_full_project_root(), "node_modules")
if not os.path.exists(node_modules_path):
await self.send_message("Installing project dependencies...")
Expand Down

0 comments on commit df61e3c

Please sign in to comment.