Skip to content

Commit

Permalink
fix: create-vite when targetDir is a valid packageName (#4247)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer17x committed Jul 14, 2021
1 parent 0316f14 commit 02e244d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-vite/index.js
Expand Up @@ -250,7 +250,7 @@ async function init() {

const pkg = require(path.join(templateDir, `package.json`))

pkg.name = packageName
pkg.name = packageName || targetDir

write('package.json', JSON.stringify(pkg, null, 2))

Expand Down

0 comments on commit 02e244d

Please sign in to comment.