From 91e4fcc250d0c3585550e6007889d5e22786d4d5 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Fri, 25 Sep 2020 02:41:43 -0400 Subject: [PATCH] don't include d.ts files when rawling the app tree --- packages/core/src/app-files.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/core/src/app-files.ts b/packages/core/src/app-files.ts index 15e1bbc62..1d5774406 100644 --- a/packages/core/src/app-files.ts +++ b/packages/core/src/app-files.ts @@ -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);