extension-develop 3.3.3-next.5 → 3.3.3-next.7
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.js +36 -22
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -130882,7 +130882,23 @@ var __webpack_modules__ = {
|
|
|
130882
130882
|
execPath
|
|
130883
130883
|
};
|
|
130884
130884
|
}
|
|
130885
|
-
|
|
130885
|
+
if (commandExists('corepack')) {
|
|
130886
|
+
const fallbackChain = [
|
|
130887
|
+
'pnpm',
|
|
130888
|
+
'yarn',
|
|
130889
|
+
'npm'
|
|
130890
|
+
];
|
|
130891
|
+
return {
|
|
130892
|
+
name: fallbackChain[0],
|
|
130893
|
+
runnerCommand: 'corepack',
|
|
130894
|
+
runnerArgs: [
|
|
130895
|
+
fallbackChain[0]
|
|
130896
|
+
]
|
|
130897
|
+
};
|
|
130898
|
+
}
|
|
130899
|
+
return {
|
|
130900
|
+
name: 'npm'
|
|
130901
|
+
};
|
|
130886
130902
|
}
|
|
130887
130903
|
function commandExists(command) {
|
|
130888
130904
|
try {
|
|
@@ -130914,7 +130930,14 @@ var __webpack_modules__ = {
|
|
|
130914
130930
|
return;
|
|
130915
130931
|
}
|
|
130916
130932
|
}
|
|
130917
|
-
function maybeWrapExecPath(command, pmName, execPath) {
|
|
130933
|
+
function maybeWrapExecPath(command, pmName, execPath, runnerCommand, runnerArgs) {
|
|
130934
|
+
if (runnerCommand) return {
|
|
130935
|
+
command: runnerCommand,
|
|
130936
|
+
args: [
|
|
130937
|
+
...runnerArgs || [],
|
|
130938
|
+
...command.args
|
|
130939
|
+
]
|
|
130940
|
+
};
|
|
130918
130941
|
if (!execPath) return command;
|
|
130919
130942
|
if (commandExists(pmName)) return command;
|
|
130920
130943
|
return {
|
|
@@ -130937,7 +130960,7 @@ var __webpack_modules__ = {
|
|
|
130937
130960
|
installBaseDir,
|
|
130938
130961
|
'--optional'
|
|
130939
130962
|
]
|
|
130940
|
-
}, pmName, pm.execPath);
|
|
130963
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
130941
130964
|
if ('npm' === pmName || isFromNpx()) return maybeWrapExecPath({
|
|
130942
130965
|
command: 'npm',
|
|
130943
130966
|
args: [
|
|
@@ -130948,7 +130971,7 @@ var __webpack_modules__ = {
|
|
|
130948
130971
|
installBaseDir,
|
|
130949
130972
|
'--save-optional'
|
|
130950
130973
|
]
|
|
130951
|
-
}, pmName, pm.execPath);
|
|
130974
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
130952
130975
|
if ('pnpm' === pmName || isFromPnpx()) return maybeWrapExecPath({
|
|
130953
130976
|
command: 'pnpm',
|
|
130954
130977
|
args: [
|
|
@@ -130959,7 +130982,7 @@ var __webpack_modules__ = {
|
|
|
130959
130982
|
'--save-optional',
|
|
130960
130983
|
'--silent'
|
|
130961
130984
|
]
|
|
130962
|
-
}, pmName, pm.execPath);
|
|
130985
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
130963
130986
|
if ('bun' === pmName) return maybeWrapExecPath({
|
|
130964
130987
|
command: 'bun',
|
|
130965
130988
|
args: [
|
|
@@ -130969,7 +130992,7 @@ var __webpack_modules__ = {
|
|
|
130969
130992
|
installBaseDir,
|
|
130970
130993
|
'--optional'
|
|
130971
130994
|
]
|
|
130972
|
-
}, pmName, pm.execPath);
|
|
130995
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
130973
130996
|
const fallback = pmName || 'npm';
|
|
130974
130997
|
return maybeWrapExecPath({
|
|
130975
130998
|
command: fallback,
|
|
@@ -130981,7 +131004,7 @@ var __webpack_modules__ = {
|
|
|
130981
131004
|
installBaseDir,
|
|
130982
131005
|
'--optional'
|
|
130983
131006
|
]
|
|
130984
|
-
}, pmName, pm.execPath);
|
|
131007
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
130985
131008
|
}
|
|
130986
131009
|
function getRootInstallCommand(pm) {
|
|
130987
131010
|
const pmName = pm.name;
|
|
@@ -130991,34 +131014,34 @@ var __webpack_modules__ = {
|
|
|
130991
131014
|
'install',
|
|
130992
131015
|
'--silent'
|
|
130993
131016
|
]
|
|
130994
|
-
}, pmName, pm.execPath);
|
|
131017
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
130995
131018
|
if ('npm' === pmName || isFromNpx()) return maybeWrapExecPath({
|
|
130996
131019
|
command: 'npm',
|
|
130997
131020
|
args: [
|
|
130998
131021
|
'install',
|
|
130999
131022
|
'--silent'
|
|
131000
131023
|
]
|
|
131001
|
-
}, pmName, pm.execPath);
|
|
131024
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
131002
131025
|
if ('pnpm' === pmName || isFromPnpx()) return maybeWrapExecPath({
|
|
131003
131026
|
command: 'pnpm',
|
|
131004
131027
|
args: [
|
|
131005
131028
|
'install',
|
|
131006
131029
|
'--silent'
|
|
131007
131030
|
]
|
|
131008
|
-
}, pmName, pm.execPath);
|
|
131031
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
131009
131032
|
if ('bun' === pmName) return maybeWrapExecPath({
|
|
131010
131033
|
command: 'bun',
|
|
131011
131034
|
args: [
|
|
131012
131035
|
'install'
|
|
131013
131036
|
]
|
|
131014
|
-
}, pmName, pm.execPath);
|
|
131037
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
131015
131038
|
return maybeWrapExecPath({
|
|
131016
131039
|
command: pmName || 'npm',
|
|
131017
131040
|
args: [
|
|
131018
131041
|
'install',
|
|
131019
131042
|
'--silent'
|
|
131020
131043
|
]
|
|
131021
|
-
}, pmName, pm.execPath);
|
|
131044
|
+
}, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
|
|
131022
131045
|
}
|
|
131023
131046
|
async function installOptionalDependencies(integration, dependencies) {
|
|
131024
131047
|
if (!dependencies.length) return;
|
|
@@ -131132,7 +131155,6 @@ var __webpack_modules__ = {
|
|
|
131132
131155
|
DX: ()=>optionalInstallFailed,
|
|
131133
131156
|
Jv: ()=>youAreAllSet,
|
|
131134
131157
|
Se: ()=>missingSassDependency,
|
|
131135
|
-
Vo: ()=>optionalInstallManagerMissing,
|
|
131136
131158
|
_j: ()=>optionalToolingSetup,
|
|
131137
131159
|
cr: ()=>optionalToolingRootInstall,
|
|
131138
131160
|
eG: ()=>optionalInstallRootMissing,
|
|
@@ -131180,14 +131202,6 @@ var __webpack_modules__ = {
|
|
|
131180
131202
|
'Reinstall Extension.js or run the command from a valid Extension.js installation.'
|
|
131181
131203
|
].join('\n');
|
|
131182
131204
|
}
|
|
131183
|
-
function optionalInstallManagerMissing(integration) {
|
|
131184
|
-
const prefix = pintor__rspack_import_0_default().red('ERROR');
|
|
131185
|
-
return [
|
|
131186
|
-
`${prefix} [${integration}] No supported package manager found in PATH.`,
|
|
131187
|
-
'Install pnpm, npm, or yarn and retry.',
|
|
131188
|
-
'If you use pnpm, ensure it is available in your environment (e.g. corepack or PATH).'
|
|
131189
|
-
].join('\n');
|
|
131190
|
-
}
|
|
131191
131205
|
function missingSassDependency() {
|
|
131192
131206
|
const prefix = pintor__rspack_import_0_default().red('►►►');
|
|
131193
131207
|
return [
|
|
@@ -133095,7 +133109,7 @@ var __webpack_modules__ = {
|
|
|
133095
133109
|
},
|
|
133096
133110
|
"./package.json" (module) {
|
|
133097
133111
|
"use strict";
|
|
133098
|
-
module.exports = JSON.parse('{"rE":"3.3.3-next.
|
|
133112
|
+
module.exports = JSON.parse('{"rE":"3.3.3-next.7","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","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"}}');
|
|
133099
133113
|
}
|
|
133100
133114
|
};
|
|
133101
133115
|
var __webpack_module_cache__ = {};
|
package/package.json
CHANGED