wxt 0.8.6 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,18 +4,14 @@
4
4
  </h1>
5
5
 
6
6
  <p align="center">
7
- <a href="https://www.npmjs.com/package/wxt" target="_blank">
8
- <img alt="npm" src="https://img.shields.io/npm/v/wxt?labelColor=black&color=%234fa048">
9
- </a>
7
+ <a href="https://www.npmjs.com/package/wxt" target="_blank"><img alt="npm" src="https://img.shields.io/npm/v/wxt?labelColor=black&color=%234fa048"></a>
10
8
  <span> </span>
11
- <img alt="npm" src="https://img.shields.io/npm/dm/wxt?labelColor=black&color=%234fa048">
9
+ <a href="https://www.npmjs.com/package/wxt" target="_blank"><img alt="npm" src="https://img.shields.io/npm/dm/wxt?labelColor=black&color=%234fa048"></a>
12
10
  <span> </span>
13
- <img alt="NPM" src="https://img.shields.io/npm/l/wxt?labelColor=black&color=%234fa048">
11
+ <a href="https://github.com/wxt-dev/wxt/blob/main/LICENSE" target="_blank"><img alt="NPM" src="https://img.shields.io/npm/l/wxt?labelColor=black&color=%234fa048"></a>
14
12
  <!-- Hide code coverage while it's broken -->
15
13
  <!-- <span> </span>
16
- <a href="https://codecov.io/github/wxt-dev/wxt" target="_blank">
17
- <img alt="Codecov" src="https://img.shields.io/codecov/c/github/wxt-dev/wxt?labelColor=black&color=%234fa048">
18
- </a> -->
14
+ <a href="https://codecov.io/github/wxt-dev/wxt" target="_blank"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/wxt-dev/wxt?labelColor=black&color=%234fa048"></a> -->
19
15
  </p>
20
16
 
21
17
  <p align="center">
@@ -38,6 +34,10 @@
38
34
 
39
35
  ![Example CLI Output](./docs/assets/cli-output.png)
40
36
 
37
+ ## Demo
38
+
39
+ https://github.com/wxt-dev/wxt/assets/10101283/07359e53-f491-43b6-8e8f-fae94aec8063
40
+
41
41
  ## Quick Start
42
42
 
43
43
  Bootstrap a new project:
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.8.6";
2
+ var version = "0.9.0";
3
3
 
4
4
  // src/core/utils/entrypoints.ts
5
5
  import path, { relative, resolve } from "node:path";
@@ -920,7 +920,7 @@ async function writePathsDeclarationFile(entrypoints, config) {
920
920
  import "wxt/browser";
921
921
 
922
922
  declare module "wxt/browser" {
923
- type PublicPath =
923
+ export type PublicPath =
924
924
  {{ union }}
925
925
  export interface WxtRuntime extends Runtime.Static {
926
926
  getURL(path: PublicPath): string;
@@ -1032,7 +1032,6 @@ async function writeTsConfigFile(mainReference, config) {
1032
1032
  "forceConsistentCasingInFileNames": true,
1033
1033
  "resolveJsonModule": true,
1034
1034
  "strict": true,
1035
- "lib": ["DOM", "WebWorker"],
1036
1035
  "skipLibCheck": true,
1037
1036
  "paths": {
1038
1037
  "@": ["${srcPath}"],
@@ -2074,7 +2073,7 @@ async function internalBuild(config) {
2074
2073
  return output;
2075
2074
  }
2076
2075
  async function combineAnalysisStats(config) {
2077
- const { execaCommand } = await import("./execa-WKZHVHC5.js");
2076
+ const { execaCommand } = await import("./execa-Z7B33P3C.js");
2078
2077
  const unixFiles = await glob2(`stats-*.json`, {
2079
2078
  cwd: config.outDir,
2080
2079
  absolute: true