extension-develop 3.2.0-next.2 → 3.2.0-next.3
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.
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Custom theme",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"description": "A clean, minimal browser theme generated in the editor.",
|
|
6
|
+
"author": "Anonymous",
|
|
7
|
+
"theme": {
|
|
8
|
+
"colors": {
|
|
9
|
+
"frame": [
|
|
10
|
+
37,
|
|
11
|
+
37,
|
|
12
|
+
39
|
|
13
|
+
],
|
|
14
|
+
"frame_inactive": [
|
|
15
|
+
49,
|
|
16
|
+
49,
|
|
17
|
+
53
|
|
18
|
+
],
|
|
19
|
+
"toolbar": [
|
|
20
|
+
25,
|
|
21
|
+
25,
|
|
22
|
+
26
|
|
23
|
+
],
|
|
24
|
+
"tab_background_text": [
|
|
25
|
+
28,
|
|
26
|
+
28,
|
|
27
|
+
30
|
|
28
|
+
],
|
|
29
|
+
"tab_text": [
|
|
30
|
+
255,
|
|
31
|
+
255,
|
|
32
|
+
255
|
|
33
|
+
],
|
|
34
|
+
"tab_background_text_inactive": [
|
|
35
|
+
62,
|
|
36
|
+
62,
|
|
37
|
+
66
|
|
38
|
+
],
|
|
39
|
+
"tab_text_inactive": [
|
|
40
|
+
255,
|
|
41
|
+
255,
|
|
42
|
+
255
|
|
43
|
+
],
|
|
44
|
+
"bookmark_text": [
|
|
45
|
+
153,
|
|
46
|
+
153,
|
|
47
|
+
159
|
|
48
|
+
],
|
|
49
|
+
"ntp_background": [
|
|
50
|
+
28,
|
|
51
|
+
28,
|
|
52
|
+
30
|
|
53
|
+
],
|
|
54
|
+
"ntp_text": [
|
|
55
|
+
255,
|
|
56
|
+
255,
|
|
57
|
+
255
|
|
58
|
+
],
|
|
59
|
+
"button_background": [
|
|
60
|
+
28,
|
|
61
|
+
28,
|
|
62
|
+
30
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Custom theme",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"description": "A clean, minimal browser theme generated in the editor.",
|
|
6
|
+
"author": "Anonymous",
|
|
7
|
+
"theme": {
|
|
8
|
+
"colors": {
|
|
9
|
+
"frame": [
|
|
10
|
+
37,
|
|
11
|
+
37,
|
|
12
|
+
39
|
|
13
|
+
],
|
|
14
|
+
"frame_inactive": [
|
|
15
|
+
49,
|
|
16
|
+
49,
|
|
17
|
+
53
|
|
18
|
+
],
|
|
19
|
+
"toolbar": [
|
|
20
|
+
25,
|
|
21
|
+
25,
|
|
22
|
+
26
|
|
23
|
+
],
|
|
24
|
+
"tab_background_text": [
|
|
25
|
+
28,
|
|
26
|
+
28,
|
|
27
|
+
30
|
|
28
|
+
],
|
|
29
|
+
"tab_text": [
|
|
30
|
+
255,
|
|
31
|
+
255,
|
|
32
|
+
255
|
|
33
|
+
],
|
|
34
|
+
"tab_background_text_inactive": [
|
|
35
|
+
62,
|
|
36
|
+
62,
|
|
37
|
+
66
|
|
38
|
+
],
|
|
39
|
+
"tab_text_inactive": [
|
|
40
|
+
255,
|
|
41
|
+
255,
|
|
42
|
+
255
|
|
43
|
+
],
|
|
44
|
+
"bookmark_text": [
|
|
45
|
+
153,
|
|
46
|
+
153,
|
|
47
|
+
159
|
|
48
|
+
],
|
|
49
|
+
"ntp_background": [
|
|
50
|
+
28,
|
|
51
|
+
28,
|
|
52
|
+
30
|
|
53
|
+
],
|
|
54
|
+
"ntp_text": [
|
|
55
|
+
255,
|
|
56
|
+
255,
|
|
57
|
+
255
|
|
58
|
+
],
|
|
59
|
+
"button_background": [
|
|
60
|
+
28,
|
|
61
|
+
28,
|
|
62
|
+
30
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Custom theme",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"description": "A clean, minimal browser theme generated in the editor.",
|
|
6
|
+
"author": "Anonymous",
|
|
7
|
+
"theme": {
|
|
8
|
+
"colors": {
|
|
9
|
+
"frame": [
|
|
10
|
+
37,
|
|
11
|
+
37,
|
|
12
|
+
39
|
|
13
|
+
],
|
|
14
|
+
"frame_inactive": [
|
|
15
|
+
49,
|
|
16
|
+
49,
|
|
17
|
+
53
|
|
18
|
+
],
|
|
19
|
+
"toolbar": [
|
|
20
|
+
25,
|
|
21
|
+
25,
|
|
22
|
+
26
|
|
23
|
+
],
|
|
24
|
+
"tab_background_text": [
|
|
25
|
+
28,
|
|
26
|
+
28,
|
|
27
|
+
30
|
|
28
|
+
],
|
|
29
|
+
"tab_text": [
|
|
30
|
+
255,
|
|
31
|
+
255,
|
|
32
|
+
255
|
|
33
|
+
],
|
|
34
|
+
"tab_background_text_inactive": [
|
|
35
|
+
62,
|
|
36
|
+
62,
|
|
37
|
+
66
|
|
38
|
+
],
|
|
39
|
+
"tab_text_inactive": [
|
|
40
|
+
255,
|
|
41
|
+
255,
|
|
42
|
+
255
|
|
43
|
+
],
|
|
44
|
+
"bookmark_text": [
|
|
45
|
+
153,
|
|
46
|
+
153,
|
|
47
|
+
159
|
|
48
|
+
],
|
|
49
|
+
"ntp_background": [
|
|
50
|
+
28,
|
|
51
|
+
28,
|
|
52
|
+
30
|
|
53
|
+
],
|
|
54
|
+
"ntp_text": [
|
|
55
|
+
255,
|
|
56
|
+
255,
|
|
57
|
+
255
|
|
58
|
+
],
|
|
59
|
+
"button_background": [
|
|
60
|
+
28,
|
|
61
|
+
28,
|
|
62
|
+
30
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 3,
|
|
3
|
+
"name": "Custom theme",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"description": "A clean, minimal browser theme generated in the editor.",
|
|
6
|
+
"author": "Anonymous",
|
|
7
|
+
"theme": {
|
|
8
|
+
"colors": {
|
|
9
|
+
"frame": [
|
|
10
|
+
37,
|
|
11
|
+
37,
|
|
12
|
+
39
|
|
13
|
+
],
|
|
14
|
+
"frame_inactive": [
|
|
15
|
+
49,
|
|
16
|
+
49,
|
|
17
|
+
53
|
|
18
|
+
],
|
|
19
|
+
"toolbar": [
|
|
20
|
+
25,
|
|
21
|
+
25,
|
|
22
|
+
26
|
|
23
|
+
],
|
|
24
|
+
"tab_background_text": [
|
|
25
|
+
28,
|
|
26
|
+
28,
|
|
27
|
+
30
|
|
28
|
+
],
|
|
29
|
+
"tab_text": [
|
|
30
|
+
255,
|
|
31
|
+
255,
|
|
32
|
+
255
|
|
33
|
+
],
|
|
34
|
+
"tab_background_text_inactive": [
|
|
35
|
+
62,
|
|
36
|
+
62,
|
|
37
|
+
66
|
|
38
|
+
],
|
|
39
|
+
"tab_text_inactive": [
|
|
40
|
+
255,
|
|
41
|
+
255,
|
|
42
|
+
255
|
|
43
|
+
],
|
|
44
|
+
"bookmark_text": [
|
|
45
|
+
153,
|
|
46
|
+
153,
|
|
47
|
+
159
|
|
48
|
+
],
|
|
49
|
+
"ntp_background": [
|
|
50
|
+
28,
|
|
51
|
+
28,
|
|
52
|
+
30
|
|
53
|
+
],
|
|
54
|
+
"ntp_text": [
|
|
55
|
+
255,
|
|
56
|
+
255,
|
|
57
|
+
255
|
|
58
|
+
],
|
|
59
|
+
"button_background": [
|
|
60
|
+
28,
|
|
61
|
+
28,
|
|
62
|
+
30
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/module.js
CHANGED
|
@@ -130622,6 +130622,13 @@ var __webpack_modules__ = {
|
|
|
130622
130622
|
if (execPath.includes('npm')) return 'npm';
|
|
130623
130623
|
}
|
|
130624
130624
|
}
|
|
130625
|
+
function getLogPrefix(type) {
|
|
130626
|
+
if ('true' === process.env.EXTENSION_AUTHOR_MODE) {
|
|
130627
|
+
const base = 'error' === type ? 'ERROR Author says' : '►►► Author says';
|
|
130628
|
+
return pintor__rspack_import_3_default().brightMagenta(base);
|
|
130629
|
+
}
|
|
130630
|
+
return 'error' === type ? pintor__rspack_import_3_default().red('ERROR') : pintor__rspack_import_3_default().gray('►►►');
|
|
130631
|
+
}
|
|
130625
130632
|
async function resolvePackageManager() {
|
|
130626
130633
|
const envPm = getPackageManagerFromEnv();
|
|
130627
130634
|
if (envPm) return envPm;
|
|
@@ -130645,7 +130652,7 @@ var __webpack_modules__ = {
|
|
|
130645
130652
|
}
|
|
130646
130653
|
function formatToolingLabel(integrations, fallback) {
|
|
130647
130654
|
const list = integrations && integrations.length > 0 ? integrations.join('/') : fallback;
|
|
130648
|
-
return
|
|
130655
|
+
return `${getLogPrefix('info')} Setting up ${list} tooling...`;
|
|
130649
130656
|
}
|
|
130650
130657
|
async function installOptionalDependencies(integration, dependencies) {
|
|
130651
130658
|
if (!dependencies.length) return;
|
|
@@ -130667,7 +130674,7 @@ var __webpack_modules__ = {
|
|
|
130667
130674
|
console.log(`${pintor__rspack_import_3_default().brightMagenta('►►► Author says')} ${integration} tooling ready.`);
|
|
130668
130675
|
}
|
|
130669
130676
|
} catch (error) {
|
|
130670
|
-
console.error(
|
|
130677
|
+
console.error(`${getLogPrefix('error')} [${integration}] Failed to install dependencies.\n${pintor__rspack_import_3_default().red(String(error?.message || error))}`);
|
|
130671
130678
|
}
|
|
130672
130679
|
}
|
|
130673
130680
|
async function installOptionalDependenciesBatch(integration, dependencies, integrations) {
|
|
@@ -130688,7 +130695,7 @@ var __webpack_modules__ = {
|
|
|
130688
130695
|
console.log(`${pintor__rspack_import_3_default().brightMagenta('►►► Author says')} ${integration} tooling ready.`);
|
|
130689
130696
|
}
|
|
130690
130697
|
} catch (error) {
|
|
130691
|
-
console.error(
|
|
130698
|
+
console.error(`${getLogPrefix('error')} [${integration}] Failed to install dependencies.\n${pintor__rspack_import_3_default().red(String(error?.message || error))}`);
|
|
130692
130699
|
}
|
|
130693
130700
|
}
|
|
130694
130701
|
function hasDependency(projectPath, dependency) {
|
|
@@ -130758,7 +130765,7 @@ var __webpack_modules__ = {
|
|
|
130758
130765
|
return `${pintor__rspack_import_0_default().gray('►►►')} Using ${pintor__rspack_import_0_default().brightBlue(name)}...`;
|
|
130759
130766
|
}
|
|
130760
130767
|
function youAreAllSet(name) {
|
|
130761
|
-
return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed
|
|
130768
|
+
return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed.`;
|
|
130762
130769
|
}
|
|
130763
130770
|
function missingSassDependency() {
|
|
130764
130771
|
const prefix = pintor__rspack_import_0_default().red('►►►');
|
|
@@ -131204,7 +131211,7 @@ var __webpack_modules__ = {
|
|
|
131204
131211
|
return `${pintor__rspack_import_0_default().gray('►►►')} Using ${pintor__rspack_import_0_default().brightBlue(name)}...`;
|
|
131205
131212
|
}
|
|
131206
131213
|
function youAreAllSet(name) {
|
|
131207
|
-
return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed
|
|
131214
|
+
return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed.`;
|
|
131208
131215
|
}
|
|
131209
131216
|
function optionalDepsReady(integrations) {
|
|
131210
131217
|
const list = integrations.length > 0 ? integrations.map((name)=>pintor__rspack_import_0_default().yellow(name)).join(', ') : pintor__rspack_import_0_default().gray('optional');
|
|
@@ -132096,6 +132103,7 @@ var __webpack_modules__ = {
|
|
|
132096
132103
|
I: ()=>buildWebpack,
|
|
132097
132104
|
IV: ()=>packagingSourceFiles,
|
|
132098
132105
|
Ke: ()=>installingDependenciesFailed,
|
|
132106
|
+
Px: ()=>buildDependenciesInstallError,
|
|
132099
132107
|
RB: ()=>cantInstallDependencies,
|
|
132100
132108
|
SG: ()=>debugDirs,
|
|
132101
132109
|
Ud: ()=>downloadingText,
|
|
@@ -132115,7 +132123,10 @@ var __webpack_modules__ = {
|
|
|
132115
132123
|
ng: ()=>writingTypeDefinitions,
|
|
132116
132124
|
tQ: ()=>fetchingProjectPath,
|
|
132117
132125
|
tc: ()=>invalidRemoteZip,
|
|
132126
|
+
um: ()=>buildDependenciesInstallFailed,
|
|
132118
132127
|
v_: ()=>writingTypeDefinitionsError,
|
|
132128
|
+
vo: ()=>buildDependenciesManualInstall,
|
|
132129
|
+
xK: ()=>installingBuildDependencies,
|
|
132119
132130
|
yp: ()=>noCompanionExtensionsResolved,
|
|
132120
132131
|
zM: ()=>unpackagedSuccessfully
|
|
132121
132132
|
});
|
|
@@ -132178,6 +132189,20 @@ var __webpack_modules__ = {
|
|
|
132178
132189
|
function installingRequiredDependencies() {
|
|
132179
132190
|
return `${getLoggingPrefix('info')} Installing required dependencies...`;
|
|
132180
132191
|
}
|
|
132192
|
+
function installingBuildDependencies(dependencies) {
|
|
132193
|
+
const list = dependencies.map((dep)=>pintor__rspack_import_2_default().gray(dep)).join(', ');
|
|
132194
|
+
return `${getLoggingPrefix('info')} Installing build dependencies: ${list}`;
|
|
132195
|
+
}
|
|
132196
|
+
function buildDependenciesInstallFailed(command, args, code) {
|
|
132197
|
+
return `${getLoggingPrefix('error')} Failed to install build dependencies.\n${pintor__rspack_import_2_default().gray(command)} ${pintor__rspack_import_2_default().gray(args.join(' '))}\n${pintor__rspack_import_2_default().red(`exit code ${pintor__rspack_import_2_default().gray(String(code))}`)}`;
|
|
132198
|
+
}
|
|
132199
|
+
function buildDependenciesInstallError(error) {
|
|
132200
|
+
return `${getLoggingPrefix('error')} Error installing build dependencies.\n${pintor__rspack_import_2_default().red(String(error?.message || error))}`;
|
|
132201
|
+
}
|
|
132202
|
+
function buildDependenciesManualInstall(dependencies, dependenciesMap) {
|
|
132203
|
+
const list = dependencies.map((dep)=>`- ${pintor__rspack_import_2_default().gray(`${dep}@${dependenciesMap[dep]}`)}`).join('\n');
|
|
132204
|
+
return `${getLoggingPrefix('warn')} Please install the following build dependencies manually:\n${list}`;
|
|
132205
|
+
}
|
|
132181
132206
|
function dependenciesInstalledRunAgain() {
|
|
132182
132207
|
return `${getLoggingPrefix('success')} Dependencies installed. Run the command again to proceed.`;
|
|
132183
132208
|
}
|
|
@@ -132587,7 +132612,7 @@ var __webpack_modules__ = {
|
|
|
132587
132612
|
},
|
|
132588
132613
|
"./package.json" (module) {
|
|
132589
132614
|
"use strict";
|
|
132590
|
-
module.exports = JSON.parse('{"rE":"3.2.0-next.
|
|
132615
|
+
module.exports = JSON.parse('{"rE":"3.2.0-next.3","El":{"@rspack/core":"^1.7.2","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^5.0.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","firefox-location2":"3.0.0","go-git-it":"^5.0.3","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.19.0"}}');
|
|
132591
132616
|
}
|
|
132592
132617
|
};
|
|
132593
132618
|
var __webpack_module_cache__ = {};
|
|
@@ -132985,22 +133010,22 @@ var __webpack_exports__ = {};
|
|
|
132985
133010
|
const command = await getInstallCommand(packageRoot);
|
|
132986
133011
|
const installArgs = getInstallArgs(command, dependencies, dependenciesMap);
|
|
132987
133012
|
const stdio = 'true' === process.env.EXTENSION_AUTHOR_MODE ? 'inherit' : 'ignore';
|
|
132988
|
-
console.log(
|
|
133013
|
+
console.log(messages.xK(dependencies));
|
|
132989
133014
|
const child = (0, external_cross_spawn_namespaceObject.spawn)(command, installArgs, {
|
|
132990
133015
|
stdio
|
|
132991
133016
|
});
|
|
132992
133017
|
await new Promise((resolve, reject)=>{
|
|
132993
133018
|
child.on('close', (code)=>{
|
|
132994
|
-
if (0 !== code) reject(new Error(
|
|
133019
|
+
if (0 !== code) reject(new Error(messages.um(command, installArgs, code)));
|
|
132995
133020
|
else resolve();
|
|
132996
133021
|
});
|
|
132997
133022
|
child.on('error', (error)=>{
|
|
132998
|
-
reject(
|
|
133023
|
+
reject(error);
|
|
132999
133024
|
});
|
|
133000
133025
|
});
|
|
133001
133026
|
} catch (error) {
|
|
133002
|
-
console.error(
|
|
133003
|
-
console.error(
|
|
133027
|
+
console.error(messages.Px(error));
|
|
133028
|
+
console.error(messages.vo(dependencies, dependenciesMap));
|
|
133004
133029
|
process.exit(1);
|
|
133005
133030
|
} finally{
|
|
133006
133031
|
process.chdir(originalDirectory);
|
|
@@ -133300,19 +133325,14 @@ var __webpack_exports__ = {};
|
|
|
133300
133325
|
const shouldExitOnError = (buildOptions?.exitOnError ?? true) && !isVitest;
|
|
133301
133326
|
const browser = (0, paths.YN)(buildOptions?.browser || 'chrome', buildOptions?.chromiumBinary, buildOptions?.geckoBinary || buildOptions?.firefoxBinary);
|
|
133302
133327
|
const { manifestDir, packageJsonDir } = (0, paths.fu)(projectStructure);
|
|
133328
|
+
const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
|
|
133303
133329
|
try {
|
|
133304
|
-
const
|
|
133305
|
-
|
|
133306
|
-
|
|
133330
|
+
const shouldInstallProjectDeps = !isAuthor || buildOptions?.install !== false;
|
|
133331
|
+
await ensureProjectReady(projectStructure, 'production', {
|
|
133332
|
+
skipProjectInstall: isVitest || !projectStructure.packageJsonPath || !shouldInstallProjectDeps,
|
|
133333
|
+
exitOnInstall: false,
|
|
133334
|
+
showRunAgainMessage: false
|
|
133307
133335
|
});
|
|
133308
|
-
if (depsResult.installed) return {
|
|
133309
|
-
browser,
|
|
133310
|
-
total_assets: 0,
|
|
133311
|
-
total_bytes: 0,
|
|
133312
|
-
largest_asset_bytes: 0,
|
|
133313
|
-
warnings_count: 0,
|
|
133314
|
-
errors_count: 0
|
|
133315
|
-
};
|
|
133316
133336
|
const [{ rspack }, { merge }, { handleStatsErrors }, { default: webpackConfig }] = await Promise.all([
|
|
133317
133337
|
import("@rspack/core"),
|
|
133318
133338
|
import("webpack-merge"),
|
|
@@ -133322,7 +133342,7 @@ var __webpack_exports__ = {};
|
|
|
133322
133342
|
__webpack_require__.e("547")
|
|
133323
133343
|
]).then(__webpack_require__.bind(__webpack_require__, "./webpack/webpack-config.ts"))
|
|
133324
133344
|
]);
|
|
133325
|
-
const debug =
|
|
133345
|
+
const debug = isAuthor;
|
|
133326
133346
|
if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, manifestDir);
|
|
133327
133347
|
const commandConfig = await (0, config_loader.eY)(manifestDir, 'build');
|
|
133328
133348
|
const distPath = (0, paths.q4)(packageJsonDir, browser);
|
|
@@ -133420,13 +133440,15 @@ var __webpack_exports__ = {};
|
|
|
133420
133440
|
async function extensionDev(pathOrRemoteUrl, devOptions) {
|
|
133421
133441
|
const projectStructure = await getProjectStructure(pathOrRemoteUrl);
|
|
133422
133442
|
try {
|
|
133423
|
-
const
|
|
133443
|
+
const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
|
|
133444
|
+
const debug = isAuthor;
|
|
133424
133445
|
const { manifestDir, packageJsonDir } = (0, paths.fu)(projectStructure);
|
|
133425
|
-
const
|
|
133426
|
-
|
|
133427
|
-
|
|
133446
|
+
const shouldInstallProjectDeps = !isAuthor || false !== devOptions.install;
|
|
133447
|
+
await ensureProjectReady(projectStructure, 'development', {
|
|
133448
|
+
skipProjectInstall: !projectStructure.packageJsonPath || !shouldInstallProjectDeps,
|
|
133449
|
+
exitOnInstall: false,
|
|
133450
|
+
showRunAgainMessage: false
|
|
133428
133451
|
});
|
|
133429
|
-
if (depsResult.installed) return;
|
|
133430
133452
|
if ((0, typescript.eE)(manifestDir)) await generateExtensionTypes(manifestDir, packageJsonDir);
|
|
133431
133453
|
if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, manifestDir);
|
|
133432
133454
|
const browser = (0, paths.YN)(devOptions.browser || 'chrome', devOptions.chromiumBinary, devOptions.geckoBinary || devOptions.firefoxBinary);
|
|
@@ -133591,12 +133613,14 @@ var __webpack_exports__ = {};
|
|
|
133591
133613
|
async function extensionStart(pathOrRemoteUrl, startOptions) {
|
|
133592
133614
|
const projectStructure = await getProjectStructure(pathOrRemoteUrl);
|
|
133593
133615
|
try {
|
|
133594
|
-
const
|
|
133595
|
-
const
|
|
133596
|
-
|
|
133597
|
-
|
|
133616
|
+
const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
|
|
133617
|
+
const debug = isAuthor;
|
|
133618
|
+
const shouldInstallProjectDeps = !isAuthor || false !== startOptions.install;
|
|
133619
|
+
await ensureProjectReady(projectStructure, 'development', {
|
|
133620
|
+
skipProjectInstall: !projectStructure.packageJsonPath || !shouldInstallProjectDeps,
|
|
133621
|
+
exitOnInstall: false,
|
|
133622
|
+
showRunAgainMessage: false
|
|
133598
133623
|
});
|
|
133599
|
-
if (depsResult.installed) return;
|
|
133600
133624
|
const browser = (0, paths.YN)(startOptions.browser || 'chrome', startOptions.chromiumBinary, startOptions.geckoBinary || startOptions.firefoxBinary);
|
|
133601
133625
|
const { manifestDir, packageJsonDir } = (0, paths.fu)(projectStructure);
|
|
133602
133626
|
const commandConfig = await (0, config_loader.eY)(packageJsonDir, 'start');
|
package/package.json
CHANGED