We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 742c4b6 commit 3feaa71Copy full SHA for 3feaa71
1 file changed
packages/generators/src/connection/templates/knex.tpl.ts
@@ -55,13 +55,13 @@ export const generate = (ctx: ConnectionGeneratorContext) =>
55
.then(renderSource(knexfile, toFile('knexfile')))
56
.then(
57
mergeJSON<ConnectionGeneratorContext>(
58
- {
+ (ctx) => ({
59
scripts: {
60
migrate: 'knex migrate:latest',
61
- 'migrate:make': 'knex migrate:make',
+ 'migrate:make': 'knex migrate:make' + ctx.language === 'js' ? ' -x mjs' : '',
62
test: 'cross-env NODE_ENV=test npm run migrate && npm run mocha'
63
}
64
- },
+ }),
65
toFile('package.json')
66
)
67
0 commit comments