gridsum-vue3-pc 1.0.1 → 1.0.3

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.
@@ -171,6 +171,7 @@ function runCommandAsync(command, options = {}) {
171
171
  ...options,
172
172
  });
173
173
 
174
+ child.stdout.on('data', () => {});
174
175
  let stderr = '';
175
176
  child.stderr.on('data', (chunk) => { stderr += chunk.toString(); });
176
177
 
@@ -481,14 +482,9 @@ async function main() {
481
482
  }
482
483
 
483
484
  if (autoInstall && !process.env._CREATE_VUE3_PC_TEST) {
484
- try {
485
- await runCommandAsync(getInstallCommand(pkgManager), { cwd: root });
486
- process.stdout.write(`\r\x1b[K${pc.green('✓')} Dependencies installed!\n`);
487
- } catch (e) {
488
- process.stdout.write(`\r\x1b[K${pc.red('✗')} Installation failed\n`);
489
- console.error(` ${pc.dim('You can retry manually:')}`);
490
- console.error(` ${pc.cyan(`cd ${targetDir} && ${pkgManager} install${pkgManager === 'npm' ? ' --legacy-peer-deps' : ''}`)}\n`);
491
- }
485
+ process.stdout.write(`\r\x1b[K${pc.dim('Installing dependencies...')}\n`);
486
+ runCommand(getInstallCommand(pkgManager), { cwd: root });
487
+ process.stdout.write(`${pc.green('✓')} Dependencies installed!\n`);
492
488
  }
493
489
 
494
490
  if (!argv['no-git'] && !process.env._CREATE_VUE3_PC_TEST) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridsum-vue3-pc",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Gridsum Vue3 Vite PC Template Generator - 快速生成基于 Vue3 + Vite + TypeScript 的企业级 PC 端项目",
5
5
  "type": "module",
6
6
  "sideEffects": false,