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
@pkg-pr-new

pkg-pr-new Bot commented Jun 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2415

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2415

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2415

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2415

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2415

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2415

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2415

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2415

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2415

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2415

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2415

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2415

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2415

wxt

npm i https://pkg.pr.new/wxt@2415

commit: 8a0400a

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.41%. Comparing base (9a63844) to head (8a0400a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2415      +/-   ##
==========================================
- Coverage   78.61%   78.41%   -0.21%     
==========================================
  Files         133      133              
  Lines        3882     3882              
  Branches      875      875              
==========================================
- Hits         3052     3044       -8     
- Misses        743      750       +7     
- Partials       87       88       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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