We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad71494 commit 085a621Copy full SHA for 085a621
packages/create-vite/index.js
@@ -3,7 +3,9 @@
3
// @ts-check
4
const fs = require('fs')
5
const path = require('path')
6
-const argv = require('minimist')(process.argv.slice(2))
+// Avoids autoconversion to number of the project name by defining that the args
7
+// non associated with an option ( _ ) needs to be parsed as a string. See #4606
8
+const argv = require('minimist')(process.argv.slice(2), { string: ['_'] })
9
// eslint-disable-next-line node/no-restricted-require
10
const prompts = require('prompts')
11
const {
0 commit comments