From 241dca2c0235215976ba9f0a94da03bd6cd593ac Mon Sep 17 00:00:00 2001 From: snowyukitty Date: Tue, 18 Aug 2026 09:54:44 +0900 Subject: [PATCH] Fix frontend build cleanup on Windows --- packages/workshop-frontend/vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/workshop-frontend/vite.config.ts b/packages/workshop-frontend/vite.config.ts index 817bb4234..c5b501f61 100644 --- a/packages/workshop-frontend/vite.config.ts +++ b/packages/workshop-frontend/vite.config.ts @@ -14,7 +14,10 @@ const ownDist = { pattern: '!dist/**', base: 'package' } as const const runConfig = { run: { tasks: { - 'clean:dist': { command: 'rm -rf dist', cache: false }, + 'clean:dist': { + command: `node -e "require('node:fs').rmSync('dist', { recursive: true, force: true })"`, + cache: false, + }, /** * `build` is a task rather than a package.json script so `env` can declare the `VITE_*` flags * it reads: a cached `vp` run executes scripts in a clean environment, and the values would be