Skip to content

Commit

Permalink
fix(generators): Fix migrate:make script in generated app (#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored May 30, 2024
1 parent 187868e commit c7b0111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/generators/src/connection/templates/knex.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const generate = (ctx: ConnectionGeneratorContext) =>
(ctx) => ({
scripts: {
migrate: 'knex migrate:latest',
'migrate:make': 'knex migrate:make' + ctx.language === 'js' ? ' -x mjs' : '',
'migrate:make': 'knex migrate:make' + (ctx.language === 'js' ? ' -x mjs' : ''),
test: 'cross-env NODE_ENV=test npm run migrate && npm run mocha'
}
}),
Expand Down

0 comments on commit c7b0111

Please sign in to comment.