Skip to content

Commit e14cc4a

Browse files
committed
One step toward not hardcoding module prefix
1 parent 12d1350 commit e14cc4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

transforms/no-implicit-this/helpers/options.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)