Skip to content

Conversation

@annahassel
Copy link
Contributor

No description provided.

}
}

for (const extension of ['js', 'ts', 'cjs', 'mjs']) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make sense to search for files in reverse order ['ts', 'js']

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alternatively const isTypeScript = __filename.endsWith('ts')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__filename is not available in MJS

@AVVS AVVS merged commit 848bb8e into master Feb 11, 2024
@AVVS AVVS deleted the fix/migration-for-directory branch February 11, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants