extension 3.0.0-next.57 → 3.0.0-next.59

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/dist/utils.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export declare function resolveModuleEntry(modulePath: string, pkgJson: any): string | undefined;
2
2
  export type Browser = 'chrome' | 'edge' | 'firefox' | 'chromium' | 'chromium-based' | 'gecko-based' | 'firefox-based';
3
3
  export declare function parseOptionalBoolean(value?: string): boolean;
4
- export declare function requireOrDlx(moduleName: string, versionHint?: string): Promise<any>;
5
4
  export declare const vendors: (browser?: Browser | "all") => string[];
6
5
  export declare function validateVendorsOrExit(vendorsList: string[], onInvalid: (invalid: string, supported: string[]) => void): void;
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "extension": "./dist/cli.js"
36
36
  },
37
37
  "name": "extension",
38
- "version": "3.0.0-next.57",
38
+ "version": "3.0.0-next.59",
39
39
  "description": "Create cross-browser extensions with no build configuration.",
40
40
  "homepage": "https://extension.js.org/",
41
41
  "author": {
@@ -85,6 +85,7 @@
85
85
  "cli"
86
86
  ],
87
87
  "dependencies": {
88
+ "extension-develop": "^3.0.0-next.59",
88
89
  "commander": "^12.1.0",
89
90
  "extension-create": "^2.2.0",
90
91
  "pintor": "0.3.0",
@@ -0,0 +1,79 @@
1
+ declare module 'extension-develop' {
2
+ // These types mirror the public surface of programs/develop/module.ts,
3
+ // but are intentionally loose on the CLI side. The real, precise types
4
+ // come from the installed `extension-develop` package when consumers
5
+ // depend on it directly.
6
+
7
+ export type ExtensionBrowser =
8
+ | 'chrome'
9
+ | 'edge'
10
+ | 'firefox'
11
+ | 'chromium'
12
+ | 'chromium-based'
13
+ | 'gecko-based'
14
+ | 'firefox-based'
15
+
16
+ export type ExtensionMode = 'development' | 'production'
17
+
18
+ export interface BuildOptions {
19
+ browser?: ExtensionBrowser | 'all'
20
+ polyfill?: boolean
21
+ zip?: boolean
22
+ zipSource?: boolean
23
+ zipFilename?: string
24
+ silent?: boolean
25
+ }
26
+
27
+ export interface DevOptions {
28
+ browser?: ExtensionBrowser | 'all'
29
+ profile?: string | boolean
30
+ persistProfile?: boolean
31
+ chromiumBinary?: string
32
+ geckoBinary?: string
33
+ polyfill?: boolean | string
34
+ open?: boolean
35
+ startingUrl?: string
36
+ source?: boolean | string
37
+ watchSource?: boolean
38
+ logLevel?: string
39
+ logFormat?: 'pretty' | 'json'
40
+ logTimestamps?: boolean
41
+ logColor?: boolean
42
+ logUrl?: string
43
+ logTab?: string | number
44
+ }
45
+
46
+ export interface PreviewOptions extends DevOptions {}
47
+
48
+ export interface StartOptions extends DevOptions {}
49
+
50
+ export interface FileConfig {
51
+ [key: string]: unknown
52
+ }
53
+
54
+ export interface Manifest {
55
+ [key: string]: unknown
56
+ }
57
+
58
+ export function extensionBuild(
59
+ pathOrRemoteUrl: string,
60
+ options: BuildOptions
61
+ ): Promise<any>
62
+
63
+ export function extensionDev(
64
+ pathOrRemoteUrl: string,
65
+ options: DevOptions
66
+ ): Promise<any>
67
+
68
+ export function extensionStart(
69
+ pathOrRemoteUrl: string,
70
+ options: StartOptions
71
+ ): Promise<any>
72
+
73
+ export function extensionPreview(
74
+ pathOrRemoteUrl: string,
75
+ options: PreviewOptions
76
+ ): Promise<any>
77
+ }
78
+
79
+