From 1dfbb7a93c45b83e4eb85efb00c398865c4dc9c7 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 28 Sep 2023 08:39:58 +0200 Subject: [PATCH] fix: detect .mjs files --- node/finder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/finder.ts b/node/finder.ts index 21ae4859..8ae75f1c 100644 --- a/node/finder.ts +++ b/node/finder.ts @@ -6,7 +6,7 @@ import { nonNullable } from './utils/non_nullable.js' // the order of the allowed extensions is also the order we remove duplicates // with a lower index meaning a higher precedence over the others -const ALLOWED_EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx'] +const ALLOWED_EXTENSIONS = ['.js', '.jsx', '.mjs', '.mts', '.ts', '.tsx'] export const removeDuplicatesByExtension = (functions: string[]) => { const seen = new Map()