create-izi-noir 0.2.7 → 0.2.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.
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2636,7 +2636,15 @@ Error: Directory "${projectOptions.projectName}" already exists and is not empty
|
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
2638
|
if (!projectOptions.skipInstall) {
|
|
2639
|
-
|
|
2639
|
+
process.stdout.write("\x1B[?25l");
|
|
2640
|
+
const frames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
2641
|
+
let i = 0;
|
|
2642
|
+
const startSpinner = setInterval(() => {
|
|
2643
|
+
process.stdout.write(`\r${pc3.cyan(frames[i++ % frames.length])} ${pc3.dim("Preparing npm install...")}`);
|
|
2644
|
+
}, 80);
|
|
2645
|
+
await new Promise((r) => setTimeout(r, 600));
|
|
2646
|
+
clearInterval(startSpinner);
|
|
2647
|
+
process.stdout.write("\r\x1B[K");
|
|
2640
2648
|
const installProgress = createInstallProgress();
|
|
2641
2649
|
installProgress.start();
|
|
2642
2650
|
try {
|