Skip to content

Commit

Permalink
fix: detect .mjs files (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Oct 9, 2023
1 parent ef33f82 commit 2a9024c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2a9024c

Please sign in to comment.