Skip to content

Commit

Permalink
Exclude missing folders from includes (ScalablyTyped#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinybot committed Aug 13, 2024
1 parent 48c4a8f commit ee44404
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Phase1ReadTypescript(
/* There are often whole trees parallel to what is specified in `typings` (or similar). This ignores some of them. */
val main = packageJsonMain(f)
val includedFiles = packageJsonFiles(f)
val bound = (f.shortenedFiles ++ main ++ includedFiles).map(_.folder)
val bound = (f.shortenedFiles ++ main ++ includedFiles).map(_.folder).distinct.filter(_.path.toIO.exists())
bound.flatMap(PathsFromTsLibSource.filesFrom).distinct
}

Expand Down

0 comments on commit ee44404

Please sign in to comment.