extension 3.0.0 → 3.1.0-next.11
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 +7 -5
- package/dist/cli.js +647 -660
- package/package.json +15 -15
- package/types/extension-create-shim.d.ts +24 -0
- package/types/extension-develop-shim.d.ts +18 -0
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"extension": "./dist/cli.js"
|
|
36
36
|
},
|
|
37
37
|
"name": "extension",
|
|
38
|
-
"version": "3.0.
|
|
38
|
+
"version": "3.1.0-next.11",
|
|
39
39
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
40
40
|
"homepage": "https://extension.js.org/",
|
|
41
41
|
"bugs": {
|
|
@@ -88,26 +88,26 @@
|
|
|
88
88
|
"cli"
|
|
89
89
|
],
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"extension-
|
|
92
|
-
"
|
|
93
|
-
"
|
|
91
|
+
"extension-create": "^3.1.0-next.11",
|
|
92
|
+
"extension-develop": "^3.1.0-next.11",
|
|
93
|
+
"commander": "^14.0.2",
|
|
94
94
|
"pintor": "0.3.0",
|
|
95
|
-
"semver": "^7.
|
|
95
|
+
"semver": "^7.7.3",
|
|
96
96
|
"update-check": "^1.5.4"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@rslib/core": "^0.
|
|
100
|
-
"@types/chrome": "^0.
|
|
101
|
-
"@types/node": "^
|
|
102
|
-
"@types/react": "^19.
|
|
103
|
-
"@types/react-dom": "^19.
|
|
104
|
-
"@types/webextension-polyfill": "0.12.
|
|
99
|
+
"@rslib/core": "^0.19.2",
|
|
100
|
+
"@types/chrome": "^0.1.33",
|
|
101
|
+
"@types/node": "^25.0.9",
|
|
102
|
+
"@types/react": "^19.2.8",
|
|
103
|
+
"@types/react-dom": "^19.2.3",
|
|
104
|
+
"@types/webextension-polyfill": "0.12.4",
|
|
105
105
|
"@types/mock-fs": "^4.13.4",
|
|
106
|
-
"@types/semver": "^7.
|
|
107
|
-
"mock-fs": "^5.
|
|
106
|
+
"@types/semver": "^7.7.1",
|
|
107
|
+
"mock-fs": "^5.5.0",
|
|
108
108
|
"webextension-polyfill": "^0.12.0",
|
|
109
109
|
"tsconfig": "*",
|
|
110
|
-
"typescript": "5.
|
|
111
|
-
"vitest": "^
|
|
110
|
+
"typescript": "5.9.3",
|
|
111
|
+
"vitest": "^4.0.17"
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ██████╗██╗ ██╗
|
|
2
|
+
// ██╔════╝██║ ██║
|
|
3
|
+
// ██║ ██║ ██║
|
|
4
|
+
// ██║ ██║ ██║
|
|
5
|
+
// ╚██████╗███████╗██║
|
|
6
|
+
// ╚═════╝╚══════╝╚═╝
|
|
7
|
+
// MIT License (c) 2020–present Cezar Augusto & the Extension.js authors — presence implies inheritance
|
|
8
|
+
|
|
9
|
+
declare module 'extension-create' {
|
|
10
|
+
// These types mirror the public surface of programs/create/module.ts,
|
|
11
|
+
// but are intentionally loose on the CLI side. The real, precise types
|
|
12
|
+
// come from the installed `extension-create` package when consumers
|
|
13
|
+
// depend on it directly.
|
|
14
|
+
export interface CreateOptions {
|
|
15
|
+
template: string
|
|
16
|
+
install?: boolean
|
|
17
|
+
cliVersion?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function extensionCreate(
|
|
21
|
+
projectNameInput: string | undefined,
|
|
22
|
+
options: CreateOptions
|
|
23
|
+
): Promise<void>
|
|
24
|
+
}
|
|
@@ -82,4 +82,22 @@ declare module 'extension-develop' {
|
|
|
82
82
|
pathOrRemoteUrl: string,
|
|
83
83
|
options: PreviewOptions
|
|
84
84
|
): Promise<any>
|
|
85
|
+
|
|
86
|
+
export function ensureDependencies(
|
|
87
|
+
projectPath?: string,
|
|
88
|
+
opts?: {
|
|
89
|
+
skipProjectInstall?: boolean
|
|
90
|
+
exitOnInstall?: boolean
|
|
91
|
+
showRunAgainMessage?: boolean
|
|
92
|
+
}
|
|
93
|
+
): Promise<{
|
|
94
|
+
installed: boolean
|
|
95
|
+
installedBuild: boolean
|
|
96
|
+
installedUser: boolean
|
|
97
|
+
}>
|
|
98
|
+
|
|
99
|
+
export function preflightOptionalDependenciesForProject(
|
|
100
|
+
pathOrRemoteUrl: string,
|
|
101
|
+
mode?: ExtensionMode
|
|
102
|
+
): Promise<void>
|
|
85
103
|
}
|