Skip to content

Commit 9c9116d

Browse files
committed
copyTemplateFiles
1 parent 62851fe commit 9c9116d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.2",
2+
"version": "1.0.3",
33
"name": "dotup-typescript-yeoman-generators",
44
"author": {
55
"name": "Peter Ullrich",

src/BaseGenerator.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
392392

393393
// Get the file extension
394394
let ext = path.extname(file.filePath);
395+
396+
// Remove the extension on renamable files
397+
if (ext === '._') {
398+
ext = path.extname(path.basename(file.filePath, '._'));
399+
}
400+
395401
if (ext === '') {
396402
ext = path.basename(file.filePath);
397403
}

0 commit comments

Comments
 (0)