extension-create 4.0.30 → 4.0.32
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/module.cjs
CHANGED
|
@@ -460,7 +460,10 @@ const NETWORK_TIMEOUT_MS = (()=>{
|
|
|
460
460
|
return Number.isFinite(raw) && raw > 0 ? raw : 60000;
|
|
461
461
|
})();
|
|
462
462
|
const CODELOAD_BASE = 'https://codeload.github.com/extension-js/examples/zip';
|
|
463
|
-
const DEFAULT_TEMPLATES_REF = '
|
|
463
|
+
const DEFAULT_TEMPLATES_REF = 'f7f4e6efb56a7e5ae08d58dbff3972d94af7d021';
|
|
464
|
+
const BUNDLED_TEMPLATES = [
|
|
465
|
+
"javascript"
|
|
466
|
+
];
|
|
464
467
|
function resolveCatalogUrls(ref, overrideUrl) {
|
|
465
468
|
if (overrideUrl) return [
|
|
466
469
|
overrideUrl
|
|
@@ -677,8 +680,8 @@ async function importExternalTemplate(projectPath, projectName, template, logger
|
|
|
677
680
|
await promises_namespaceObject.mkdir(projectPath, {
|
|
678
681
|
recursive: true
|
|
679
682
|
});
|
|
680
|
-
if (!isHttp && !isGithub &&
|
|
681
|
-
const localTemplate = bundledTemplateDir(
|
|
683
|
+
if (!isHttp && !isGithub && BUNDLED_TEMPLATES.includes(resolvedTemplate)) {
|
|
684
|
+
const localTemplate = bundledTemplateDir(resolvedTemplate);
|
|
682
685
|
if ((0, external_node_fs_namespaceObject.existsSync)(localTemplate)) {
|
|
683
686
|
await copyDirectoryWithSymlinks(localTemplate, projectPath);
|
|
684
687
|
await removeTemplateScaffoldingFiles(projectPath);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const DEFAULT_TEMPLATES_REF = "
|
|
1
|
+
export declare const DEFAULT_TEMPLATES_REF = "f7f4e6efb56a7e5ae08d58dbff3972d94af7d021";
|
|
2
|
+
export declare const BUNDLED_TEMPLATES: readonly string[];
|
|
2
3
|
export declare function resolveCatalogUrls(ref: string, overrideUrl?: string): string[];
|
|
3
4
|
export interface TemplateProvenance {
|
|
4
5
|
template: string;
|
|
@@ -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-08-
|
|
12
|
+
Last updated: 2026-08-08
|
|
13
13
|
|
|
14
14
|
## Listing
|
|
15
15
|
|