Skip to content

Commit

Permalink
fix: default folder name to skill name for ask new command. (#262)
Browse files Browse the repository at this point in the history
Co-authored-by: Joyce <[email protected]>
  • Loading branch information
kakhaUrigashvili and Joyce authored Jul 17, 2020
1 parent 62c059c commit 0e50cfe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/commands/new/wizard-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ function collectUserCreationProjectInfo(cmd, callback) {
return callback(getSkillNameErr);
}
userInput.skillName = skillName;
const suggestedProjectName = stringUtils.filterNonAlphanumeric(userInput.templateInfo.templateName)
|| stringUtils.filterNonAlphanumeric(skillName);
const suggestedProjectName = stringUtils.filterNonAlphanumeric(skillName);
ui.getProjectFolderName(suggestedProjectName, (getFolderNameErr, folderName) => {
if (getFolderNameErr) {
return callback(getFolderNameErr);
Expand Down

0 comments on commit 0e50cfe

Please sign in to comment.