Skip to content

chore: Cleanup wxt folder structure - #2651

Merged
aklinker1 merged 6 commits into
mainfrom
restructure-wxt-package
Oct 4, 2026
Merged

aklinker1 merged 6 commits into
mainfrom
restructure-wxt-package

Conversation

@aklinker1

@aklinker1 aklinker1 commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Overview

Follow up to #2646. See new folder structure documented here:

📁 e2e/
📁 tests/ - Contains E2E tests using real projects
📄 utils.ts - Utils for running E2E tests
📁 src/
📁 cli/ - Contains CLI entrypoint and commands
📁 internal/ - Contains any code that depends on the `wxt` context variable
📄 wxt.ts - Defines the `wxt` context variable
📁 internal-utils/ - Contains pure, simple helper functions
📁 modules/ - Contains public APIs for `wxt/modules` exports
📁 testing/ - Contains public APIs for `wxt/testing/*` exports
📁 utils/ - Contains public APIs for `wxt/utils/*` exports, there are runtime utils
📁 virtual/ - Contains virtual module templates, utils, and type definitions
📄 vite-builder-env.d.ts - Exported under `wxt/vite-builder-env`
📄 index.ts - Contains public APIs for `wxt` exports
📄 *.ts - Files exported by `index.ts` or are their own standalone exports at `wxt/*`

Basically, I:

  1. Renamed core to internal and moved everything that didn't depend on the wxt object to internal-utils
  2. Moved "high-level" exports out of "core" and into src to better align with their export path in the package.json and because they can't use the wxt object

@netlify

netlify Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 7379ded
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/6ac287bc4f03ec00081a3463
😎 Deploy Preview https://deploy-preview-2651--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.

@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3fca70b1-455a-4fe2-bc15-51a6cb375e8a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Oct 4, 2026
@aklinker1 aklinker1 changed the title Restructure wxt package chore: Cleanup wxt folder structure Oct 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

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

@wxt-dev/auto-icons

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

@wxt-dev/browser

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

@wxt-dev/i18n

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

@wxt-dev/is-background

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

@wxt-dev/module-react

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

@wxt-dev/module-solid

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

@wxt-dev/module-svelte

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

@wxt-dev/module-vue

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

@wxt-dev/runner

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

@wxt-dev/storage

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

@wxt-dev/unocss

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

@wxt-dev/webextension-polyfill

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

wxt

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

commit: 7379ded

@codecov

codecov Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.63%. Comparing base (6ee6031) to head (7379ded).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2651      +/-   ##
==========================================
- Coverage   79.64%   79.63%   -0.01%     
==========================================
  Files         138      138              
  Lines        4113     4111       -2     
  Branches      943      943              
==========================================
- Hits         3276     3274       -2     
+ Misses        740      739       -1     
- Partials       97       98       +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.

Comment thread packages/wxt/src/index.ts

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should maintain the same exports/public APIs as before, but now I'm exporting everything from one place instead of using nested barrel files. Much easier to track what is exported.

Comment thread AGENTS.md

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this so agents know contributing guidelines are in the CONTRIBUTING.md files. I like to keep my AI docs minimal so they use popular standards and can discover and follow project standards themselves.

@aklinker1
aklinker1 marked this pull request as ready for review October 4, 2026 17:09
@aklinker1
aklinker1 merged commit 0d9c34b into main Oct 4, 2026
21 checks passed
@aklinker1
aklinker1 deleted the restructure-wxt-package branch October 4, 2026 17:10
@aklinker1

Copy link
Copy Markdown
Member Author

I apologize ahead of time for anyone who came here to understand changes that made their PR conflict with main. @ me and I'll fix the conflicts for you.

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.

1 participant