diff --git a/bin/cli.js b/bin/cli.js index 04d73ce6ed..9b584f9e8b 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -85,7 +85,7 @@ async function initKnex(env, opts, useDefaultClientIfNotSpecified) { } function invoke() { - const filetypes = ['js', 'coffee', 'ts', 'eg', 'ls']; + const filetypes = ['js', 'mjs', 'coffee', 'ts', 'eg', 'ls']; const cwd = argv.knexfile ? path.dirname(path.resolve(argv.knexfile))