wxt 0.10.3 → 0.10.4

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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.10.3";
2
+ var version = "0.10.4";
3
3
 
4
4
  // src/core/utils/entrypoints.ts
5
5
  import path, { relative, resolve } from "node:path";
@@ -1138,7 +1138,7 @@ async function getInternalConfig(inlineConfig, command) {
1138
1138
  );
1139
1139
  const publicDir = path5.resolve(srcDir, mergedConfig.publicDir ?? "public");
1140
1140
  const typesDir = path5.resolve(wxtDir, "types");
1141
- const outBaseDir = path5.resolve(root, ".output");
1141
+ const outBaseDir = path5.resolve(root, mergedConfig.outDir ?? ".output");
1142
1142
  const outDir = path5.resolve(outBaseDir, `${browser}-mv${manifestVersion}`);
1143
1143
  const runnerConfig = await loadConfig({
1144
1144
  name: "web-ext",
@@ -1244,6 +1244,7 @@ function mergeInlineConfig(inlineConfig, userConfig) {
1244
1244
  publicDir: inlineConfig.publicDir ?? userConfig.publicDir,
1245
1245
  runner,
1246
1246
  srcDir: inlineConfig.srcDir ?? userConfig.srcDir,
1247
+ outDir: inlineConfig.outDir ?? userConfig.outDir,
1247
1248
  vite: viteConfig,
1248
1249
  zip,
1249
1250
  analysis: {
@@ -1257,11 +1258,13 @@ function mergeInlineConfig(inlineConfig, userConfig) {
1257
1258
  experimental: {
1258
1259
  ...userConfig.experimental,
1259
1260
  ...inlineConfig.experimental
1260
- }
1261
+ },
1262
+ transformManifest: void 0
1261
1263
  };
1262
1264
  }
1263
1265
  function resolveInternalZipConfig(root, mergedConfig) {
1264
1266
  return {
1267
+ name: void 0,
1265
1268
  sourcesTemplate: "{{name}}-{{version}}-sources.zip",
1266
1269
  artifactTemplate: "{{name}}-{{version}}-{{browser}}.zip",
1267
1270
  sourcesRoot: root,
package/dist/cli.cjs CHANGED
@@ -2415,7 +2415,7 @@ var init_execa = __esm({
2415
2415
  var import_cac = __toESM(require("cac"), 1);
2416
2416
 
2417
2417
  // package.json
2418
- var version = "0.10.3";
2418
+ var version = "0.10.4";
2419
2419
 
2420
2420
  // src/core/utils/building/build-entrypoints.ts
2421
2421
  var vite = __toESM(require("vite"), 1);
@@ -3816,7 +3816,7 @@ async function getInternalConfig(inlineConfig, command) {
3816
3816
  );
3817
3817
  const publicDir = import_node_path7.default.resolve(srcDir, mergedConfig.publicDir ?? "public");
3818
3818
  const typesDir = import_node_path7.default.resolve(wxtDir, "types");
3819
- const outBaseDir = import_node_path7.default.resolve(root, ".output");
3819
+ const outBaseDir = import_node_path7.default.resolve(root, mergedConfig.outDir ?? ".output");
3820
3820
  const outDir = import_node_path7.default.resolve(outBaseDir, `${browser}-mv${manifestVersion}`);
3821
3821
  const runnerConfig = await (0, import_c12.loadConfig)({
3822
3822
  name: "web-ext",
@@ -3922,6 +3922,7 @@ function mergeInlineConfig(inlineConfig, userConfig) {
3922
3922
  publicDir: inlineConfig.publicDir ?? userConfig.publicDir,
3923
3923
  runner,
3924
3924
  srcDir: inlineConfig.srcDir ?? userConfig.srcDir,
3925
+ outDir: inlineConfig.outDir ?? userConfig.outDir,
3925
3926
  vite: viteConfig,
3926
3927
  zip: zip2,
3927
3928
  analysis: {
@@ -3935,11 +3936,13 @@ function mergeInlineConfig(inlineConfig, userConfig) {
3935
3936
  experimental: {
3936
3937
  ...userConfig.experimental,
3937
3938
  ...inlineConfig.experimental
3938
- }
3939
+ },
3940
+ transformManifest: void 0
3939
3941
  };
3940
3942
  }
3941
3943
  function resolveInternalZipConfig(root, mergedConfig) {
3942
3944
  return {
3945
+ name: void 0,
3943
3946
  sourcesTemplate: "{{name}}-{{version}}-sources.zip",
3944
3947
  artifactTemplate: "{{name}}-{{version}}-{{browser}}.zip",
3945
3948
  sourcesRoot: root,
@@ -109,6 +109,12 @@ interface InlineConfig {
109
109
  * @default "${config.srcDir}/entrypoints"
110
110
  */
111
111
  entrypointsDir?: string;
112
+ /**
113
+ * Output directory that stored build folders and ZIPs.
114
+ *
115
+ * @default ".output"
116
+ */
117
+ outDir?: string;
112
118
  /**
113
119
  * > Only available when using the JS API. Not available in `wxt.config.ts` files
114
120
  *
package/dist/index.cjs CHANGED
@@ -3826,7 +3826,7 @@ async function getInternalConfig(inlineConfig, command) {
3826
3826
  );
3827
3827
  const publicDir = import_node_path7.default.resolve(srcDir, mergedConfig.publicDir ?? "public");
3828
3828
  const typesDir = import_node_path7.default.resolve(wxtDir, "types");
3829
- const outBaseDir = import_node_path7.default.resolve(root, ".output");
3829
+ const outBaseDir = import_node_path7.default.resolve(root, mergedConfig.outDir ?? ".output");
3830
3830
  const outDir = import_node_path7.default.resolve(outBaseDir, `${browser}-mv${manifestVersion}`);
3831
3831
  const runnerConfig = await (0, import_c12.loadConfig)({
3832
3832
  name: "web-ext",
@@ -3932,6 +3932,7 @@ function mergeInlineConfig(inlineConfig, userConfig) {
3932
3932
  publicDir: inlineConfig.publicDir ?? userConfig.publicDir,
3933
3933
  runner,
3934
3934
  srcDir: inlineConfig.srcDir ?? userConfig.srcDir,
3935
+ outDir: inlineConfig.outDir ?? userConfig.outDir,
3935
3936
  vite: viteConfig,
3936
3937
  zip: zip2,
3937
3938
  analysis: {
@@ -3945,11 +3946,13 @@ function mergeInlineConfig(inlineConfig, userConfig) {
3945
3946
  experimental: {
3946
3947
  ...userConfig.experimental,
3947
3948
  ...inlineConfig.experimental
3948
- }
3949
+ },
3950
+ transformManifest: void 0
3949
3951
  };
3950
3952
  }
3951
3953
  function resolveInternalZipConfig(root, mergedConfig) {
3952
3954
  return {
3955
+ name: void 0,
3953
3956
  sourcesTemplate: "{{name}}-{{version}}-sources.zip",
3954
3957
  artifactTemplate: "{{name}}-{{version}}-{{browser}}.zip",
3955
3958
  sourcesRoot: root,
@@ -4233,7 +4236,7 @@ function getChunkSortWeight(filename) {
4233
4236
  var import_picocolors3 = __toESM(require("picocolors"), 1);
4234
4237
 
4235
4238
  // package.json
4236
- var version = "0.10.3";
4239
+ var version = "0.10.4";
4237
4240
 
4238
4241
  // src/core/utils/log/printHeader.ts
4239
4242
  var import_consola2 = require("consola");
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-d75ae6fd.js';
2
- export { k as BackgroundDefinition, f as BackgroundEntrypoint, e as BaseEntrypoint, d as BaseEntrypointOptions, b as BuildStepOutput, q as ConfigEnv, j as ContentScriptDefinition, C as ContentScriptEntrypoint, g as Entrypoint, h as EntrypointGroup, n as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, i as OnContentScriptStopped, O as OptionsEntrypoint, m as PerBrowserOption, P as PopupEntrypoint, T as TargetBrowser, c as TargetManifestVersion, l as UnlistedScriptDefinition, o as UserManifest, p as UserManifestFn, a as WxtInlineViteConfig, r as WxtViteConfig } from './external-d75ae6fd.js';
1
+ import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-32209cff.js';
2
+ export { k as BackgroundDefinition, f as BackgroundEntrypoint, e as BaseEntrypoint, d as BaseEntrypointOptions, b as BuildStepOutput, q as ConfigEnv, j as ContentScriptDefinition, C as ContentScriptEntrypoint, g as Entrypoint, h as EntrypointGroup, n as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, i as OnContentScriptStopped, O as OptionsEntrypoint, m as PerBrowserOption, P as PopupEntrypoint, T as TargetBrowser, c as TargetManifestVersion, l as UnlistedScriptDefinition, o as UserManifest, p as UserManifestFn, a as WxtInlineViteConfig, r as WxtViteConfig } from './external-32209cff.js';
3
3
  import 'vite';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
@@ -61,6 +61,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
61
61
  */
62
62
  declare function zip(config?: InlineConfig): Promise<string[]>;
63
63
 
64
- var version = "0.10.3";
64
+ var version = "0.10.4";
65
65
 
66
66
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-d75ae6fd.js';
2
- export { k as BackgroundDefinition, f as BackgroundEntrypoint, e as BaseEntrypoint, d as BaseEntrypointOptions, b as BuildStepOutput, q as ConfigEnv, j as ContentScriptDefinition, C as ContentScriptEntrypoint, g as Entrypoint, h as EntrypointGroup, n as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, i as OnContentScriptStopped, O as OptionsEntrypoint, m as PerBrowserOption, P as PopupEntrypoint, T as TargetBrowser, c as TargetManifestVersion, l as UnlistedScriptDefinition, o as UserManifest, p as UserManifestFn, a as WxtInlineViteConfig, r as WxtViteConfig } from './external-d75ae6fd.js';
1
+ import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-32209cff.js';
2
+ export { k as BackgroundDefinition, f as BackgroundEntrypoint, e as BaseEntrypoint, d as BaseEntrypointOptions, b as BuildStepOutput, q as ConfigEnv, j as ContentScriptDefinition, C as ContentScriptEntrypoint, g as Entrypoint, h as EntrypointGroup, n as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, i as OnContentScriptStopped, O as OptionsEntrypoint, m as PerBrowserOption, P as PopupEntrypoint, T as TargetBrowser, c as TargetManifestVersion, l as UnlistedScriptDefinition, o as UserManifest, p as UserManifestFn, a as WxtInlineViteConfig, r as WxtViteConfig } from './external-32209cff.js';
3
3
  import 'vite';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
@@ -61,6 +61,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
61
61
  */
62
62
  declare function zip(config?: InlineConfig): Promise<string[]>;
63
63
 
64
- var version = "0.10.3";
64
+ var version = "0.10.4";
65
65
 
66
66
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  rebuild,
16
16
  resolvePerBrowserOption,
17
17
  version
18
- } from "./chunk-BHUP6PAP.js";
18
+ } from "./chunk-RSHXTUF4.js";
19
19
  import "./chunk-YUG22S6W.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/testing.cjs CHANGED
@@ -664,7 +664,7 @@ async function getInternalConfig(inlineConfig, command) {
664
664
  );
665
665
  const publicDir = import_node_path7.default.resolve(srcDir, mergedConfig.publicDir ?? "public");
666
666
  const typesDir = import_node_path7.default.resolve(wxtDir, "types");
667
- const outBaseDir = import_node_path7.default.resolve(root, ".output");
667
+ const outBaseDir = import_node_path7.default.resolve(root, mergedConfig.outDir ?? ".output");
668
668
  const outDir = import_node_path7.default.resolve(outBaseDir, `${browser}-mv${manifestVersion}`);
669
669
  const runnerConfig = await (0, import_c12.loadConfig)({
670
670
  name: "web-ext",
@@ -770,6 +770,7 @@ function mergeInlineConfig(inlineConfig, userConfig) {
770
770
  publicDir: inlineConfig.publicDir ?? userConfig.publicDir,
771
771
  runner,
772
772
  srcDir: inlineConfig.srcDir ?? userConfig.srcDir,
773
+ outDir: inlineConfig.outDir ?? userConfig.outDir,
773
774
  vite: viteConfig,
774
775
  zip,
775
776
  analysis: {
@@ -783,11 +784,13 @@ function mergeInlineConfig(inlineConfig, userConfig) {
783
784
  experimental: {
784
785
  ...userConfig.experimental,
785
786
  ...inlineConfig.experimental
786
- }
787
+ },
788
+ transformManifest: void 0
787
789
  };
788
790
  }
789
791
  function resolveInternalZipConfig(root, mergedConfig) {
790
792
  return {
793
+ name: void 0,
791
794
  sourcesTemplate: "{{name}}-{{version}}-sources.zip",
792
795
  artifactTemplate: "{{name}}-{{version}}-{{browser}}.zip",
793
796
  sourcesRoot: root,
@@ -1,6 +1,6 @@
1
1
  export { FakeBrowser, fakeBrowser } from '@webext-core/fake-browser';
2
2
  import * as vite from 'vite';
3
- import { I as InlineConfig } from './external-d75ae6fd.js';
3
+ import { I as InlineConfig } from './external-32209cff.js';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
6
6
  import 'consola';
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { FakeBrowser, fakeBrowser } from '@webext-core/fake-browser';
2
2
  import * as vite from 'vite';
3
- import { I as InlineConfig } from './external-d75ae6fd.js';
3
+ import { I as InlineConfig } from './external-32209cff.js';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
6
6
  import 'consola';
package/dist/testing.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  unimport,
7
7
  webextensionPolyfillAlias,
8
8
  webextensionPolyfillInlineDeps
9
- } from "./chunk-BHUP6PAP.js";
9
+ } from "./chunk-RSHXTUF4.js";
10
10
  import "./chunk-YUG22S6W.js";
11
11
 
12
12
  // src/testing/fake-browser.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.10.3",
4
+ "version": "0.10.4",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",
@@ -114,7 +114,7 @@
114
114
  "prettier": "^3.0.1",
115
115
  "simple-git-hooks": "^2.9.0",
116
116
  "tsup": "^7.2.0",
117
- "tsx": "^3.12.7",
117
+ "tsx": "^4.6.1",
118
118
  "typedoc": "^0.25.4",
119
119
  "typedoc-plugin-markdown": "4.0.0-next.23",
120
120
  "typedoc-vitepress-theme": "1.0.0-next.3",