extension-develop 3.3.0 → 3.3.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.js +20 -4
  2. package/package.json +1 -1
package/dist/module.js CHANGED
@@ -130637,6 +130637,20 @@ var __webpack_modules__ = {
130637
130637
  if (envPm) return envPm;
130638
130638
  return 'npm';
130639
130639
  }
130640
+ function resolveDevelopInstallRoot() {
130641
+ const directRoot = (0, _webpack_lib_check_build_dependencies__rspack_import_4.w1)();
130642
+ if (directRoot) return directRoot;
130643
+ try {
130644
+ const pkgPath = require.resolve('extension-develop/package.json', {
130645
+ paths: [
130646
+ process.cwd()
130647
+ ]
130648
+ });
130649
+ return path__rspack_import_0.dirname(pkgPath);
130650
+ } catch {
130651
+ return;
130652
+ }
130653
+ }
130640
130654
  function getOptionalInstallCommand(pm, dependencies, installBaseDir) {
130641
130655
  const pmName = pm;
130642
130656
  if ('yarn' === pmName) return {
@@ -130720,7 +130734,7 @@ var __webpack_modules__ = {
130720
130734
  if (!dependencies.length) return;
130721
130735
  try {
130722
130736
  const pm = await resolvePackageManager();
130723
- const installBaseDir = (0, _webpack_lib_check_build_dependencies__rspack_import_4.w1)() || process.cwd();
130737
+ const installBaseDir = resolveDevelopInstallRoot() || process.cwd();
130724
130738
  const installCommand = getOptionalInstallCommand(pm, dependencies, installBaseDir);
130725
130739
  const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
130726
130740
  console.log(_messages__rspack_import_3._j([
@@ -130749,7 +130763,7 @@ var __webpack_modules__ = {
130749
130763
  if (!dependencies.length) return;
130750
130764
  try {
130751
130765
  const pm = await resolvePackageManager();
130752
- const installBaseDir = (0, _webpack_lib_check_build_dependencies__rspack_import_4.w1)() || process.cwd();
130766
+ const installBaseDir = resolveDevelopInstallRoot() || process.cwd();
130753
130767
  const installCommand = getOptionalInstallCommand(pm, dependencies, installBaseDir);
130754
130768
  const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
130755
130769
  console.log(_messages__rspack_import_3._j(integrations, integration, isAuthor));
@@ -132753,7 +132767,7 @@ var __webpack_modules__ = {
132753
132767
  },
132754
132768
  "./package.json" (module) {
132755
132769
  "use strict";
132756
- module.exports = JSON.parse('{"rE":"3.3.0","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"}}');
132770
+ module.exports = JSON.parse('{"rE":"3.3.1","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"}}');
132757
132771
  }
132758
132772
  };
132759
132773
  var __webpack_module_cache__ = {};
@@ -133416,7 +133430,9 @@ var __webpack_exports__ = {};
133416
133430
  usedIntegrations.push('Less');
133417
133431
  }
133418
133432
  }
133419
- if (usesPostCss && !canResolve('postcss-loader', projectPath) && !usesSass && !usesLess) {
133433
+ if (!usesPostCss || canResolve('postcss-loader', projectPath) || usesSass || usesLess) {
133434
+ if (usesPostCss) usedIntegrations.push('PostCSS');
133435
+ } else {
133420
133436
  if (!canResolve('postcss', projectPath)) missingOptionalDeps.add('postcss');
133421
133437
  missingOptionalDeps.add('postcss-loader');
133422
133438
  usedIntegrations.push('PostCSS');
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "name": "extension-develop",
25
- "version": "3.3.0",
25
+ "version": "3.3.1",
26
26
  "description": "Develop, build, preview, and package Extension.js projects.",
27
27
  "author": {
28
28
  "name": "Cezar Augusto",