We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e292d9 commit 452ad5eCopy full SHA for 452ad5e
packages/core/src/lib/object_factory.js
@@ -46,15 +46,13 @@ const Pattern = function (
46
patternlab?.config?.patternExtension?.includes('.') &&
47
this.relPath.endsWith('.' + patternlab.config.patternExtension)
48
) {
49
- this.fileName = path.basename(
50
- this.relPath,
51
- '.' + patternlab.config.patternExtension
52
- ); // e.g. 'colors'
+ this.fileExtension = '.' + patternlab.config.patternExtension; // e.g. '.html.twig'
+ this.fileName = path.basename(this.relPath, this.fileExtension); // e.g. 'colors'
53
} else {
+ this.fileExtension = pathObj.ext; // e.g. '.hbs'
54
this.fileName = pathObj.name; // e.g. 'colors'
55
}
56
this.subdir = pathObj.dir; // 'atoms/global'
57
- this.fileExtension = pathObj.ext; // '.hbs'
58
59
const info = this.getPatternInfo(
60
pathObj,
0 commit comments