Skip to content

Commit c5f67af

Browse files
committed
refactor(cli): switch to .ejs extension
1 parent de08aa5 commit c5f67af

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

packages/cli/generators/controller/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ module.exports = class ControllerGenerator extends ArtifactGenerator {
186186
debug(`Artifact filename set to: ${this.artifactInfo.filename}`);
187187
}
188188
// renames the file
189-
let template = 'controller-template.ts.template';
189+
let template = 'controller-template.ts.ejs';
190190
switch (this.artifactInfo.controllerType) {
191191
case ControllerGenerator.REST:
192-
template = 'controller-rest-template.ts.template';
192+
template = 'controller-rest-template.ts.ejs';
193193
break;
194194
default:
195195
break;

packages/cli/lib/project-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = class ProjectGenerator extends BaseGenerator {
7070
}
7171

7272
/**
73-
* Registers a Transform Stream with Yeoman. Removes `.template` extension
73+
* Registers a Transform Stream with Yeoman. Removes `.ejs` extension
7474
* from files that have it during project generation.
7575
*/
7676
setupRenameTransformer() {

0 commit comments

Comments
 (0)