Skip to content

Encode only libFile name instead of path to it in buildInfo #1567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sheetalkamat
Copy link
Member

Fixes #1548

Copy link
Contributor

@Copilot 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 modifies how TypeScript library files are referenced in build info (tsbuildinfo) files by encoding only the library file name instead of its full path. This change reduces the file size of build info files and makes them more portable across different environments.

Key changes:

  • Library file names in build info are shortened from full paths like "../../../../tslibs/TS/Lib/lib.esnext.full.d.ts" to just filenames like "lib.esnext.full.d.ts"
  • Build info file sizes are correspondingly reduced by 20-26 bytes per file

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.

tsbuildinfo files include platform-specific paths
1 participant