Skip to content

Commit

Permalink
fix: fix creating project on windows. Fix problem with files not foun…
Browse files Browse the repository at this point in the history
…d on windows (#21)

re #9
  • Loading branch information
wgrabowski authored Mar 23, 2024
1 parent 61ecb62 commit 21ee167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/createProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/**`,
Expand Down

0 comments on commit 21ee167

Please sign in to comment.