Skip to content

Commit

Permalink
Fixed default condition for entry point. (#102)
Browse files Browse the repository at this point in the history
* Added harness mode for Next.js.

* Simplified implementation.

* Update utils.ts

* Formatting.

* Update runner.ts
  • Loading branch information
apascal07 authored May 9, 2024
1 parent 4240c67 commit dbe40c1
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit dbe40c1

Please sign in to comment.