Skip to content

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

Description

@aitani9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-triageSomeone (usually a maintainer) needs to look into this to see if it's a bug

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions