Skip to content

Commit

Permalink
feat: add comment for helping an user to understand the second argume…
Browse files Browse the repository at this point in the history
…nt of minimist
  • Loading branch information
task4233 committed Aug 16, 2021
1 parent 98af613 commit c596a24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/create-vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// @ts-check
const fs = require('fs')
const path = require('path')
// For solving the problem failed to create a project with number-only argument,
// the second argument of "minimist" is added to convert it to string type.
const argv = require('minimist')(process.argv.slice(2), { string: ['_'] })
// eslint-disable-next-line node/no-restricted-require
const prompts = require('prompts')
Expand Down

0 comments on commit c596a24

Please sign in to comment.