@aibai/create-myvue 0.0.6 → 0.0.9
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/cli.js
CHANGED
|
@@ -293,6 +293,10 @@ async function main(projectName, options) {
|
|
|
293
293
|
await executeCommand('pnpm', args);
|
|
294
294
|
|
|
295
295
|
// 问询用户是否添加额外插件
|
|
296
|
+
if (!finalConfig.projectName) {
|
|
297
|
+
console.log('未指定项目名称,跳过插件配置...');
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
296
300
|
const projectPath = path.join(process.cwd(), finalConfig.projectName);
|
|
297
301
|
|
|
298
302
|
if (fs.existsSync(projectPath)) {
|
|
@@ -389,6 +393,8 @@ program
|
|
|
389
393
|
.option('--prettier', '添加 Prettier 用于代码格式化')
|
|
390
394
|
.option('--no-prettier', '不添加 Prettier 用于代码格式化')
|
|
391
395
|
.action((projectName, options) => {
|
|
396
|
+
console.log('projectName:', projectName);
|
|
397
|
+
console.log('options:', options);
|
|
392
398
|
main(projectName, options);
|
|
393
399
|
});
|
|
394
400
|
|
package/package.json
CHANGED
|
File without changes
|