Skip to content

Commit bced5eb

Browse files
committed
fixup stop detyping
1 parent dcecf84 commit bced5eb

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

blueprints/component-test/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,12 @@ module.exports = {
7676
let files = this._super.files.apply(this, arguments);
7777

7878
if (this.options.componentAuthoringFormat === 'strict') {
79-
const strictFilesToRemove = this.options.isTypeScriptProject || this.options.typescript ? '.gjs' : '.gts';
80-
files = files.filter((file) => !(file.endsWith('.js') || file.endsWith('.ts') || strictFilesToRemove));
79+
const strictFilesToRemove =
80+
this.options.isTypeScriptProject || this.options.typescript ? '.gjs' : '.gts';
81+
files = files.filter(
82+
(file) =>
83+
!(file.endsWith('.js') || file.endsWith('.ts') || file.endsWith(strictFilesToRemove))
84+
);
8185
} else {
8286
files = files.filter((file) => !(file.endsWith('.gjs') || file.endsWith('.gts')));
8387
}

blueprints/component/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,16 @@ module.exports = {
162162
});
163163
}
164164
if (this.options.componentAuthoringFormat === 'strict') {
165-
const strictFilesToRemove = this.options.isTypeScriptProject || this.options.typescript ? '.gjs' : '.gts';
165+
const strictFilesToRemove =
166+
this.options.isTypeScriptProject || this.options.typescript ? '.gjs' : '.gts';
166167
files = files.filter(
167-
(file) => !(file.endsWith('.js') || file.endsWith('.ts') || file.endsWith('.hbs') || file.endsWith(strictFilesToRemove))
168+
(file) =>
169+
!(
170+
file.endsWith('.js') ||
171+
file.endsWith('.ts') ||
172+
file.endsWith('.hbs') ||
173+
file.endsWith(strictFilesToRemove)
174+
)
168175
);
169176
} else {
170177
files = files.filter((file) => !(file.endsWith('.gjs') || file.endsWith('.gts')));

0 commit comments

Comments
 (0)