Skip to content

Commit

Permalink
fix(core): do not skip cjs/mjs/cts/mts extensions during folder-bas…
Browse files Browse the repository at this point in the history
…ed discovery

Related: #4727
  • Loading branch information
B4nan committed Sep 24, 2023
1 parent 367fb0d commit ce574a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/metadata/MetadataDiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ export class MetadataDiscovery {
const filename = basename(filepath);

if (
!filename.match(/\.[jt]s$/) ||
!filename.match(/\.[cm]?[jt]s$/) ||
filename.endsWith('.js.map') ||
filename.endsWith('.d.ts') ||
filename.match(/\.d\.[cm]?ts/) ||
filename.startsWith('.') ||
filename.match(/index\.[jt]s$/)
filename.match(/index\.[cm]?[jt]s$/)
) {
this.logger.log('discovery', `- ignoring file ${filename}`);
continue;
Expand Down

0 comments on commit ce574a4

Please sign in to comment.