extension 3.0.0-next.49 → 3.0.0-next.50
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 +13 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -23,7 +23,7 @@ var __webpack_require__ = {};
|
|
|
23
23
|
})();
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
const external_commander_namespaceObject = require("commander");
|
|
26
|
-
var package_namespaceObject = JSON.parse('{"license":"MIT","repository":{"type":"git","url":"git+https://github.com/extension-js/extension.js.git","directory":"programs/cli"},"engines":{"node":">=18"},"exports":{".":{"types":"./dist/cli.d.ts","import":"./dist/cli.js","require":"./dist/cli.js"}},"main":"./dist/cli.js","types":"./dist/cli.d.ts","typesVersions":{"*":{"types":["./types/index.d.ts"],"types/*":["./types/*"]}},"files":["dist","types"],"bin":{"extension":"./dist/cli.js"},"name":"extension","version":"3.0.0-next.
|
|
26
|
+
var package_namespaceObject = JSON.parse('{"license":"MIT","repository":{"type":"git","url":"git+https://github.com/extension-js/extension.js.git","directory":"programs/cli"},"engines":{"node":">=18"},"exports":{".":{"types":"./dist/cli.d.ts","import":"./dist/cli.js","require":"./dist/cli.js"}},"main":"./dist/cli.js","types":"./dist/cli.d.ts","typesVersions":{"*":{"types":["./types/index.d.ts"],"types/*":["./types/*"]}},"files":["dist","types"],"bin":{"extension":"./dist/cli.js"},"name":"extension","version":"3.0.0-next.50","description":"Create cross-browser extensions with no build configuration.","homepage":"https://extension.js.org/","author":{"name":"Cezar Augusto","email":"boss@cezaraugusto.net","url":"https://cezaraugusto.com"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"prepare":"rslib build >/dev/null 2>&1 || true","postinstall":"rslib build >/dev/null 2>&1 || true","compile":"rslib build","watch":"rslib build --watch","test":"vitest run"},"keywords":["zero-config","build","develop","browser","extension","chrome extension","edge extension","firefox extension","safari extension","web","react","typescript","webextension","browser-extension","chrome-extension","firefox-addon","edge-extension","safari-web-extension","manifest-v3","mv3","cross-browser","content-script","background-script","devtools","create-extension","scaffold","starter-template","boilerplate","cli"],"dependencies":{"commander":"^12.1.0","extension-create":"^2.2.0","pintor":"0.3.0","semver":"^7.6.3","update-check":"^1.5.4"},"devDependencies":{"@rslib/core":"^0.6.9","@types/chrome":"^0.0.287","@types/node":"^22.10.1","@types/react":"^19.0.1","@types/react-dom":"^19.0.1","@types/webextension-polyfill":"0.12.3","@types/mock-fs":"^4.13.4","@types/semver":"^7.5.8","mock-fs":"^5.4.1","webextension-polyfill":"^0.12.0","tsconfig":"*","typescript":"5.7.2","vitest":"^3.2.4"}}');
|
|
27
27
|
const external_update_check_namespaceObject = require("update-check");
|
|
28
28
|
var external_update_check_default = /*#__PURE__*/ __webpack_require__.n(external_update_check_namespaceObject);
|
|
29
29
|
const external_pintor_namespaceObject = require("pintor");
|
|
@@ -567,11 +567,14 @@ async function requireOrDlx(moduleName, versionHint) {
|
|
|
567
567
|
recursive: true
|
|
568
568
|
});
|
|
569
569
|
} catch {}
|
|
570
|
+
let preInstallPkgJson;
|
|
570
571
|
try {
|
|
571
|
-
|
|
572
|
-
const entry = resolveModuleEntry(modulePath, pkgJson);
|
|
573
|
-
if (entry) return await import(entry);
|
|
572
|
+
preInstallPkgJson = JSON.parse(external_node_fs_default().readFileSync(external_node_path_default().join(modulePath, 'package.json'), 'utf8'));
|
|
574
573
|
} catch {}
|
|
574
|
+
if (preInstallPkgJson) {
|
|
575
|
+
const entry = resolveModuleEntry(modulePath, preInstallPkgJson);
|
|
576
|
+
if (entry) return await import(entry);
|
|
577
|
+
}
|
|
575
578
|
if ('pnpm' === prefer) try {
|
|
576
579
|
external_node_fs_default().writeFileSync(external_node_path_default().join(cacheDir, 'package.json'), JSON.stringify({
|
|
577
580
|
name: 'extensionjs-cache',
|
|
@@ -648,11 +651,14 @@ async function requireOrDlx(moduleName, versionHint) {
|
|
|
648
651
|
}).status || 0;
|
|
649
652
|
}
|
|
650
653
|
if (0 !== status) throw new Error(`Failed to install ${spec}`);
|
|
654
|
+
let postInstallPkgJson;
|
|
651
655
|
try {
|
|
652
|
-
|
|
653
|
-
const entry = resolveModuleEntry(modulePath, pkgJson);
|
|
654
|
-
if (entry) return await import(entry);
|
|
656
|
+
postInstallPkgJson = JSON.parse(external_node_fs_default().readFileSync(external_node_path_default().join(modulePath, 'package.json'), 'utf8'));
|
|
655
657
|
} catch {}
|
|
658
|
+
if (postInstallPkgJson) {
|
|
659
|
+
const entry = resolveModuleEntry(modulePath, postInstallPkgJson);
|
|
660
|
+
if (entry) return await import(entry);
|
|
661
|
+
}
|
|
656
662
|
throw new Error(`Failed to resolve entry point for ${moduleName} (${spec}) at ${modulePath}. This likely means the installed "extension-develop" version is incompatible with this CLI.`);
|
|
657
663
|
}
|
|
658
664
|
const vendors = (browser)=>{
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"extension": "./dist/cli.js"
|
|
36
36
|
},
|
|
37
37
|
"name": "extension",
|
|
38
|
-
"version": "3.0.0-next.
|
|
38
|
+
"version": "3.0.0-next.50",
|
|
39
39
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
40
40
|
"homepage": "https://extension.js.org/",
|
|
41
41
|
"author": {
|