extension 2.0.0-beta.3 → 2.0.0-beta.5

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/cli.js CHANGED
@@ -117,7 +117,7 @@ var package_default = {
117
117
  node: ">=18"
118
118
  },
119
119
  name: "extension",
120
- version: "2.0.0-beta.3",
120
+ version: "2.0.0-beta.5",
121
121
  description: "Create cross-browser extensions with no build configuration.",
122
122
  main: "./dist/cli.js",
123
123
  types: "./dist/cli.d.ts",
@@ -7,6 +7,20 @@
7
7
 
8
8
  declare namespace NodeJS {
9
9
  interface ProcessEnv {
10
- readonly EXTENSION_ENV: 'development' | 'production' | 'test' | 'debug'
10
+ readonly EXTENSION_BROWSER: 'chrome' | 'edge' | 'firefox' | 'chromium-based' | 'gecko-based'
11
+ readonly EXTENSION_MODE: 'development' | 'production'
11
12
  }
12
13
  }
14
+
15
+ interface ImportMetaEnv {
16
+ readonly EXTENSION_BROWSER: NodeJS.ProcessEnv['EXTENSION_BROWSER']
17
+ readonly EXTENSION_MODE: NodeJS.ProcessEnv['EXTENSION_MODE']
18
+ }
19
+
20
+ interface ImportMeta {
21
+ readonly env: ImportMetaEnv
22
+ }
23
+
24
+ interface Window {
25
+ __EXTENSION_SHADOW_ROOT__: ShadowRoot
26
+ }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=18"
10
10
  },
11
11
  "name": "extension",
12
- "version": "2.0.0-beta.3",
12
+ "version": "2.0.0-beta.5",
13
13
  "description": "Create cross-browser extensions with no build configuration.",
14
14
  "main": "./dist/cli.js",
15
15
  "types": "./dist/cli.d.ts",
@@ -50,7 +50,7 @@
50
50
  "update-check": "^1.5.4",
51
51
  "webextension-polyfill": "^0.12.0",
52
52
  "extension-create": "2.0.0-beta.3",
53
- "extension-develop": "2.0.0-beta.3"
53
+ "extension-develop": "2.0.0-beta.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/jest": "^29.5.11",