extension-develop 3.9.0 → 3.9.1

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.cjs +20 -25
  2. package/package.json +1 -1
package/dist/module.cjs CHANGED
@@ -131966,30 +131966,25 @@ var __webpack_modules__ = {
131966
131966
  const setupMessageWithIndex = hasIndex ? setupMessage.replace('►►► ', `►►► [${options?.index}/${options?.total}] `) : setupMessage;
131967
131967
  if (isAuthor) console.warn(setupMessageWithIndex);
131968
131968
  else console.log(setupMessageWithIndex);
131969
- for (const dependency of dependencies){
131970
- const installCommand = getOptionalInstallCommand(pm, [
131971
- dependency
131972
- ], wslContext.installDir || installBaseDir);
131973
- const execCommand = wrapCommandForWsl(installCommand, wslContext);
131974
- const fallbackNpmCommand = wslContext.useWsl ? void 0 : (0, _webpack_lib_package_manager__rspack_import_8.sX)([
131975
- '--silent',
131976
- 'install',
131977
- ...(0, _webpack_lib_optional_dependencies__rspack_import_7.ad)([
131978
- dependency
131979
- ]),
131980
- '--prefix',
131981
- installBaseDir,
131982
- '--save-optional'
131983
- ]);
131984
- await execInstallWithFallback(execCommand, {
131985
- cwd: wslContext.useWsl ? void 0 : installBaseDir,
131986
- fallbackNpmCommand,
131987
- allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== fallbackNpmCommand
131988
- });
131989
- }
131969
+ const installCommand = getOptionalInstallCommand(pm, dependencies, wslContext.installDir || installBaseDir);
131970
+ const execCommand = wrapCommandForWsl(installCommand, wslContext);
131971
+ const fallbackNpmCommand = wslContext.useWsl ? void 0 : (0, _webpack_lib_package_manager__rspack_import_8.sX)([
131972
+ '--silent',
131973
+ 'install',
131974
+ ...(0, _webpack_lib_optional_dependencies__rspack_import_7.ad)(dependencies),
131975
+ '--prefix',
131976
+ installBaseDir,
131977
+ '--save-optional'
131978
+ ]);
131979
+ await execInstallWithFallback(execCommand, {
131980
+ cwd: wslContext.useWsl ? void 0 : installBaseDir,
131981
+ fallbackNpmCommand,
131982
+ allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== fallbackNpmCommand
131983
+ });
131990
131984
  await new Promise((resolve)=>setTimeout(resolve, 500));
131991
- if (isAuthor) {
131992
- console.log(_messages__rspack_import_3.cr(integration));
131985
+ const needsRootRelink = isAuthor || dependencies.length > 1;
131986
+ if (needsRootRelink) {
131987
+ if (isAuthor) console.log(_messages__rspack_import_3.cr(integration));
131993
131988
  const rootInstall = getRootInstallCommand(pm, wslContext.useWsl ? wslContext.installDir : void 0);
131994
131989
  const rootCommand = wrapCommandForWsl(rootInstall, wslContext);
131995
131990
  const rootFallbackCommand = wslContext.useWsl ? void 0 : (0, _webpack_lib_package_manager__rspack_import_8.sX)([
@@ -132003,7 +131998,7 @@ var __webpack_modules__ = {
132003
131998
  fallbackNpmCommand: rootFallbackCommand,
132004
131999
  allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== rootFallbackCommand
132005
132000
  });
132006
- console.log(_messages__rspack_import_3.ys(integration));
132001
+ if (isAuthor) console.log(_messages__rspack_import_3.ys(integration));
132007
132002
  }
132008
132003
  return true;
132009
132004
  } catch (error) {
@@ -135464,7 +135459,7 @@ var __webpack_modules__ = {
135464
135459
  },
135465
135460
  "./package.json" (module) {
135466
135461
  "use strict";
135467
- module.exports = JSON.parse('{"rE":"3.9.0","El":{"@rspack/core":"^1.7.5","@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","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","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"}}');
135462
+ module.exports = JSON.parse('{"rE":"3.9.1","El":{"@rspack/core":"^1.7.5","@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","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","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"}}');
135468
135463
  }
135469
135464
  };
135470
135465
  var __webpack_module_cache__ = {};
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "webpack/webpack-lib/optional-dependencies.json"
26
26
  ],
27
27
  "name": "extension-develop",
28
- "version": "3.9.0",
28
+ "version": "3.9.1",
29
29
  "description": "Develop, build, preview, and package Extension.js projects.",
30
30
  "author": {
31
31
  "name": "Cezar Augusto",