mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
style: auto-fix ruff formatting in module_system.py
Co-authored-by: mohammed ahmed <undefined@users.noreply.github.com>
This commit is contained in:
parent
113eb3f791
commit
66b4efc53c
1 changed files with 1 additions and 3 deletions
|
|
@ -112,9 +112,7 @@ def detect_module_system(project_root: Path, file_path: Path | None = None) -> s
|
|||
# depends on how TypeScript compiles and how Node.js loads the files.
|
||||
if file_path and file_path.suffix.lower() in (".ts", ".tsx"):
|
||||
if pkg_type_from_json is None:
|
||||
logger.debug(
|
||||
"TypeScript file without explicit package.json type field - defaulting to CommonJS"
|
||||
)
|
||||
logger.debug("TypeScript file without explicit package.json type field - defaulting to CommonJS")
|
||||
return ModuleSystem.COMMONJS
|
||||
|
||||
# Strategy 3: Analyze file content for import/export patterns
|
||||
|
|
|
|||
Loading…
Reference in a new issue