From 21ee167e8955e14fc22aed5531d09b8fe20eabf0 Mon Sep 17 00:00:00 2001 From: Wojciech Grabowski Date: Sat, 23 Mar 2024 16:50:55 +0100 Subject: [PATCH] fix: fix creating project on windows. Fix problem with files not found on windows (#21) re #9 --- lib/createProject.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/createProject.ts b/lib/createProject.ts index 3997fc5..252d74f 100644 --- a/lib/createProject.ts +++ b/lib/createProject.ts @@ -22,8 +22,8 @@ function getSourceFiles(sourceRoots: string[]): string[] { const existingDirectories = sourceRoots.filter(directory => existsSync(directory) ); - const includePatterns = existingDirectories.map(directory => - path.resolve(`${directory}/**/*.ts`) + const includePatterns = existingDirectories.map( + directory => `${path.resolve(directory)}/**/*.ts` ); const excludePatterns = existingDirectories.flatMap(directory => [ `${directory}/**/node_modules/**`,