Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions codeflash/setup/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

import tomlkit

_BUILD_DIRS = frozenset({"build", "dist", "out", ".next", ".nuxt"})


@dataclass
class DetectedProject:
Expand Down Expand Up @@ -384,9 +386,7 @@ def is_build_output_dir(path: Path) -> bool:
in favor of source directories.

"""
build_dirs = {"build", "dist", "out", ".next", ".nuxt"}
parts = path.as_posix().split("/")
return any(part in build_dirs for part in parts)
return not _BUILD_DIRS.isdisjoint(path.parts)


def _extract_entry_path(exports: Any) -> str | None:
Expand Down
Loading