File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
transforms/no-implicit-this/helpers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,14 @@ export class Runner {
127127 debug ( 'Gathering telemetry data from %s ...' , this . options . url ) ;
128128 await gatherTelemetryForUrl (
129129 this . options . url ,
130- ( _module : unknown , modulePath : string ) : RuntimeData | void => {
131- // FIXME: Don't hardcode app name
132- if ( modulePath . startsWith ( 'pyckle/helpers/' ) ) {
130+ ( _module : unknown , modulePath : string , appModulePrefix : string ) : RuntimeData | void => {
131+ if ( modulePath . startsWith ( `${ appModulePrefix } /helpers/` ) ) {
133132 return { type : 'Helper' } ;
134- } else if ( modulePath . startsWith ( 'pyckle /components/' ) ) {
133+ } else if ( modulePath . startsWith ( ` ${ appModulePrefix } /components/` ) ) {
135134 return { type : 'Component' } ;
136135 }
137- }
136+ } ,
137+ 'pyckle' // FIXME: Don't hardcode
138138 ) ;
139139
140140 const telemetry = getTelemetry ( ) as Record < string , unknown > ; // FIXME
You can’t perform that action at this time.
0 commit comments