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.
- package/dist/lib/progress.d.ts +1 -0
- package/dist/module.cjs +12 -5
- package/package.json +1 -1
package/dist/lib/progress.d.ts
CHANGED
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)
|
|
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 {
|