extension 2.1.2 → 3.0.0-next.28

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.
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare function registerBuildCommand(program: Command, telemetry: any): void;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare function registerCreateCommand(program: Command, telemetry: any): void;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare function registerDevCommand(program: Command, telemetry: any): void;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare function registerPreviewCommand(program: Command, telemetry: any): void;
@@ -0,0 +1,2 @@
1
+ import type { Command } from 'commander';
2
+ export declare function registerStartCommand(program: Command, telemetry: any): void;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -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.git",
5
+ "url": "git+https://github.com/extension-js/extension.js.git",
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": "2.1.2",
38
+ "version": "3.0.0-next.28",
29
39
  "description": "Create cross-browser extensions with no build configuration.",
30
40
  "homepage": "https://extension.js.org/",
31
41
  "author": {
@@ -35,8 +45,14 @@
35
45
  },
36
46
  "publishConfig": {
37
47
  "access": "public",
38
- "registry": "https://registry.npmjs.org",
39
- "tag": "latest"
48
+ "registry": "https://registry.npmjs.org"
49
+ },
50
+ "scripts": {
51
+ "prepare": "rslib build >/dev/null 2>&1 || true",
52
+ "postinstall": "rslib build >/dev/null 2>&1 || true",
53
+ "compile": "rslib build",
54
+ "watch": "rslib build --watch",
55
+ "test": "vitest run"
40
56
  },
41
57
  "keywords": [
42
58
  "zero-config",
@@ -70,33 +86,25 @@
70
86
  "cli"
71
87
  ],
72
88
  "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
89
  "commander": "^12.1.0",
90
+ "extension-create": "^2.2.0",
79
91
  "pintor": "0.3.0",
80
92
  "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.2"
93
+ "update-check": "^1.5.4"
85
94
  },
86
95
  "devDependencies": {
87
96
  "@rslib/core": "^0.6.9",
97
+ "@types/chrome": "^0.0.287",
98
+ "@types/node": "^22.10.1",
99
+ "@types/react": "^19.0.1",
100
+ "@types/react-dom": "^19.0.1",
101
+ "@types/webextension-polyfill": "0.12.3",
88
102
  "@types/mock-fs": "^4.13.4",
89
103
  "@types/semver": "^7.5.8",
90
104
  "mock-fs": "^5.4.1",
105
+ "webextension-polyfill": "^0.12.0",
91
106
  "tsconfig": "*",
92
107
  "typescript": "5.7.2",
93
- "vitest": "3.2.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"
108
+ "vitest": "^3.2.4"
101
109
  }
102
- }
110
+ }
package/types/index.d.ts CHANGED
@@ -21,7 +21,8 @@ interface ExtensionEnv {
21
21
  EXTENSION_PUBLIC_MODE: ExtensionMode
22
22
  EXTENSION_PUBLIC_DESCRIPTION_TEXT: string
23
23
  EXTENSION_PUBLIC_OPENAI_API_KEY: string
24
- EXTENSION_ENV: ExtensionMode
24
+ EXTENSION_AUTHOR_MODE: string
25
+ EXTENSION_PUBLIC_AUTHOR_MODE: string
25
26
  }
26
27
 
27
28
  // Global augmentations
@@ -1 +1,7 @@
1
1
  /// <reference types="webextension-polyfill" />
2
+
3
+ declare global {
4
+ const browser: typeof import('webextension-polyfill')
5
+ }
6
+
7
+ export {}
package/dist/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export type { FileConfig, Manifest } from 'extension-develop';