File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11{
2- "version" : " 1.0.3 " ,
2+ "version" : " 1.0.4 " ,
33 "name" : " dotup-typescript-yeoman-generators" ,
44 "author" : {
55 "name" : " Peter Ullrich" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { IStepQuestion } from './questions/IStepQuestion';
1313import { Question } from './questions/Question' ;
1414import { SharedOptions } from './SharedOptions' ;
1515import { GeneratorOptions , IProperty , MethodsToRegister } from './Types' ;
16+ import { TemplateType } from './project' ;
1617
1718export abstract class BaseGenerator < TStep extends string > extends generator {
1819
@@ -394,14 +395,15 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
394395 let ext = path . extname ( file . filePath ) ;
395396
396397 // Remove the extension on renamable files
397- if ( ext === '._' ) {
398- ext = path . extname ( path . basename ( file . filePath , '._' ) ) ;
398+ if ( file . typ === TemplateType . removeExtension ) {
399+ ext = path . extname ( file . targetPath ) ;
399400 }
400401
401402 if ( ext === '' ) {
402403 ext = path . basename ( file . filePath ) ;
403404 }
404405
406+
405407 // Skip this file?
406408 if ( this . skippedTemplateFiles . includes ( file . targetPath ) ) {
407409 return ;
You can’t perform that action at this time.
0 commit comments