Skip to content

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed May 29, 2024
1 parent e27cb09 commit 04748ee
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/generators/src/connection/templates/knex.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ export const generate = (ctx: ConnectionGeneratorContext) =>
)
.then(renderSource(knexfile, toFile('knexfile')))
.then(
mergeJSON<ConnectionGeneratorContext>((ctx) => {
return {
mergeJSON<ConnectionGeneratorContext>(
(ctx) => ({
scripts: {
migrate: 'knex migrate:latest',
'migrate:make': 'knex migrate:make' + (ctx.language === 'js' ? ' -x mjs' : ''),
test: 'cross-env NODE_ENV=test npm run migrate && npm run mocha'
}
}
}, toFile('package.json'))
}),
toFile('package.json')
)
)
.then(injectSource(importTemplate, before('import { services } from'), toAppFile))
.then(injectSource(configureTemplate, before('app.configure(services)'), toAppFile))
Expand Down

0 comments on commit 04748ee

Please sign in to comment.