Skip to content

Commit dbb44b9

Browse files
committed
._ file handling
1 parent b27f4cf commit dbb44b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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.4",
2+
"version": "1.0.5",
33
"name": "dotup-typescript-yeoman-generators",
44
"author": {
55
"name": "Peter Ullrich",

src/BaseGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,15 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
392392
this.projectFiles.templateFiles.forEach(file => {
393393

394394
// Get the file extension
395-
let ext = path.extname(file.filePath);
395+
let ext = path.extname(file.targetPath);
396396

397397
// Remove the extension on renamable files
398398
if (file.typ === TemplateType.removeExtension) {
399399
ext = path.extname(file.targetPath);
400400
}
401401

402402
if (ext === '') {
403-
ext = path.basename(file.filePath);
403+
ext = path.basename(file.targetPath);
404404
}
405405

406406

0 commit comments

Comments
 (0)