Skip to content

Commit

Permalink
Fixed .js -> .ts for harness files. (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
apascal07 authored May 10, 2024
1 parent 9cb10ef commit 42a2762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genkit-tools/cli/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function generateToolsConfig(platform: Platform) {
if (fs.existsSync('src/app')) {
template = template.replace('$GENKIT_HARNESS_FILES', `'./src/app/*.ts'`);
} else if (fs.existsSync('app')) {
template = template.replace('$GENKIT_HARNESS_FILES', `'./app/*.js'`);
template = template.replace('$GENKIT_HARNESS_FILES', `'./app/*.ts'`);
} else {
throw new Error(
'Unable to resolve source folder (app or src/app) of you next.js app.'
Expand Down

0 comments on commit 42a2762

Please sign in to comment.