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