Describe the bug
Looking at the source code, it seems that the intent is for the .wxt folder to be deleted even when located in the root directory of a project. However, wxt clean does not currently delete the folder. I tested placing a .wxt folder within another folder (e.g. <root>/dummy/.wxt and the deletion does go through.
Reproduction
Run wxt clean in a project containing a .wxt folder in the project's root directory.
Steps to reproduce
No response
System Info
npx envinfo --system --browsers --binaries --npmPackages wxt,vite
System:
OS: Windows 11 10.0.26200
CPU: (4) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
Memory: 1.87 GB / 11.70 GB
Binaries:
Node: 22.14.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 128.0.6613.138
Edge: Chromium (146.0.3856.84)
Internet Explorer: 11.0.26100.8115
npmPackages:
vite: ^8.0.3 => 8.0.16
wxt: ^0.20.20 => 0.20.26
Used Package Manager
npm
Validations
Describe the bug
Looking at the source code, it seems that the intent is for the
.wxtfolder to be deleted even when located in the root directory of a project. However,wxt cleandoes not currently delete the folder. I tested placing a.wxtfolder within another folder (e.g.<root>/dummy/.wxtand the deletion does go through.Reproduction
Run
wxt cleanin a project containing a.wxtfolder in the project's root directory.Steps to reproduce
No response
System Info
npx envinfo --system --browsers --binaries --npmPackages wxt,vite System: OS: Windows 11 10.0.26200 CPU: (4) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz Memory: 1.87 GB / 11.70 GB Binaries: Node: 22.14.0 - C:\Program Files\nodejs\node.EXE npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 128.0.6613.138 Edge: Chromium (146.0.3856.84) Internet Explorer: 11.0.26100.8115 npmPackages: vite: ^8.0.3 => 8.0.16 wxt: ^0.20.20 => 0.20.26Used Package Manager
npm
Validations