gridsum-vue3-pc 1.1.0 → 1.1.1

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.
@@ -433,16 +433,6 @@ async function main() {
433
433
  autoInstall = result;
434
434
  }
435
435
 
436
- let autoStart = argv['auto-start'];
437
- if (autoStart === undefined && isInteractive && autoInstall) {
438
- const result = await prompts.confirm({
439
- message: 'Start dev server now?',
440
- initialValue: false,
441
- });
442
- if (prompts.isCancel(result)) return cancel();
443
- autoStart = result;
444
- }
445
-
446
436
  if (autoInstall && !process.env._CREATE_VUE3_PC_TEST) {
447
437
  process.stdout.write(`\r\x1b[K${pc.dim('Installing dependencies...')}\n`);
448
438
  try {
@@ -456,6 +446,16 @@ async function main() {
456
446
  }
457
447
  }
458
448
 
449
+ let autoStart = argv['auto-start'];
450
+ if (autoStart === undefined && isInteractive && autoInstall) {
451
+ const result = await prompts.confirm({
452
+ message: 'Start dev server now?',
453
+ initialValue: false,
454
+ });
455
+ if (prompts.isCancel(result)) return cancel();
456
+ autoStart = result;
457
+ }
458
+
459
459
  if (autoStart) {
460
460
  prompts.log.step(`Starting dev server... (press ${pc.bold('Ctrl+C')} to stop)`);
461
461
  runCommand(getRunCommand(pkgManager, 'dev'), { cwd: root });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridsum-vue3-pc",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Gridsum Vue3 Vite PC Template Generator - 快速生成基于 Vue3 + Vite + TypeScript 的企业级 PC 端项目",
5
5
  "type": "module",
6
6
  "sideEffects": false,