Skip to content

Self-improving AI Employees for everyone

Add client deps install to build, fix React 19 peer dep warnings

trohitg2a25b2fcdf46
diff --git a/client/package.json b/client/package.json
index a3b6d0be..e09861a2 100644
--- a/client/package.json
+++ b/client/package.json
@@ -41,5 +41,14 @@
"typescript": "^5.9.2",
"vite": "^7.1.2",
"zustand": "^5.0.8"
+ },
+ "overrides": {
+ "@emoji-mart/react": {
+ "react": "$react"
+ },
+ "react-avatar-editor": {
+ "react": "$react",
+ "react-dom": "$react-dom"
+ }
}
}
diff --git a/package.json b/package.json
index f9af6e76..407640b0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "machinaos",
- "version": "0.0.4",
+ "version": "0.0.5",
"description": "Open source workflow automation platform with AI agents, React Flow, and n8n-inspired architecture",
"type": "module",
"keywords": [
diff --git a/scripts/build.js b/scripts/build.js
index e0a46905..6106f610 100644
--- a/scripts/build.js
+++ b/scripts/build.js
@@ -128,26 +128,30 @@ try {
}
// Step 1: Install root dependencies
- log('1/5', 'Installing root dependencies...');
+ log('1/6', 'Installing root dependencies...');
npmInstall(ROOT);
- // Step 2: Build client
- log('2/5', 'Building client...');
+ // Step 2: Install client dependencies
+ log('2/6', 'Installing client dependencies...');
+ npmInstall(resolve(ROOT, 'client'));
+
+ // Step 3: Build client
+ log('3/6', 'Building client...');
run('npm run build', resolve(ROOT, 'client'));
- // Step 3: Install Python dependencies
- log('3/5', 'Installing Python dependencies...');
+ // Step 4: Install Python dependencies
+ log('4/6', 'Installing Python dependencies...');
const serverDir = resolve(ROOT, 'server');
run('uv venv', serverDir);
run('uv sync', serverDir);
- // Step 4: Install WhatsApp dependencies
- log('4/5', 'Installing WhatsApp dependencies...');
+ // Step 5: Install WhatsApp dependencies
+ log('5/6', 'Installing WhatsApp dependencies...');
const whatsappDir = resolve(ROOT, 'server/whatsapp-rpc');
npmInstall(whatsappDir);
- // Step 5: Build WhatsApp server (Go binary)
- log('5/5', 'Building WhatsApp server...');
+ // Step 6: Build WhatsApp server (Go binary)
+ log('6/6', 'Building WhatsApp server...');
run('npm run build', whatsappDir);
console.log('\nBuild complete.');