From f8640830f81d0830e36694aa685aedff5e93626c Mon Sep 17 00:00:00 2001 From: chenpeng991105 Date: Fri, 11 Feb 2022 16:08:08 +0800 Subject: [PATCH] fix: fix packageName when npm init vue set valid targetDir (#51) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index eb766ff3..a06e9a16 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, -- 2.39.5