Skip to content

Commit

Permalink
fix(cli): Another fix for CLI ES module loading (#3397)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Jan 22, 2024
1 parent 33a2e00 commit 3cb3bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/generators/src/connection/index.ts
Expand Up @@ -90,7 +90,7 @@ export const generate = (ctx: ConnectionGeneratorArguments) =>
runGenerator<ConnectionGeneratorContext>(
__dirname,
'templates',
({ database }) => `${getDatabaseAdapter(database)}.tpl`
({ database }) => `${getDatabaseAdapter(database)}.tpl.js`
),
mergeJSON<ConnectionGeneratorContext>(
({ connectionString, database }) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/src/service/index.ts
Expand Up @@ -210,4 +210,4 @@ export const generate = (ctx: ServiceGeneratorArguments) =>
} as ServiceGeneratorContext
})
.then(runGenerators<ServiceGeneratorContext>(__dirname, 'templates'))
.then(runGenerator<ServiceGeneratorContext>(__dirname, 'type', ({ type }) => `${type}.tpl`))
.then(runGenerator<ServiceGeneratorContext>(__dirname, 'type', ({ type }) => `${type}.tpl.js`))

0 comments on commit 3cb3bc9

Please sign in to comment.