From 79ddb39fb294840cb63fa59b40fc066412db5962 Mon Sep 17 00:00:00 2001 From: chenpeng991105 Date: Fri, 11 Feb 2022 13:46:16 +0800 Subject: [PATCH] fix: fix packageName when npm init vue set valid targetDir --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index eb766ff34..a06e9a16d 100755 --- a/index.js +++ b/index.js @@ -227,7 +227,7 @@ async function init() { // so we still have to assign the default values here const { projectName, - packageName = projectName, + packageName = projectName || defaultProjectName, shouldOverwrite = argv.force, needsJsx = argv.jsx, needsTypeScript = argv.typescript,