Skip to content

Use oxc resolver for import graph resolution#6

Merged
longlho merged 1 commit into
mainfrom
codex/use-oxc-resolver
May 18, 2026
Merged

Use oxc resolver for import graph resolution#6
longlho merged 1 commit into
mainfrom
codex/use-oxc-resolver

Conversation

@longlho
Copy link
Copy Markdown
Contributor

@longlho longlho commented May 18, 2026

Summary

  • Replace the hand-rolled relative import resolver with a narrow oxc_resolver adapter
  • Follow project files resolved through tsconfig paths, package imports, Node-style extension aliases, and package exports while keeping external deps outside Codescythe’s graph
  • Add a shared oxc-resolution fixture that doubles as an example for resolver behavior
  • Add analyzer unit coverage and a Bazel CLI e2e test that runs the compiled codescythe binary against the fixture
  • Use REPO.bazel ignore_directories for the local .worktrees scratch directory instead of .bazelignore

Validation

  • cargo fmt --check
  • cargo test -p codescythe
  • cargo test -p codescythe_cli
  • bazel test --test_output=errors //crates/codescythe_cli:codescythe_cli_e2e_test
  • bazel test //...
  • git diff --check

@longlho longlho force-pushed the codex/use-oxc-resolver branch from 1d712bf to 04ab2ab Compare May 18, 2026 13:54
@longlho longlho merged commit 7852afa into main May 18, 2026
4 checks passed
@longlho longlho deleted the codex/use-oxc-resolver branch May 18, 2026 14:06
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