wxt 0.19.20 → 0.19.21

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.
@@ -7,7 +7,7 @@ export declare function writeManifest(manifest: Manifest.WebExtensionManifest, o
7
7
  /**
8
8
  * Generates the manifest based on the config and entrypoints.
9
9
  */
10
- export declare function generateManifest(entrypoints: Entrypoint[], buildOutput: Omit<BuildOutput, 'manifest'>): Promise<{
10
+ export declare function generateManifest(allEntrypoints: Entrypoint[], buildOutput: Omit<BuildOutput, 'manifest'>): Promise<{
11
11
  manifest: Manifest.WebExtensionManifest;
12
12
  warnings: any[][];
13
13
  }>;
@@ -20,7 +20,8 @@ export async function writeManifest(manifest, output) {
20
20
  fileName: "manifest.json"
21
21
  });
22
22
  }
23
- export async function generateManifest(entrypoints, buildOutput) {
23
+ export async function generateManifest(allEntrypoints, buildOutput) {
24
+ const entrypoints = allEntrypoints.filter((entry) => !entry.skipped);
24
25
  const warnings = [];
25
26
  const pkg = await getPackageJson();
26
27
  let versionName = wxt.config.manifest.version_name ?? wxt.config.manifest.version ?? pkg?.version;
@@ -1,12 +1,12 @@
1
1
  import type { Manifest } from 'wxt/browser';
2
- import { ResolvedConfig, WxtDevServer, BackgroundEntrypoint, ContentScriptEntrypoint, GenericEntrypoint, OptionsEntrypoint, PopupEntrypoint, OutputChunk, OutputFile, OutputAsset, BuildOutput, BuildStepOutput, UserManifest, Wxt, SidepanelEntrypoint } from '../../../types';
2
+ import { ResolvedConfig, WxtDevServer, BackgroundEntrypoint, ContentScriptEntrypoint, GenericEntrypoint, OptionsEntrypoint, PopupEntrypoint, OutputChunk, OutputFile, OutputAsset, BuildOutput, BuildStepOutput, UserManifest, Wxt, SidepanelEntrypoint, BaseEntrypoint } from '../../../types';
3
3
  type DeepPartial<T> = T extends object ? {
4
4
  [P in keyof T]?: DeepPartial<T[P]>;
5
5
  } : T;
6
6
  export declare function fakeFileName(): string;
7
7
  export declare function fakeFile(root?: string): string;
8
8
  export declare function fakeDir(root?: string): string;
9
- export declare const fakeEntrypoint: () => GenericEntrypoint | BackgroundEntrypoint | ContentScriptEntrypoint | PopupEntrypoint | OptionsEntrypoint;
9
+ export declare const fakeEntrypoint: (options?: DeepPartial<BaseEntrypoint>) => GenericEntrypoint | BackgroundEntrypoint | ContentScriptEntrypoint | PopupEntrypoint | OptionsEntrypoint;
10
10
  export declare const fakeContentScriptEntrypoint: (overrides?: {
11
11
  type?: "content-script" | undefined;
12
12
  options?: {
@@ -17,14 +17,14 @@ export function fakeFile(root = process.cwd()) {
17
17
  export function fakeDir(root = process.cwd()) {
18
18
  return resolve(root, faker.string.alphanumeric());
19
19
  }
20
- export const fakeEntrypoint = () => faker.helpers.arrayElement([
20
+ export const fakeEntrypoint = (options) => faker.helpers.arrayElement([
21
21
  fakePopupEntrypoint,
22
22
  fakeGenericEntrypoint,
23
23
  fakeOptionsEntrypoint,
24
24
  fakeBackgroundEntrypoint,
25
25
  fakeContentScriptEntrypoint,
26
26
  fakeUnlistedScriptEntrypoint
27
- ])();
27
+ ])(options);
28
28
  export const fakeContentScriptEntrypoint = fakeObjectCreator(() => ({
29
29
  type: "content-script",
30
30
  inputPath: fakeFile("src"),
package/dist/version.mjs CHANGED
@@ -1 +1 @@
1
- export const version = "0.19.20";
1
+ export const version = "0.19.21";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.19.20",
4
+ "version": "0.19.21",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "repository": {
7
7
  "type": "git",