Skip to content

fix: export guessLocationOfTsconfig from common module#57

Open
SinaRezaeiiiii wants to merge 1 commit into
mainfrom
pr/export-fix
Open

fix: export guessLocationOfTsconfig from common module#57
SinaRezaeiiiii wants to merge 1 commit into
mainfrom
pr/export-fix

Conversation

@SinaRezaeiiiii

Copy link
Copy Markdown
Collaborator

Summary

Export guessLocationOfTsconfig from the common module for Vitest 4 compatibility.

This fixes runtime errors where Vitest 4 cannot resolve the export when users try to access
guessLocationOfTsconfig from the ArchUnitTS common module.

Changes

  • Added explicit export in src/common/index.ts
  • Enables users to customize TypeScript configuration detection

Impact

  • Minimal change: 1 line added
  • Fixes Vitest 4 compatibility issue
  • No breaking changes

Fixes issue where guessLocationOfTsconfig was not exported from common module,
causing 'TypeError: guessLocationOfTsconfig is not a function' in Vitest 4.

The function is used in count-metrics.ts but was not properly re-exported
through the common index, causing runtime failures when metrics were used
without an explicit tsconfig path.
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.

1 participant