extension-create 4.1.20 → 4.1.21

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.
@@ -3,6 +3,7 @@ declare const NODE_PACKAGE_MANAGERS: readonly ['pnpm', 'yarn', 'bun', 'npm'];
3
3
  type NodePackageManager = (typeof NODE_PACKAGE_MANAGERS)[number];
4
4
  export declare function detectPackageManagerFromEnv(): NodePackageManager;
5
5
  export declare function isDenoRuntime(): boolean;
6
+ export declare function isBunRuntime(): boolean;
6
7
  export type ScaffoldPackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'deno';
7
8
  export declare function resolveScaffoldPackageManager(): ScaffoldPackageManager;
8
9
  export declare function resolveProjectPackageManager(projectPath: string): ScaffoldPackageManager;
package/dist/module.cjs CHANGED
@@ -136,8 +136,12 @@ function detectPackageManagerFromEnv() {
136
136
  function isDenoRuntime() {
137
137
  return void 0 !== globalThis.Deno || Boolean(process.versions?.deno);
138
138
  }
139
+ function isBunRuntime() {
140
+ return void 0 !== globalThis.Bun || Boolean(process.versions?.bun);
141
+ }
139
142
  function resolveScaffoldPackageManager() {
140
143
  if (isDenoRuntime()) return 'deno';
144
+ if (isBunRuntime()) return 'bun';
141
145
  return detectPackageManagerFromEnv();
142
146
  }
143
147
  function resolveProjectPackageManager(projectPath) {
@@ -145,6 +149,7 @@ function resolveProjectPackageManager(projectPath) {
145
149
  const pinned = readPinnedPackageManager(projectPath);
146
150
  if (pinned) return pinned;
147
151
  if (external_node_fs_namespaceObject.existsSync(external_node_path_namespaceObject.join(projectPath, 'pnpm-workspace.yaml'))) return 'pnpm';
152
+ if (isBunRuntime()) return 'bun';
148
153
  return detectPackageManagerFromEnv();
149
154
  }
150
155
  function readPinnedPackageManager(projectPath) {
@@ -612,7 +617,7 @@ const NETWORK_TIMEOUT_MS = (()=>{
612
617
  return Number.isFinite(raw) && raw > 0 ? raw : 60000;
613
618
  })();
614
619
  const CODELOAD_BASE = 'https://codeload.github.com/extension-js/examples/zip';
615
- const DEFAULT_TEMPLATES_REF = '39448a235ea1b02516e6d555bcae409db2258b7f';
620
+ const DEFAULT_TEMPLATES_REF = '06d33e35894516a460409dca06d1614e291e6252';
616
621
  const BUNDLED_TEMPLATES = [
617
622
  "javascript"
618
623
  ];
@@ -1,4 +1,4 @@
1
- export declare const DEFAULT_TEMPLATES_REF = "39448a235ea1b02516e6d555bcae409db2258b7f";
1
+ export declare const DEFAULT_TEMPLATES_REF = "06d33e35894516a460409dca06d1614e291e6252";
2
2
  export declare const BUNDLED_TEMPLATES: readonly string[];
3
3
  export declare const DEFAULT_TEMPLATE_NAME = "typescript";
4
4
  export declare const OFFLINE_FALLBACK_TEMPLATE = "javascript";
@@ -1,6 +1,6 @@
1
1
  {
2
- "createdWith": "extension-create@4.1.19",
2
+ "createdWith": "extension-create@4.1.20",
3
3
  "template": "typescript",
4
- "source": "https://codeload.github.com/extension-js/examples/zip/39448a235ea1b02516e6d555bcae409db2258b7f",
5
- "ref": "39448a235ea1b02516e6d555bcae409db2258b7f"
4
+ "source": "https://codeload.github.com/extension-js/examples/zip/06d33e35894516a460409dca06d1614e291e6252",
5
+ "ref": "06d33e35894516a460409dca06d1614e291e6252"
6
6
  }
@@ -9,7 +9,7 @@ Packaging your extension is local and free. Submitting the result to a
9
9
  store is what [extension.dev](https://docs.extension.dev/publish/overview?utm_source=store-md)
10
10
  does, and it sponsors Extension.js.
11
11
 
12
- Last updated: 2026-09-16
12
+ Last updated: 2026-09-17
13
13
 
14
14
  ## Listing
15
15
 
@@ -8,7 +8,7 @@
8
8
  "devDependencies": {
9
9
  "@types/chrome": "^0.0.287",
10
10
  "typescript": "7.0.2",
11
- "extension": "^4.1.19"
11
+ "extension": "^4.1.20"
12
12
  },
13
13
  "scripts": {
14
14
  "dev": "extension dev",
@@ -48,7 +48,8 @@
48
48
  },
49
49
  "firefox:sidebar_action": {
50
50
  "default_panel": "sidebar/index.html",
51
- "default_title": "Side Panel Content"
51
+ "default_title": "Side Panel Content",
52
+ "browser_style": false
52
53
  },
53
54
  "chromium:permissions": [
54
55
  "sidePanel"
@@ -11,6 +11,9 @@
11
11
  body {
12
12
  background-color: var(--sidebar-bg);
13
13
  color: var(--sidebar-text);
14
+ font-family:
15
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
16
+ Arial, 'Noto Sans', sans-serif;
14
17
  /* The margin insets the panel, so a full-viewport height would push the
15
18
  content below centre and overflow the panel by twice the margin. */
16
19
  height: calc(100vh - 2 * var(--sidebar-margin));
@@ -33,6 +36,7 @@ body {
33
36
  }
34
37
 
35
38
  .sidebar_logo {
39
+ display: block;
36
40
  width: 72px;
37
41
  margin: 0 auto 1rem;
38
42
  }
@@ -40,9 +44,6 @@ body {
40
44
  .sidebar_title {
41
45
  font-size: 1.85em;
42
46
  line-height: 1.1;
43
- font-family:
44
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
45
- Arial, 'Noto Sans', sans-serif;
46
47
  font-weight: 700;
47
48
  margin: 0;
48
49
  text-align: center;
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "templates"
26
26
  ],
27
27
  "name": "extension-create",
28
- "version": "4.1.20",
28
+ "version": "4.1.21",
29
29
  "description": "The standalone extension creation engine for Extension.js",
30
30
  "author": {
31
31
  "name": "Cezar Augusto",
@@ -46,7 +46,8 @@
46
46
  },
47
47
  "firefox:sidebar_action": {
48
48
  "default_panel": "sidebar/index.html",
49
- "default_title": "Side Panel Content"
49
+ "default_title": "Side Panel Content",
50
+ "browser_style": false
50
51
  },
51
52
  "chromium:permissions": ["sidePanel"],
52
53
  "background": {
@@ -11,6 +11,9 @@
11
11
  body {
12
12
  background-color: var(--sidebar-bg);
13
13
  color: var(--sidebar-text);
14
+ font-family:
15
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
16
+ Arial, 'Noto Sans', sans-serif;
14
17
  /* The margin insets the panel, so a full-viewport height would push the
15
18
  content below centre and overflow the panel by twice the margin. */
16
19
  height: calc(100vh - 2 * var(--sidebar-margin));
@@ -33,6 +36,7 @@ body {
33
36
  }
34
37
 
35
38
  .sidebar_logo {
39
+ display: block;
36
40
  width: 72px;
37
41
  margin: 0 auto 1rem;
38
42
  }
@@ -40,9 +44,6 @@ body {
40
44
  .sidebar_title {
41
45
  font-size: 1.85em;
42
46
  line-height: 1.1;
43
- font-family:
44
- -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
45
- Arial, 'Noto Sans', sans-serif;
46
47
  font-weight: 700;
47
48
  margin: 0;
48
49
  text-align: center;