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.
- package/bin/create-vue3-pc.mjs +4 -8
- package/package.json +1 -1
package/bin/create-vue3-pc.mjs
CHANGED
|
@@ -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
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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) {
|