diff --git a/packages/generators/src/connection/index.ts b/packages/generators/src/connection/index.ts index 298599d249..43ab705556 100644 --- a/packages/generators/src/connection/index.ts +++ b/packages/generators/src/connection/index.ts @@ -90,7 +90,7 @@ export const generate = (ctx: ConnectionGeneratorArguments) => runGenerator( __dirname, 'templates', - ({ database }) => `${getDatabaseAdapter(database)}.tpl` + ({ database }) => `${getDatabaseAdapter(database)}.tpl.js` ), mergeJSON( ({ connectionString, database }) => diff --git a/packages/generators/src/service/index.ts b/packages/generators/src/service/index.ts index f02d5d3802..fa7b8f4536 100644 --- a/packages/generators/src/service/index.ts +++ b/packages/generators/src/service/index.ts @@ -210,4 +210,4 @@ export const generate = (ctx: ServiceGeneratorArguments) => } as ServiceGeneratorContext }) .then(runGenerators(__dirname, 'templates')) - .then(runGenerator(__dirname, 'type', ({ type }) => `${type}.tpl`)) + .then(runGenerator(__dirname, 'type', ({ type }) => `${type}.tpl.js`))