extension-develop 3.2.0-next.7 → 3.2.0-next.8

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 +12 -2
  2. package/package.json +1 -1
package/dist/module.js CHANGED
@@ -132090,6 +132090,7 @@ var __webpack_modules__ = {
132090
132090
  "./webpack/webpack-lib/messages.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
132091
132091
  "use strict";
132092
132092
  __webpack_require__.d(__webpack_exports__, {
132093
+ $3: ()=>buildCommandFailed,
132093
132094
  AC: ()=>debugOutputPath,
132094
132095
  Al: ()=>runningInProduction,
132095
132096
  BT: ()=>treeWithSourceFiles,
@@ -132365,6 +132366,13 @@ var __webpack_modules__ = {
132365
132366
  function configLoadingError(configPath, error) {
132366
132367
  return `${pintor__rspack_import_2_default().red('ERROR')} ${pintor__rspack_import_2_default().brightBlue('config load failed')}\n${fmt.label('PATH')} ${fmt.val(configPath)}\n` + pintor__rspack_import_2_default().red(fmt.truncate(error, 1200));
132367
132368
  }
132369
+ function buildCommandFailed(error) {
132370
+ const message = (()=>{
132371
+ if (error instanceof Error && error.message) return error.message;
132372
+ return String(error || 'Unknown error');
132373
+ })();
132374
+ return `${getLoggingPrefix('error')} Build failed.\n${pintor__rspack_import_2_default().red(fmt.truncate(message, 1200))}`;
132375
+ }
132368
132376
  function managedDependencyConflict(duplicates, userPackageJsonPath) {
132369
132377
  const list = duplicates.map((d)=>`- ${pintor__rspack_import_2_default().yellow(d)}`).join('\n');
132370
132378
  return `${getLoggingPrefix('error')} Your project declares dependencies that are managed by ${pintor__rspack_import_2_default().blue('Extension.js')} and referenced in ${pintor__rspack_import_2_default().underline('extension.config.js')}\n${pintor__rspack_import_2_default().red('This can cause version conflicts and break the development/build process.')}\n\n${pintor__rspack_import_2_default().gray('Managed dependencies (remove these from your package.json):')}\n${list}\n\n${pintor__rspack_import_2_default().gray('PATH')} ${pintor__rspack_import_2_default().underline(userPackageJsonPath)}\nIf you need a different version, open an issue so we can consider bundling it safely.\nOperation aborted.`;
@@ -132612,7 +132620,7 @@ var __webpack_modules__ = {
132612
132620
  },
132613
132621
  "./package.json" (module) {
132614
132622
  "use strict";
132615
- module.exports = JSON.parse('{"rE":"3.2.0-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","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"}}');
132623
+ module.exports = JSON.parse('{"rE":"3.2.0-next.8","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"}}');
132616
132624
  }
132617
132625
  };
132618
132626
  var __webpack_module_cache__ = {};
@@ -133402,7 +133410,9 @@ var __webpack_exports__ = {};
133402
133410
  });
133403
133411
  return summary;
133404
133412
  } catch (error) {
133405
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.error(error);
133413
+ const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
133414
+ if (isAuthor) console.error(error);
133415
+ else console.error(messages.$3(error));
133406
133416
  if (!shouldExitOnError) throw error;
133407
133417
  process.exit(1);
133408
133418
  }
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "name": "extension-develop",
25
- "version": "3.2.0-next.7",
25
+ "version": "3.2.0-next.8",
26
26
  "description": "Develop, build, preview, and package Extension.js projects.",
27
27
  "author": {
28
28
  "name": "Cezar Augusto",