From 26837cf3ce7dbdaa1e7861cc4c2a831fd6046ed1 Mon Sep 17 00:00:00 2001 From: Javi Aguilar <122741+itsjavi@users.noreply.github.com> Date: Tue, 8 Aug 2023 12:19:48 +0200 Subject: [PATCH] chore: add root preview script --- package.json | 1 + packages/examples/react/package.json | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2425e2b..d6dda16 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "prettier-check": "prettier --check .", "prettier-fix": "prettier --write .", "pretty": "pnpm run format", + "preview": "pnpm build && npx -y http-server ./packages/examples/react/dist", "publint": "turbo publint-check", "test": "jest --passWithNoTests", "test:ci": "jest --ci --passWithNoTests --coverage", diff --git a/packages/examples/react/package.json b/packages/examples/react/package.json index 8b48b56..8676f7c 100644 --- a/packages/examples/react/package.json +++ b/packages/examples/react/package.json @@ -5,10 +5,7 @@ "type": "module", "scripts": { "build": "vite build", - "dev": "vite --port=7707", - "preview": "vite build && vite preview", - "preview-static": "vite build && open http://localhost:8080 && npx -y http-server ./dist", - "storylite": "open http://localhost:7707 && vite --port=7707" + "dev": "vite --port=7707" }, "dependencies": { "@storylite/storylite": "workspace:*",