From: btea <2356281422@qq.com> Date: Fri, 28 Feb 2025 10:07:02 +0000 (+0800) Subject: fix: correctly set the package name value (#699) X-Git-Tag: v3.15.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=313847dd05ae5c17bd14581ae1084ec4a91be690;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: correctly set the package name value (#699) --- diff --git a/index.ts b/index.ts index 744a6670..44ca81c4 100755 --- a/index.ts +++ b/index.ts @@ -386,7 +386,7 @@ async function init() { // so we still have to assign the default values here const { projectName, - packageName = projectName ?? defaultProjectName, + packageName = projectName.trim() || defaultProjectName, shouldOverwrite = argv.force as boolean, needsJsx = argv.jsx as boolean, needsTypeScript = (argv.ts || argv.typescript) as boolean,