extension-develop 3.3.3-next.5 → 3.3.3-next.6

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.
Files changed (2) hide show
  1. package/dist/module.js +33 -12
  2. package/package.json +1 -1
package/dist/module.js CHANGED
@@ -130882,6 +130882,20 @@ var __webpack_modules__ = {
130882
130882
  execPath
130883
130883
  };
130884
130884
  }
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
+ }
130885
130899
  throw new Error(_messages__rspack_import_3.Vo('Optional'));
130886
130900
  }
130887
130901
  function commandExists(command) {
@@ -130914,7 +130928,14 @@ var __webpack_modules__ = {
130914
130928
  return;
130915
130929
  }
130916
130930
  }
130917
- function maybeWrapExecPath(command, pmName, execPath) {
130931
+ function maybeWrapExecPath(command, pmName, execPath, runnerCommand, runnerArgs) {
130932
+ if (runnerCommand) return {
130933
+ command: runnerCommand,
130934
+ args: [
130935
+ ...runnerArgs || [],
130936
+ ...command.args
130937
+ ]
130938
+ };
130918
130939
  if (!execPath) return command;
130919
130940
  if (commandExists(pmName)) return command;
130920
130941
  return {
@@ -130937,7 +130958,7 @@ var __webpack_modules__ = {
130937
130958
  installBaseDir,
130938
130959
  '--optional'
130939
130960
  ]
130940
- }, pmName, pm.execPath);
130961
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
130941
130962
  if ('npm' === pmName || isFromNpx()) return maybeWrapExecPath({
130942
130963
  command: 'npm',
130943
130964
  args: [
@@ -130948,7 +130969,7 @@ var __webpack_modules__ = {
130948
130969
  installBaseDir,
130949
130970
  '--save-optional'
130950
130971
  ]
130951
- }, pmName, pm.execPath);
130972
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
130952
130973
  if ('pnpm' === pmName || isFromPnpx()) return maybeWrapExecPath({
130953
130974
  command: 'pnpm',
130954
130975
  args: [
@@ -130959,7 +130980,7 @@ var __webpack_modules__ = {
130959
130980
  '--save-optional',
130960
130981
  '--silent'
130961
130982
  ]
130962
- }, pmName, pm.execPath);
130983
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
130963
130984
  if ('bun' === pmName) return maybeWrapExecPath({
130964
130985
  command: 'bun',
130965
130986
  args: [
@@ -130969,7 +130990,7 @@ var __webpack_modules__ = {
130969
130990
  installBaseDir,
130970
130991
  '--optional'
130971
130992
  ]
130972
- }, pmName, pm.execPath);
130993
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
130973
130994
  const fallback = pmName || 'npm';
130974
130995
  return maybeWrapExecPath({
130975
130996
  command: fallback,
@@ -130981,7 +131002,7 @@ var __webpack_modules__ = {
130981
131002
  installBaseDir,
130982
131003
  '--optional'
130983
131004
  ]
130984
- }, pmName, pm.execPath);
131005
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
130985
131006
  }
130986
131007
  function getRootInstallCommand(pm) {
130987
131008
  const pmName = pm.name;
@@ -130991,34 +131012,34 @@ var __webpack_modules__ = {
130991
131012
  'install',
130992
131013
  '--silent'
130993
131014
  ]
130994
- }, pmName, pm.execPath);
131015
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
130995
131016
  if ('npm' === pmName || isFromNpx()) return maybeWrapExecPath({
130996
131017
  command: 'npm',
130997
131018
  args: [
130998
131019
  'install',
130999
131020
  '--silent'
131000
131021
  ]
131001
- }, pmName, pm.execPath);
131022
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
131002
131023
  if ('pnpm' === pmName || isFromPnpx()) return maybeWrapExecPath({
131003
131024
  command: 'pnpm',
131004
131025
  args: [
131005
131026
  'install',
131006
131027
  '--silent'
131007
131028
  ]
131008
- }, pmName, pm.execPath);
131029
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
131009
131030
  if ('bun' === pmName) return maybeWrapExecPath({
131010
131031
  command: 'bun',
131011
131032
  args: [
131012
131033
  'install'
131013
131034
  ]
131014
- }, pmName, pm.execPath);
131035
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
131015
131036
  return maybeWrapExecPath({
131016
131037
  command: pmName || 'npm',
131017
131038
  args: [
131018
131039
  'install',
131019
131040
  '--silent'
131020
131041
  ]
131021
- }, pmName, pm.execPath);
131042
+ }, pmName, pm.execPath, pm.runnerCommand, pm.runnerArgs);
131022
131043
  }
131023
131044
  async function installOptionalDependencies(integration, dependencies) {
131024
131045
  if (!dependencies.length) return;
@@ -133095,7 +133116,7 @@ var __webpack_modules__ = {
133095
133116
  },
133096
133117
  "./package.json" (module) {
133097
133118
  "use strict";
133098
- module.exports = JSON.parse('{"rE":"3.3.3-next.5","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"}}');
133119
+ module.exports = JSON.parse('{"rE":"3.3.3-next.6","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
133120
  }
133100
133121
  };
133101
133122
  var __webpack_module_cache__ = {};
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "name": "extension-develop",
25
- "version": "3.3.3-next.5",
25
+ "version": "3.3.3-next.6",
26
26
  "description": "Develop, build, preview, and package Extension.js projects.",
27
27
  "author": {
28
28
  "name": "Cezar Augusto",