Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/playground/cli/src/run-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
runBlueprintV1Steps,
} from '@wp-playground/blueprints';
import { RecommendedPHPVersion } from '@wp-playground/common';
import fs, { existsSync, mkdirSync, readdirSync, rmdirSync } from 'fs';
import fs, { existsSync, mkdirSync, readdirSync, rmSync } from 'fs';
import type { Server } from 'http';
import { MessageChannel as NodeMessageChannel, Worker } from 'worker_threads';
// @ts-ignore
Expand Down Expand Up @@ -1878,7 +1878,7 @@ function expandStartCommandArgs(

if (existsSync(hostPath) && (args['reset'] as boolean)) {
cliOutput.print('Resetting site...');
rmdirSync(hostPath, { recursive: true });
rmSync(hostPath, { recursive: true, force: true });
}
mkdirSync(hostPath, { recursive: true });
Comment on lines 1879 to 1883
newArgs['mount-before-install'] = [
Expand Down
Loading