Skip to content

Commit

Permalink
Merge pull request #553 from embroider-build/filter-dts
Browse files Browse the repository at this point in the history
don't include d.ts files when crawling the app tree
  • Loading branch information
ef4 authored Sep 25, 2020
2 parents 684095c + 91e4fcc commit f9ac026
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/app-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export class AppFiles {
continue;
}

if (/\.d\.ts$/.test(relativePath)) {
// .d.ts files are technically "*.ts" files but aren't really and we
// don't want to include them when we crawl through the app.
continue;
}

if (relativePath.startsWith('tests/')) {
if (/-test\.\w+$/.test(relativePath)) {
tests.push(relativePath);
Expand Down

0 comments on commit f9ac026

Please sign in to comment.