extension-create 3.5.0-next.13 → 3.5.0-next.14

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.
@@ -2,6 +2,7 @@ type ProgressOptions = {
2
2
  enabled?: boolean;
3
3
  intervalMs?: number;
4
4
  width?: number;
5
+ persistLabel?: boolean;
5
6
  };
6
7
  type ProgressHandle = {
7
8
  stop: () => void;
package/dist/module.cjs CHANGED
@@ -531,7 +531,10 @@ function startProgressBar(label, options) {
531
531
  return {
532
532
  stop: ()=>{
533
533
  clearInterval(timer);
534
- if (process.stdout.isTTY) process.stdout.write(`\r${' '.repeat(lastVisibleLength)}\r`);
534
+ if (process.stdout.isTTY) {
535
+ process.stdout.write(`\r${' '.repeat(lastVisibleLength)}\r`);
536
+ if (options?.persistLabel) process.stdout.write(`${label}\n`);
537
+ }
535
538
  }
536
539
  };
537
540
  }
@@ -651,7 +654,8 @@ async function installDependencies(projectPath, projectName) {
651
654
  const installMessage = installingDependencies();
652
655
  const progressEnabled = shouldShowProgress();
653
656
  const progress = startProgressBar(installMessage, {
654
- enabled: progressEnabled
657
+ enabled: progressEnabled,
658
+ persistLabel: true
655
659
  });
656
660
  if (!progressEnabled) console.log(installMessage);
657
661
  try {
@@ -671,7 +675,8 @@ async function installDependencies(projectPath, projectName) {
671
675
  const didUpdate = shouldRetry ? await updateExtensionDependencyTag(projectPath, projectName) : false;
672
676
  if (didUpdate) {
673
677
  const retryProgress = startProgressBar(installMessage, {
674
- enabled: progressEnabled
678
+ enabled: progressEnabled,
679
+ persistLabel: true
675
680
  });
676
681
  let retryRun;
677
682
  try {
@@ -1166,7 +1171,8 @@ async function installBuildDependencies(developRoot, plan) {
1166
1171
  const installMessage = installingBuildDependencies(plan.dependencies);
1167
1172
  const progressEnabled = shouldShowProgress();
1168
1173
  const progress = startProgressBar(installMessage, {
1169
- enabled: progressEnabled
1174
+ enabled: progressEnabled,
1175
+ persistLabel: true
1170
1176
  });
1171
1177
  if (!progressEnabled) console.log(installMessage);
1172
1178
  try {
@@ -1187,7 +1193,8 @@ async function installOptionalDependencies(developRoot, plan) {
1187
1193
  const installMessage = installingProjectIntegrations(plan.integrations);
1188
1194
  const progressEnabled = shouldShowProgress();
1189
1195
  const progress = startProgressBar(installMessage, {
1190
- enabled: progressEnabled
1196
+ enabled: progressEnabled,
1197
+ persistLabel: true
1191
1198
  });
1192
1199
  if (!progressEnabled) console.log(installMessage);
1193
1200
  try {
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "name": "extension-create",
26
- "version": "3.5.0-next.13",
26
+ "version": "3.5.0-next.14",
27
27
  "description": "The standalone extension creation engine for Extension.js",
28
28
  "author": {
29
29
  "name": "Cezar Augusto",