diff --git a/package.json b/package.json index 88f44522c4..17e739c129 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "formatUi": "cd frontend && pnpm run format", "lintPython": "cd backend && poetry run mypy chainlit/", "formatPython": "black `git ls-files | grep '.py$'` && isort --profile=black .", - "buildUi": "(cd libs/components && pnpm run build) && (cd frontend && pnpm run build)", + "buildUi": "cd libs/components && pnpm run build && cd ../../frontend && pnpm run build", "build": "pnpm run buildUi && (mkdir -p backend/chainlit/frontend && cp -R frontend/dist backend/chainlit/frontend) && (cd backend && poetry build)" } }