Skip to content

Commit df61e3c

Browse files
committed
skip installing dependency if no package.json
1 parent 2734e36 commit df61e3c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/agents/orchestrator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ async def run(self) -> bool:
117117
return True
118118

119119
async def install_dependencies(self):
120-
# Check if node_modules directory exists
120+
# First check if package.json exists
121+
package_json_path = os.path.join(self.state_manager.get_full_project_root(), "package.json")
122+
if not os.path.exists(package_json_path):
123+
# Skip if no package.json found
124+
return
125+
126+
# Then check if node_modules directory exists
121127
node_modules_path = os.path.join(self.state_manager.get_full_project_root(), "node_modules")
122128
if not os.path.exists(node_modules_path):
123129
await self.send_message("Installing project dependencies...")

0 commit comments

Comments
 (0)