From 4de9d5d0d50416314ff53471b3e02e77ec1e5cf4 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Thu, 21 Nov 2024 09:40:40 -0500 Subject: [PATCH] Fix package.json scripts --- editor/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/package.json b/editor/package.json index fb4efa1..39d7430 100644 --- a/editor/package.json +++ b/editor/package.json @@ -3,13 +3,13 @@ "version": "1.0.0", "type": "module", "scripts": { - "start": "vite", - "dev": "vite", - "build": "vite build", + "start": "npm run setup && vite", + "dev": "npm run setup && vite", + "build": "npm run setup && vite build", "preview": "vite preview", "preview:prod": "vite preview --base=/pipecat-flows/", - "setup": "mkdir -p public/lib/litegraph && cp node_modules/litegraph.js/build/litegraph.js public/lib/litegraph/ && cp node_modules/litegraph.js/css/litegraph.css public/lib/litegraph/", - "watch": "vite build --watch", + "setup": "mkdir -p public/lib/litegraph && cp node_modules/litegraph.js/build/litegraph.js public/lib/litegraph/ && cp node_modules/litegraph.js/css/litegraph.css public/lib/litegraph/ || echo 'Setup failed. Please ensure you have run npm install'", + "watch": "npm run setup && vite build --watch", "lint": "eslint js/", "lint:fix": "eslint js/ --fix", "format": "prettier --write .",