]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: project name with only numbers should be treated as string (#203)
author永津 <96865086+luo3house@users.noreply.github.com>
Fri, 16 Dec 2022 07:17:30 +0000 (15:17 +0800)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 07:17:30 +0000 (15:17 +0800)
Fixes #201
Closes #202

index.ts

index 02c9e49b5c7e430e6e7ed52d23b6caa41363ea60..f56e87059db6dd50b451e11b408b7307ce623e45 100755 (executable)
--- a/index.ts
+++ b/index.ts
@@ -78,6 +78,7 @@ async function init() {
       'with-tests': ['tests'],
       router: ['vue-router']
     },
+    string: ['_'],
     // all arguments are treated as booleans
     boolean: true
   })