From 34c69c507988f56309fe1e789bcd56ca6552eed2 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 20 Sep 2023 22:08:36 +0800 Subject: [PATCH] start:react builds dependencies before starting dashboard, start just runs the concurrently command (#779) Signed-off-by: Aaron Chong --- packages/dashboard/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json index 20f0a0f3b..7a7ece5bb 100644 --- a/packages/dashboard/package.json +++ b/packages/dashboard/package.json @@ -4,11 +4,11 @@ "private": true, "scripts": { "analyze": "source-map-explorer 'build/static/js/*.js'", - "start": "pnpm run --filter {.}^... build && concurrently npm:start:rmf-server npm:start:react", + "start": "concurrently npm:start:rmf-server npm:start:react", "start:sim": "concurrently npm:start:rmf-server npm:start:rmf npm:start:react", "start:clinic": "RMF_DASHBOARD_DEMO_MAP=clinic.launch.xml pnpm run start:sim", "start:airport": "RMF_DASHBOARD_DEMO_MAP=airport_terminal.launch.xml pnpm run start:sim", - "start:react": "react-scripts start", + "start:react": "pnpm run --filter {.}^... build && react-scripts start", "start:rmf": "node scripts/start-rmf.js", "start:rmf-server": "RMF_SERVER_USE_SIM_TIME=true npm --prefix ../api-server start", "start:rmf-server:psql": "RMF_SERVER_USE_SIM_TIME=true npm run --prefix ../api-server start:psql",