Skip to content

Commit

Permalink
fix dirname default for “name” within create cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Apr 28, 2018
1 parent 9c04eba commit 84432d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/lib/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = async function (repo, dest, argv) {
}

// Use `--name` value or `dest` dir's name
argv.name = argv.name || argv.dest;
argv.name = argv.name || dest;

let { errors } = isValidName(argv.name);
if (errors) {
Expand Down

0 comments on commit 84432d7

Please sign in to comment.