File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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' ) ) ) ;
You can’t perform that action at this time.
0 commit comments