Skip to content

Commit be85222

Browse files
committed
fix the --template option
the --template option should be able to take name@version as parameter and successfully install the package if such exists
1 parent 2fec565 commit be85222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/project-templates-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ProjectTemplatesService implements IProjectTemplatesService {
2626
realTemplatePath = this.prepareNativeScriptTemplate(constants.RESERVED_TEMPLATE_NAMES[name], version, projectDir).wait();
2727
} else {
2828
// Use the original template name, specified by user as it may be case-sensitive.
29-
realTemplatePath = this.prepareNativeScriptTemplate(originalTemplateName, version, projectDir).wait();
29+
realTemplatePath = this.prepareNativeScriptTemplate(name, version, projectDir).wait();
3030
}
3131
} else {
3232
realTemplatePath = this.prepareNativeScriptTemplate(constants.RESERVED_TEMPLATE_NAMES["default"], null/*version*/, projectDir).wait();

0 commit comments

Comments
 (0)