From 8a0400a895112af6934cb012ddd97b2037dff78f Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 13 Jun 2026 21:38:55 -0400 Subject: [PATCH] fix(wxt): clean removes .wxt directory at project root `wxt clean` never deleted a `.wxt` directory located at the project root. The `**/.wxt` glob requires at least one parent path segment in tinyglobby, so only nested `.wxt` directories matched. Replace it with `{,**/}.wxt`, which matches both root-level and nested `.wxt`. Fixes #2413 --- packages/wxt/src/core/clean.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wxt/src/core/clean.ts b/packages/wxt/src/core/clean.ts index a9c27a7d2..17a283de1 100644 --- a/packages/wxt/src/core/clean.ts +++ b/packages/wxt/src/core/clean.ts @@ -39,7 +39,7 @@ export async function clean(config?: string | InlineConfig) { const tempDirs = [ 'node_modules/.vite', 'node_modules/.cache', - '**/.wxt', + '{,**/}.wxt', `${path.relative(root, wxt.config.outBaseDir)}/*`, ]; wxt.logger.debug(