extension 2.1.3 → 3.0.0-next.7
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 +19 -10
- package/dist/cli-lib/manifest-summary.d.ts +13 -0
- package/dist/cli-lib/messages.d.ts +2 -0
- package/dist/cli-lib/telemetry-cli.d.ts +2 -0
- package/dist/cli-lib/telemetry.d.ts +22 -0
- package/dist/cli.js +730 -136
- package/dist/commands/build.d.ts +2 -0
- package/dist/commands/create.d.ts +2 -0
- package/dist/commands/dev.d.ts +2 -0
- package/dist/commands/preview.d.ts +2 -0
- package/dist/commands/start.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/utils.d.ts +5 -0
- package/package.json +29 -20
- package/types/polyfill.d.ts +6 -0
- package/dist/cli.d.ts +0 -2
package/dist/index.d.ts
ADDED
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type Browser = 'chrome' | 'edge' | 'firefox' | 'chromium' | 'chromium-based' | 'gecko-based' | 'firefox-based';
|
|
2
|
+
export declare function parseOptionalBoolean(value?: string): boolean;
|
|
3
|
+
export declare function requireOrDlx(moduleName: string, versionHint?: string): Promise<any>;
|
|
4
|
+
export declare const vendors: (browser?: Browser | "all") => string[];
|
|
5
|
+
export declare function validateVendorsOrExit(vendorsList: string[], onInvalid: (invalid: string, supported: string[]) => void): void;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"license": "MIT",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
|
-
"url": "https://github.com/extension-js/extension.js
|
|
5
|
+
"url": "https://github.com/extension-js/extension.js",
|
|
6
6
|
"directory": "programs/cli"
|
|
7
7
|
},
|
|
8
8
|
"engines": {
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist/cli.js",
|
|
19
19
|
"types": "./dist/cli.d.ts",
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
"types": [
|
|
23
|
+
"./types/index.d.ts"
|
|
24
|
+
],
|
|
25
|
+
"types/*": [
|
|
26
|
+
"./types/*"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
20
30
|
"files": [
|
|
21
31
|
"dist",
|
|
22
32
|
"types"
|
|
@@ -25,7 +35,7 @@
|
|
|
25
35
|
"extension": "./dist/cli.js"
|
|
26
36
|
},
|
|
27
37
|
"name": "extension",
|
|
28
|
-
"version": "
|
|
38
|
+
"version": "3.0.0-next.7",
|
|
29
39
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
30
40
|
"homepage": "https://extension.js.org/",
|
|
31
41
|
"author": {
|
|
@@ -38,6 +48,13 @@
|
|
|
38
48
|
"registry": "https://registry.npmjs.org",
|
|
39
49
|
"tag": "latest"
|
|
40
50
|
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"prepare": "rslib build >/dev/null 2>&1 || true",
|
|
53
|
+
"postinstall": "rslib build >/dev/null 2>&1 || true",
|
|
54
|
+
"compile": "rslib build",
|
|
55
|
+
"watch": "rslib build --watch",
|
|
56
|
+
"test": "vitest run"
|
|
57
|
+
},
|
|
41
58
|
"keywords": [
|
|
42
59
|
"zero-config",
|
|
43
60
|
"build",
|
|
@@ -70,33 +87,25 @@
|
|
|
70
87
|
"cli"
|
|
71
88
|
],
|
|
72
89
|
"dependencies": {
|
|
73
|
-
"@types/chrome": "^0.0.287",
|
|
74
|
-
"@types/node": "^22.10.1",
|
|
75
|
-
"@types/react": "^19.0.1",
|
|
76
|
-
"@types/react-dom": "^19.0.1",
|
|
77
|
-
"@types/webextension-polyfill": "0.12.3",
|
|
78
90
|
"commander": "^12.1.0",
|
|
91
|
+
"extension-create": "^2.2.0",
|
|
79
92
|
"pintor": "0.3.0",
|
|
80
93
|
"semver": "^7.6.3",
|
|
81
|
-
"update-check": "^1.5.4"
|
|
82
|
-
"webextension-polyfill": "^0.12.0",
|
|
83
|
-
"extension-create": "2.1.2",
|
|
84
|
-
"extension-develop": "2.1.3"
|
|
94
|
+
"update-check": "^1.5.4"
|
|
85
95
|
},
|
|
86
96
|
"devDependencies": {
|
|
87
97
|
"@rslib/core": "^0.6.9",
|
|
98
|
+
"@types/chrome": "^0.0.287",
|
|
99
|
+
"@types/node": "^22.10.1",
|
|
100
|
+
"@types/react": "^19.0.1",
|
|
101
|
+
"@types/react-dom": "^19.0.1",
|
|
102
|
+
"@types/webextension-polyfill": "0.12.3",
|
|
88
103
|
"@types/mock-fs": "^4.13.4",
|
|
89
104
|
"@types/semver": "^7.5.8",
|
|
90
105
|
"mock-fs": "^5.4.1",
|
|
106
|
+
"webextension-polyfill": "^0.12.0",
|
|
91
107
|
"tsconfig": "*",
|
|
92
108
|
"typescript": "5.7.2",
|
|
93
|
-
"vitest": "3.2.
|
|
94
|
-
},
|
|
95
|
-
"scripts": {
|
|
96
|
-
"watch": "rslib build --watch",
|
|
97
|
-
"compile": "rslib build",
|
|
98
|
-
"clean": "rm -rf dist",
|
|
99
|
-
"test": "echo \"Note: no test specified\" && exit 0",
|
|
100
|
-
"test:cli": "vitest run"
|
|
109
|
+
"vitest": "^3.2.4"
|
|
101
110
|
}
|
|
102
|
-
}
|
|
111
|
+
}
|
package/types/polyfill.d.ts
CHANGED
package/dist/cli.d.ts
DELETED