Skip to content

Commit

Permalink
fix(create-project): local template handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Sep 11, 2021
1 parent 0e71b7f commit 4f8d644
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/services/project-templates-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export class ProjectTemplatesService implements IProjectTemplatesService {
return defaultVersion;
}

if (this.$fs.exists(templateName)) {
return "";
}

try {
const cliMajorVersion = semver.parse(
semver.coerce(this.$staticConfig.version)
Expand Down

0 comments on commit 4f8d644

Please sign in to comment.