extension-create 4.0.27 → 4.0.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.
- package/dist/module.cjs +2 -11
- package/dist/steps/import-external-template.d.ts +1 -0
- package/dist/test-template-javascript/.extension-create.json +1 -1
- package/dist/test-template-javascript/README.md +0 -2
- package/dist/test-template-javascript/STORE.md +1 -1
- package/dist/test-template-javascript/package.json +1 -1
- package/package.json +1 -1
- package/templates/javascript/README.md +1 -1
- package/templates/javascript/package.json +1 -6
- package/templates/javascript/public/screenshot.png +0 -0
- /package/{dist/test-template-javascript/public → templates/javascript}/screenshot.png +0 -0
package/dist/module.cjs
CHANGED
|
@@ -460,6 +460,7 @@ 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 = '52c0d871c433d9c54878767175ce8ffc9a951756';
|
|
463
464
|
function resolveCatalogUrls(ref, overrideUrl) {
|
|
464
465
|
if (overrideUrl) return [
|
|
465
466
|
overrideUrl
|
|
@@ -536,7 +537,7 @@ async function extractExamplesTemplateFromZip(zipBuffer, templateName, projectPa
|
|
|
536
537
|
return written;
|
|
537
538
|
}
|
|
538
539
|
async function importFromExamplesCatalog(templateName, projectPath) {
|
|
539
|
-
const ref = process.env.EXTENSION_CREATE_TEMPLATE_REF ||
|
|
540
|
+
const ref = process.env.EXTENSION_CREATE_TEMPLATE_REF || DEFAULT_TEMPLATES_REF;
|
|
540
541
|
const overrideUrl = process.env.EXTENSION_CREATE_TEMPLATE_URL || void 0;
|
|
541
542
|
const urls = resolveCatalogUrls(ref, overrideUrl);
|
|
542
543
|
let buffer;
|
|
@@ -1452,13 +1453,6 @@ async function overridePackageJson(projectPath, { template = "javascript", cliVe
|
|
|
1452
1453
|
onlyBuiltDependencies: onlyBuilt
|
|
1453
1454
|
} : {}
|
|
1454
1455
|
};
|
|
1455
|
-
const identity = readGitIdentity(projectPath);
|
|
1456
|
-
const author = identity.name ? {
|
|
1457
|
-
name: identity.name,
|
|
1458
|
-
...identity.email ? {
|
|
1459
|
-
email: identity.email
|
|
1460
|
-
} : {}
|
|
1461
|
-
} : void 0;
|
|
1462
1456
|
const templateFields = {
|
|
1463
1457
|
...packageJson
|
|
1464
1458
|
};
|
|
@@ -1481,9 +1475,6 @@ async function overridePackageJson(projectPath, { template = "javascript", cliVe
|
|
|
1481
1475
|
} : {},
|
|
1482
1476
|
...trustedDeps.length ? {
|
|
1483
1477
|
trustedDependencies: trustedDeps
|
|
1484
|
-
} : {},
|
|
1485
|
-
...author ? {
|
|
1486
|
-
author
|
|
1487
1478
|
} : {}
|
|
1488
1479
|
};
|
|
1489
1480
|
try {
|
|
@@ -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-03
|
|
13
13
|
|
|
14
14
|
## Listing
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
> Adds a sidebar panel to the browser with a simple page.
|
|
9
9
|
|
|
10
|
-

|
|
11
11
|
|
|
12
12
|
**What you'll see**: A small UI injected into any web page, isolated in a Shadow DOM so site styles don't bleed through.
|
|
13
13
|
|
|
@@ -4,10 +4,5 @@
|
|
|
4
4
|
"description": "Adds a sidebar panel to the browser with a simple page.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"type": "module"
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Cezar Augusto",
|
|
10
|
-
"email": "boss@cezaraugusto.net",
|
|
11
|
-
"url": "https://cezaraugusto.com"
|
|
12
|
-
}
|
|
7
|
+
"type": "module"
|
|
13
8
|
}
|
|
Binary file
|
|
File without changes
|