diff --git a/genkit-tools/cli/src/commands/init.ts b/genkit-tools/cli/src/commands/init.ts index 6b5656808..4e9f4ed59 100644 --- a/genkit-tools/cli/src/commands/init.ts +++ b/genkit-tools/cli/src/commands/init.ts @@ -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.'