From 89769a2685148e35bb98ce0df0516e9b0618743f Mon Sep 17 00:00:00 2001 From: Drew Powers Date: Tue, 16 Jan 2024 10:39:54 -0700 Subject: [PATCH] Prevent Windows from building docs --- docs/package.json | 2 +- package.json | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/package.json b/docs/package.json index e3290f17..2133b63f 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vitepress dev", - "build": "del .vitepress/dist && vitepress build && cp _redirects .vitepress/dist", + "build": "del \"**/dist\" && vitepress build && cp _redirects .vitepress/dist", "preview": "vitepress preview" }, "dependencies": { diff --git a/package.json b/package.json index 1562e095..46ba7083 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,13 @@ }, "homepage": "https://cobalt-ui.pages.dev", "scripts": { - "build": "pnpm run -r --if-present \"build\"", - "build:examples": "pnpm run --parallel --if-present build:tokens", + "build": "pnpm run -r --if-present --filter \"@cobalt-ui/*\" \"build\"", + "build:docs": "pnpm run -r --if-present \"build\"", + "build:examples": "pnpm run -r --parallel --if-present build:tokens", "changeset": "changeset", - "dev": "pnpm run --parallel --if-present --filter \"@cobalt-ui/*\" dev", + "dev": "pnpm run -r --parallel --if-present --filter \"@cobalt-ui/*\" dev", "lint": "eslint \"packages/**/*.{ts,js,cjs,mjs}\"", - "test": "pnpm run --parallel --if-present test", + "test": "pnpm run -r --if-present --aggregate-output test", "prepublishOnly": "pnpm run build", "version": "pnpm run build && changeset version && pnpm i --no-frozen-lockfile" },