From 0b1a2a01cc9770ad1e99506acd264a4dd4d25521 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Tue, 4 Jul 2023 14:00:09 +0300 Subject: [PATCH] fix: add mjs extension type (#5616) --- bin/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))