Skip to content

fix: clean removes .wxt directory at project root#2415

Open
LUIDevo wants to merge 1 commit into
wxt-dev:mainfrom
LUIDevo:fix/clean-root-wxt-dir
Open

fix: clean removes .wxt directory at project root#2415
LUIDevo wants to merge 1 commit into
wxt-dev:mainfrom
LUIDevo:fix/clean-root-wxt-dir

Conversation

@LUIDevo

@LUIDevo LUIDevo commented Jun 14, 2026

Copy link
Copy Markdown

Overview

wxt clean never deleted a .wxt directory located at the project root. The **/.wxt line requires at least one parent path, so only nested .wxt directories matched. Replace it with {,**/}.wxt, which matches both root and nested .wxt.

(The same result is achievable by adding '.wxt' alongside '**/.wxt', but that takes an extra line.)

Manual Testing

Create a directory '.wxt' in the project root. By running 'wxt clean', the .wxt directory gets deleted, along with any nested .wxt directory. Before this change, the root '.wxt' directory would not be deleted, and now it does along with the other files.

Related Issue

This PR closes #2413

`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 wxt-dev#2413
@netlify

netlify Bot commented Jun 14, 2026

Copy link
Copy Markdown

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 8a0400a
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6a2e9441f97d5300081fbe3b
😎 Deploy Preview https://deploy-preview-2415--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wxt clean does not delete .wxt folder when located in the root directory

1 participant