Skip to content

Conversation

@koistya
Copy link
Member

@koistya koistya commented Jan 24, 2026

Summary

  • Fix path resolution when outDir is an absolute path by using resolve() instead of join()
  • Display relative paths in CLI output for cleaner presentation
  • Add test coverage for absolute outDir with custom root

Problem

When using an absolute outDir with a custom root, the join() function incorrectly concatenates paths:

// Before: join("/project", "/tmp/output") → "/project/tmp/output" ❌
// After: resolve("/project", "/tmp/output") → "/tmp/output" ✓

Test plan

  • Added e2e test for absolute outDir with custom root
  • Run bun test to verify all tests pass

Use `resolve()` instead of `join()` for output paths, ensuring absolute
outDir values work correctly when root is also specified.
@koistya koistya merged commit 0e55627 into main Jan 24, 2026
1 check passed
@koistya koistya deleted the dev branch January 24, 2026 10:02
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