Skip to content
6 changes: 3 additions & 3 deletions genkit-tools/common/src/runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export class Runner {

const harnessEntryPoint = path.join(__dirname, '../runner/harness.js');
const entryPoint =
config?.runner?.mode === 'default'
? getEntryPoint(process.cwd())
: harnessEntryPoint;
config?.runner?.mode === 'harness'
? harnessEntryPoint
: getEntryPoint(process.cwd());
if (!entryPoint) {
logger.error(
'Could not detect entry point for app. Make sure you are at the root of your project directory.'
Expand Down