Skip to content

fix(imports): eliminate circular dependencies with type-fns#35

Merged
uladkasach merged 1 commit intomainfrom
vlad/anti-cycles
Mar 18, 2026
Merged

fix(imports): eliminate circular dependencies with type-fns#35
uladkasach merged 1 commit intomainfrom
vlad/anti-cycles

Conversation

@ehm-seaturtle
Copy link
Contributor

fix(imports): eliminate circular dependencies with type-fns

  • use scoped imports from type-fns to avoid barrel re-export cycle
  • collocate withHelpfulError into HelpfulError.ts to break local cycle
  • add dpdm lint check (test:lint:imports) to detect cycles including node_modules
  • add brief documenting forbidden barrel imports from type-fns

🐢🌊 surfed in by seaturtle[bot]

- use scoped imports from type-fns to avoid barrel re-export cycle
- collocate withHelpfulError into HelpfulError.ts to break local cycle
- add dpdm lint check (test:lint:imports) to detect cycles including node_modules
- add brief documenting forbidden barrel imports from type-fns

Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
@uladkasach uladkasach merged commit 6e72ec7 into main Mar 18, 2026
16 checks passed
@uladkasach uladkasach deleted the vlad/anti-cycles branch March 18, 2026 09:08
@rhelease rhelease bot mentioned this pull request Mar 18, 2026
@rhelease
Copy link
Contributor

rhelease bot commented Mar 18, 2026

uladkasach added a commit to ehmpathy/declapract-typescript-ehmpathy that referenced this pull request Mar 18, 2026
- add dpdm@4.0.1 as devDependency for cycle detection
- add test:lint:cycles script using dpdm
- include cycles check in test:lint pipeline

ref: ehmpathy/helpful-errors#35

Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
uladkasach added a commit to ehmpathy/declapract-typescript-ehmpathy that referenced this pull request Mar 18, 2026
- add dpdm@4.0.1 as devDependency for cycle detection
- add test:lint:cycles script using dpdm
- include cycles check in test:lint pipeline

ref: ehmpathy/helpful-errors#35

Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants