extension 4.1.3 → 4.1.4
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.cjs +14 -1
- package/package.json +4 -4
package/dist/cli.cjs
CHANGED
|
@@ -9103,6 +9103,7 @@ Cross-browser compatibility
|
|
|
9103
9103
|
return;
|
|
9104
9104
|
}
|
|
9105
9105
|
const noBrowser = await resolveNoBrowser(pathOrRemoteUrl || process.cwd(), 'dev');
|
|
9106
|
+
if (asJson) process.env.EXTENSION_OUTPUT = 'json';
|
|
9106
9107
|
if (asJson) printFrame(messaging.Pr.ok('dev', 'started', {
|
|
9107
9108
|
projectPath: pathOrRemoteUrl || process.cwd(),
|
|
9108
9109
|
browser: list[0],
|
|
@@ -10132,6 +10133,18 @@ Cross-browser compatibility
|
|
|
10132
10133
|
}));
|
|
10133
10134
|
process.exit(1);
|
|
10134
10135
|
}
|
|
10136
|
+
function applyOutputAliasArgvShim(argv) {
|
|
10137
|
+
const index = argv.findIndex((arg)=>'--format' === arg || arg.startsWith('--format='));
|
|
10138
|
+
if (index < 0) return argv;
|
|
10139
|
+
if (argv.includes('--ai-help')) return argv;
|
|
10140
|
+
const next = [
|
|
10141
|
+
...argv
|
|
10142
|
+
];
|
|
10143
|
+
if (next[index].startsWith('--format=')) next[index] = `--output=${next[index].slice(9)}`;
|
|
10144
|
+
else next[index] = '--output';
|
|
10145
|
+
warnDeprecatedOutputAlias('--format');
|
|
10146
|
+
return next;
|
|
10147
|
+
}
|
|
10135
10148
|
function applyNoBrowserArgvShim(argv) {
|
|
10136
10149
|
const hasNoRunner = argv.includes('--no-runner');
|
|
10137
10150
|
if (hasNoRunner) failBeforeParse(argv, removedNoRunnerFlag(), messaging.Lp.E_REMOVED_FLAG, '--no-runner was removed. Use --no-browser instead.', '--no-runner');
|
|
@@ -10196,7 +10209,7 @@ Cross-browser compatibility
|
|
|
10196
10209
|
}
|
|
10197
10210
|
if (process.argv.includes('--ai-help')) runAIHelp();
|
|
10198
10211
|
else {
|
|
10199
|
-
const argv = applyNoBrowserArgvShim(process.argv);
|
|
10212
|
+
const argv = applyNoBrowserArgvShim(applyOutputAliasArgvShim(process.argv));
|
|
10200
10213
|
const asJson = wantsJsonOutput(argv);
|
|
10201
10214
|
const commandName = resolveCommandFromArgv(argv) || 'extension';
|
|
10202
10215
|
(async ()=>{
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"extension": "./bin/extension.cjs"
|
|
39
39
|
},
|
|
40
40
|
"name": "extension",
|
|
41
|
-
"version": "4.1.
|
|
41
|
+
"version": "4.1.4",
|
|
42
42
|
"description": "The cross-browser extension framework. Build Chrome, Edge, Firefox, and Safari extensions with no build configuration.",
|
|
43
43
|
"homepage": "https://extension.js.org/",
|
|
44
44
|
"bugs": {
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vivaldi-location2": "2.1.1",
|
|
107
107
|
"waterfox-location": "2.1.1",
|
|
108
108
|
"yandex-location": "2.1.1",
|
|
109
|
-
"extension-create": "4.1.
|
|
110
|
-
"extension-develop": "4.1.
|
|
111
|
-
"extension-install": "4.1.
|
|
109
|
+
"extension-create": "4.1.4",
|
|
110
|
+
"extension-develop": "4.1.4",
|
|
111
|
+
"extension-install": "4.1.4",
|
|
112
112
|
"commander": "^15.0.0",
|
|
113
113
|
"pintor": "0.3.0",
|
|
114
114
|
"semver": "^7.7.3",
|