Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

clean correct build info file

Related Links

close: #1134

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings July 31, 2025 12:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the cleanTsBuildInfoFile function to ensure it correctly resolves the path to the TypeScript build info file for deletion. The fix addresses issue #1134 by improving the path resolution logic for tsBuildInfo files.

  • Fixed path resolution logic for tsBuildInfo files when custom paths are specified
  • Added comprehensive test coverage for various tsconfig configurations
  • Updated test structure to use describe blocks for better organization

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/plugin-dts/src/utils.ts Fixed the cleanTsBuildInfoFile function to properly handle absolute and relative tsBuildInfo file paths
packages/plugin-dts/tests/utils.test.ts Added comprehensive tests for the fixed function and reorganized existing tests into describe blocks

@Timeless0911 Timeless0911 merged commit 4b4c246 into main Aug 1, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the fix/buildinfo branch August 1, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Failed to clean tsBuildInfo file

3 participants