File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,13 @@ const Pattern = function (
46
46
patternlab ?. config ?. patternExtension ?. includes ( '.' ) &&
47
47
this . relPath . endsWith ( '.' + patternlab . config . patternExtension )
48
48
) {
49
- this . fileName = path . basename (
50
- this . relPath ,
51
- '.' + patternlab . config . patternExtension
52
- ) ; // e.g. 'colors'
49
+ this . fileExtension = '.' + patternlab . config . patternExtension ; // e.g. '.html.twig'
50
+ this . fileName = path . basename ( this . relPath , this . fileExtension ) ; // e.g. 'colors'
53
51
} else {
52
+ this . fileExtension = pathObj . ext ; // e.g. '.hbs'
54
53
this . fileName = pathObj . name ; // e.g. 'colors'
55
54
}
56
55
this . subdir = pathObj . dir ; // 'atoms/global'
57
- this . fileExtension = pathObj . ext ; // '.hbs'
58
56
59
57
const info = this . getPatternInfo (
60
58
pathObj ,
You can’t perform that action at this time.
0 commit comments