extension-develop 3.5.0-next.13 → 3.5.0-next.15

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 +63 -84
  2. package/package.json +1 -1
package/dist/module.cjs CHANGED
@@ -130827,7 +130827,6 @@ var __webpack_modules__ = {
130827
130827
  var _messages__rspack_import_2 = __webpack_require__("./webpack/plugin-css/css-lib/messages.ts");
130828
130828
  var _webpack_lib_check_build_dependencies__rspack_import_3 = __webpack_require__("./webpack/webpack-lib/check-build-dependencies.ts");
130829
130829
  var _webpack_lib_package_manager__rspack_import_4 = __webpack_require__("./webpack/webpack-lib/package-manager.ts");
130830
- var _webpack_lib_progress__rspack_import_5 = __webpack_require__("./webpack/webpack-lib/progress.ts");
130831
130830
  function parseJsonSafe(text) {
130832
130831
  const s = text && 0xfeff === text.charCodeAt(0) ? text.slice(1) : text;
130833
130832
  return JSON.parse(s || '{}');
@@ -131068,23 +131067,15 @@ var __webpack_modules__ = {
131068
131067
  '--save-optional'
131069
131068
  ]);
131070
131069
  const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
131071
- const setupMessage = _messages__rspack_import_2._j([
131070
+ const setupMessages = _messages__rspack_import_2._j([
131072
131071
  integration
131073
131072
  ], integration, isAuthor);
131074
- const progressEnabled = !isAuthor && (0, _webpack_lib_progress__rspack_import_5.u)();
131075
- const progress = (0, _webpack_lib_progress__rspack_import_5.J)(setupMessage, {
131076
- enabled: progressEnabled
131073
+ const log = isAuthor ? console.warn : console.log;
131074
+ setupMessages.forEach((message)=>log(message));
131075
+ await execInstallWithFallback(execCommand, {
131076
+ cwd: wslContext.useWsl ? void 0 : installBaseDir,
131077
+ fallbackNpmCommand
131077
131078
  });
131078
- if (isAuthor) console.warn(setupMessage);
131079
- else if (!progressEnabled) console.log(setupMessage);
131080
- try {
131081
- await execInstallWithFallback(execCommand, {
131082
- cwd: wslContext.useWsl ? void 0 : installBaseDir,
131083
- fallbackNpmCommand
131084
- });
131085
- } finally{
131086
- progress.stop();
131087
- }
131088
131079
  await new Promise((resolve)=>setTimeout(resolve, 500));
131089
131080
  if (isAuthor) {
131090
131081
  console.log(_messages__rspack_import_2.cr(integration));
@@ -131150,21 +131141,13 @@ var __webpack_modules__ = {
131150
131141
  '--save-optional'
131151
131142
  ]);
131152
131143
  const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
131153
- const setupMessage = _messages__rspack_import_2._j(integrations, integration, isAuthor);
131154
- const progressEnabled = !isAuthor && (0, _webpack_lib_progress__rspack_import_5.u)();
131155
- const progress = (0, _webpack_lib_progress__rspack_import_5.J)(setupMessage, {
131156
- enabled: progressEnabled
131144
+ const setupMessages = _messages__rspack_import_2._j(integrations, integration, isAuthor);
131145
+ const log = isAuthor ? console.warn : console.log;
131146
+ setupMessages.forEach((message)=>log(message));
131147
+ await execInstallWithFallback(execCommand, {
131148
+ cwd: wslContext.useWsl ? void 0 : installBaseDir,
131149
+ fallbackNpmCommand
131157
131150
  });
131158
- if (isAuthor) console.warn(setupMessage);
131159
- else if (!progressEnabled) console.log(setupMessage);
131160
- try {
131161
- await execInstallWithFallback(execCommand, {
131162
- cwd: wslContext.useWsl ? void 0 : installBaseDir,
131163
- fallbackNpmCommand
131164
- });
131165
- } finally{
131166
- progress.stop();
131167
- }
131168
131151
  await new Promise((resolve)=>setTimeout(resolve, 500));
131169
131152
  if (isAuthor) {
131170
131153
  console.log(_messages__rspack_import_2.cr(integration));
@@ -131282,15 +131265,12 @@ var __webpack_modules__ = {
131282
131265
  return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed.`;
131283
131266
  }
131284
131267
  function optionalToolingSetup(integrations, fallback, isAuthor) {
131285
- const formatList = (items)=>{
131286
- if (1 === items.length) return items[0];
131287
- if (2 === items.length) return `${items[0]} and ${items[1]}`;
131288
- return `${items.slice(0, -1).join(', ')}, and ${items[items.length - 1]}`;
131289
- };
131290
- const list = integrations && integrations.length > 0 ? formatList(integrations) : fallback;
131268
+ const list = integrations && integrations.length > 0 ? integrations : [
131269
+ fallback
131270
+ ];
131291
131271
  const prefix = isAuthor ? pintor__rspack_import_0_default().brightMagenta('►►► Author says') : pintor__rspack_import_0_default().gray('►►►');
131292
131272
  const suffix = 'true' === process.env.EXTENSION_ONE_TIME_INSTALL_HINT ? ' (this is a one time operation)' : '';
131293
- return `${prefix} Installing specialized dependencies for ${list}...${suffix}`;
131273
+ return list.map((integration)=>`${prefix} Installing specialized dependencies for ${integration}...${suffix}`);
131294
131274
  }
131295
131275
  function optionalToolingRootInstall(integration) {
131296
131276
  return `${pintor__rspack_import_0_default().brightMagenta('►►► Author says')} [${integration}] Installing root dependencies for dev...`;
@@ -133399,46 +133379,6 @@ var __webpack_modules__ = {
133399
133379
  }
133400
133380
  }
133401
133381
  },
133402
- "./webpack/webpack-lib/progress.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
133403
- "use strict";
133404
- __webpack_require__.d(__webpack_exports__, {
133405
- J: ()=>startProgressBar,
133406
- u: ()=>shouldShowProgress
133407
- });
133408
- function stripAnsi(input) {
133409
- return input.replace(/\x1b\[[0-9;]*m/g, '');
133410
- }
133411
- function shouldShowProgress() {
133412
- return Boolean(process.stdout.isTTY) && !process.env.CI;
133413
- }
133414
- function startProgressBar(label, options) {
133415
- const enabled = (options?.enabled ?? true) && shouldShowProgress();
133416
- if (!enabled) return {
133417
- stop: ()=>void 0
133418
- };
133419
- const width = Math.max(10, options?.width ?? 24);
133420
- const intervalMs = Math.max(50, options?.intervalMs ?? 90);
133421
- let tick = 0;
133422
- let lastVisibleLength = 0;
133423
- const render = ()=>{
133424
- const filled = tick % (width + 1);
133425
- const empty = width - filled;
133426
- const bar = `[${'='.repeat(filled)}${' '.repeat(empty)}]`;
133427
- const line = `${label} ${bar}`;
133428
- lastVisibleLength = stripAnsi(line).length;
133429
- process.stdout.write(`\r${line}`);
133430
- tick = (tick + 1) % (width + 1);
133431
- };
133432
- render();
133433
- const timer = setInterval(render, intervalMs);
133434
- return {
133435
- stop: ()=>{
133436
- clearInterval(timer);
133437
- if (process.stdout.isTTY) process.stdout.write(`\r${' '.repeat(lastVisibleLength)}\r`);
133438
- }
133439
- };
133440
- }
133441
- },
133442
133382
  "./webpack/webpack-lib/sanitize.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
133443
133383
  "use strict";
133444
133384
  __webpack_require__.d(__webpack_exports__, {
@@ -133582,7 +133522,7 @@ var __webpack_modules__ = {
133582
133522
  },
133583
133523
  "./package.json" (module) {
133584
133524
  "use strict";
133585
- module.exports = JSON.parse('{"rE":"3.5.0-next.13","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.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"}}');
133525
+ module.exports = JSON.parse('{"rE":"3.5.0-next.15","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.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"}}');
133586
133526
  }
133587
133527
  };
133588
133528
  var __webpack_module_cache__ = {};
@@ -133897,7 +133837,42 @@ var __webpack_exports__ = {};
133897
133837
  var webpack_lib_paths = __webpack_require__("./webpack/webpack-lib/paths.ts");
133898
133838
  var check_build_dependencies = __webpack_require__("./webpack/webpack-lib/check-build-dependencies.ts");
133899
133839
  var package_manager = __webpack_require__("./webpack/webpack-lib/package-manager.ts");
133900
- var webpack_lib_progress = __webpack_require__("./webpack/webpack-lib/progress.ts");
133840
+ function stripAnsi(input) {
133841
+ return input.replace(/\x1b\[[0-9;]*m/g, '');
133842
+ }
133843
+ function shouldShowProgress() {
133844
+ return Boolean(process.stdout.isTTY) && !process.env.CI;
133845
+ }
133846
+ function startProgressBar(label, options) {
133847
+ const enabled = (options?.enabled ?? true) && shouldShowProgress();
133848
+ if (!enabled) return {
133849
+ stop: ()=>void 0
133850
+ };
133851
+ const width = Math.max(10, options?.width ?? 24);
133852
+ const intervalMs = Math.max(50, options?.intervalMs ?? 90);
133853
+ let tick = 0;
133854
+ let lastVisibleLength = 0;
133855
+ const render = ()=>{
133856
+ const filled = tick % (width + 1);
133857
+ const empty = width - filled;
133858
+ const bar = `[${'='.repeat(filled)}${' '.repeat(empty)}]`;
133859
+ const line = `${label} ${bar}`;
133860
+ lastVisibleLength = stripAnsi(line).length;
133861
+ process.stdout.write(`\r${line}`);
133862
+ tick = (tick + 1) % (width + 1);
133863
+ };
133864
+ render();
133865
+ const timer = setInterval(render, intervalMs);
133866
+ return {
133867
+ stop: ()=>{
133868
+ clearInterval(timer);
133869
+ if (process.stdout.isTTY) {
133870
+ process.stdout.write(`\r${' '.repeat(lastVisibleLength)}\r`);
133871
+ if (options?.persistLabel) process.stdout.write(`${label}\n`);
133872
+ }
133873
+ }
133874
+ };
133875
+ }
133901
133876
  function getInstallArgs(command, dependencies, dependenciesMap) {
133902
133877
  const depsWithVersions = dependencies.map((dep)=>`${dep}@${dependenciesMap[dep]}`);
133903
133878
  if ('pnpm' === command) return [
@@ -133931,9 +133906,11 @@ var __webpack_exports__ = {};
133931
133906
  const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
133932
133907
  const stdio = isAuthor ? 'inherit' : 'ignore';
133933
133908
  const progressLabel = messages.xK(dependencies);
133934
- const progressEnabled = !isAuthor && (0, webpack_lib_progress.u)();
133935
- const progress = (0, webpack_lib_progress.J)(progressLabel, {
133936
- enabled: progressEnabled
133909
+ const progressEnabled = !isAuthor && shouldShowProgress();
133910
+ const persistLabel = 'true' === process.env.EXTENSION_ONE_TIME_INSTALL_HINT;
133911
+ const progress = startProgressBar(progressLabel, {
133912
+ enabled: progressEnabled,
133913
+ persistLabel
133937
133914
  });
133938
133915
  if (!progressEnabled) console.log(progressLabel);
133939
133916
  if (isAuthor) console.warn(messages.TL('build dependencies'));
@@ -133978,9 +133955,11 @@ var __webpack_exports__ = {};
133978
133955
  });
133979
133956
  const isAuthor = 'true' === process.env.EXTENSION_AUTHOR_MODE;
133980
133957
  const stdio = isAuthor ? 'inherit' : 'ignore';
133981
- const progressEnabled = !isAuthor && (0, webpack_lib_progress.u)();
133982
- const progress = (0, webpack_lib_progress.J)(progressLabel, {
133983
- enabled: progressEnabled
133958
+ const progressEnabled = !isAuthor && shouldShowProgress();
133959
+ const persistLabel = 'true' === process.env.EXTENSION_ONE_TIME_INSTALL_HINT;
133960
+ const progress = startProgressBar(progressLabel, {
133961
+ enabled: progressEnabled,
133962
+ persistLabel
133984
133963
  });
133985
133964
  if (!progressEnabled) console.log(progressLabel);
133986
133965
  if (isAuthor) console.warn(messages.TL('project dependencies'));
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "webpack/webpack-lib/build-dependencies.json"
25
25
  ],
26
26
  "name": "extension-develop",
27
- "version": "3.5.0-next.13",
27
+ "version": "3.5.0-next.15",
28
28
  "description": "Develop, build, preview, and package Extension.js projects.",
29
29
  "author": {
30
30
  "name": "Cezar Augusto",