Skip to content

Self-improving AI Employees for everyone

Fix npx install - move all deps to dependencies, remove dev commands

trohitg956d1bf636ae
diff --git a/client/package.json b/client/package.json
index 1c324634..a3b6d0be 100644
--- a/client/package.json
+++ b/client/package.json
@@ -5,44 +5,41 @@
"type": "module",
"scripts": {
"start": "vite --host 0.0.0.0 --port ${VITE_CLIENT_PORT:-3000}",
- "dev": "vite",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"@ant-design/icons": "^6.0.2",
+ "@eslint/js": "^9.33.0",
"@lobehub/icons": "^2.45.0",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-dialog": "^1.1.15",
- "@types/styled-components": "^5.1.34",
- "antd": "^5.27.4",
- "prismjs": "^1.30.0",
- "react": "^19.1.1",
- "react-dom": "^19.1.1",
- "react-js-cron": "^5.2.0",
- "react-markdown": "^10.1.0",
- "react-simple-code-editor": "^0.14.1",
- "reactflow": "^11.11.4",
- "styled-components": "^6.1.19",
- "zustand": "^5.0.8"
- },
- "devDependencies": {
- "@eslint/js": "^9.33.0",
"@types/google.maps": "^3.58.1",
"@types/node": "^24.3.1",
"@types/prismjs": "^1.26.5",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
+ "@types/styled-components": "^5.1.34",
"@vitejs/plugin-react": "^5.0.0",
+ "antd": "^5.27.4",
"autoprefixer": "^10.4.21",
"eslint": "^9.33.0",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"postcss": "^8.5.6",
+ "prismjs": "^1.30.0",
+ "react": "^19.1.1",
+ "react-dom": "^19.1.1",
+ "react-js-cron": "^5.2.0",
+ "react-markdown": "^10.1.0",
+ "react-simple-code-editor": "^0.14.1",
+ "reactflow": "^11.11.4",
+ "styled-components": "^6.1.19",
"tailwindcss": "^4.1.13",
"typescript": "^5.9.2",
- "vite": "^7.1.2"
+ "vite": "^7.1.2",
+ "zustand": "^5.0.8"
}
}
diff --git a/package.json b/package.json
index b25c6b2b..493682a8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "machinaos",
- "version": "0.0.2",
+ "version": "0.0.3",
"description": "Open source workflow automation platform with AI agents, React Flow, and n8n-inspired architecture",
"type": "module",
"keywords": [
@@ -36,11 +36,11 @@
"client"
],
"scripts": {
- "dev": "concurrently --raw --kill-others-on-fail \"npm:client:dev\" \"npm:python:dev\" \"npm:whatsapp:api\"",
- "dev:temporal": "concurrently --raw --kill-others-on-fail \"npm:client:dev\" \"npm:python:dev\" \"npm:whatsapp:api\" \"npm:temporal:worker\"",
+ "start": "node scripts/start.js",
+ "start:temporal": "cross-env TEMPORAL_ENABLED=true node scripts/start.js",
+ "client:start": "cd client && npm run start",
+ "python:start": "cd server && uv run uvicorn main:app --host 127.0.0.1 --port 3010 --reload --reload-dir . --reload-exclude \"*.pyc\" --reload-exclude \"__pycache__\" --log-level warning",
"temporal:worker": "cd server && uv run python -m services.temporal.worker",
- "client:dev": "cd client && npm run dev",
- "python:dev": "cd server && uv run uvicorn main:app --host 127.0.0.1 --port 3010 --reload --reload-dir . --reload-exclude \"*.pyc\" --reload-exclude \"__pycache__\" --log-level warning",
"whatsapp:start": "cd server/whatsapp-rpc && npm start",
"whatsapp:stop": "cd server/whatsapp-rpc && npm stop",
"whatsapp:status": "cd server/whatsapp-rpc && npm run status",
@@ -48,7 +48,6 @@
"whatsapp:build": "cd server/whatsapp-rpc && npm run build",
"build": "node scripts/build.js",
"clean": "node scripts/clean.js",
- "start": "node scripts/start.js",
"stop": "node scripts/stop.js",
"docker:up": "node scripts/docker.js up",
"docker:down": "node scripts/docker.js down",
diff --git a/scripts/start.js b/scripts/start.js
index 15ee9632..09e1e562 100644
--- a/scripts/start.js
+++ b/scripts/start.js
@@ -182,14 +182,29 @@ if (!allFree) {
log('Warning: Some ports could not be freed. Services may fail to start.');
}
-// Start dev server
+// Start services
log('Starting services...');
log('Press Ctrl+C to stop (use npm run stop to kill all services)\n');
-const devCommand = config.temporalEnabled ? 'dev:temporal' : 'dev';
+// Build concurrently command based on config
+const services = [
+ 'npm:client:start',
+ 'npm:python:start',
+ 'npm:whatsapp:api'
+];
+
+if (config.temporalEnabled) {
+ services.push('npm:temporal:worker');
+}
+
+const concurrentlyArgs = [
+ '--raw',
+ '--kill-others-on-fail',
+ ...services.map(s => `"${s}"`)
+];
// Use spawn with shell:true for cross-platform compatibility
-const proc = spawn('npm', ['run', devCommand], {
+const proc = spawn('npx', ['concurrently', ...concurrentlyArgs], {
cwd: ROOT,
stdio: 'inherit',
shell: true,
@@ -205,6 +220,6 @@ process.on('SIGTERM', () => {
});
proc.on('close', (code) => {
- console.log('\nDev server stopped.');
+ console.log('\nServices stopped.');
process.exit(code || 0);
});