Skip to content

Conversation

@z4o4z
Copy link
Member

@z4o4z z4o4z commented Dec 11, 2025

TL;DR

Added tsc-alias configuration with resolveFullPaths set to true in the ESM build configuration.

What changed?

Added a tsc-alias configuration object to the tsconfig.build.esm.json file with the resolveFullPaths property set to true. This ensures that path aliases are properly resolved when building the ESM version of the slate-serializer library.

How to test?

  1. Build the slate-serializer package with yarn build
  2. Verify that imports using path aliases work correctly in the ESM build output
  3. Import the ESM build in a test project and confirm that all path references resolve correctly

Why make this change?

The resolveFullPaths option for tsc-alias ensures that TypeScript path aliases are correctly resolved to their full paths during the ESM build process. This prevents potential module resolution issues when the library is consumed by other projects, especially in ESM environments where path resolution can be more strict.

Copy link
Member Author

z4o4z commented Dec 11, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@z4o4z z4o4z marked this pull request as ready for review December 11, 2025 13:17
Copilot AI review requested due to automatic review settings December 11, 2025 13:17
@z4o4z z4o4z merged commit 9e6ac99 into master Dec 11, 2025
10 of 11 checks passed
@z4o4z z4o4z deleted the evgeny/add-exitentions-to-esm-package/COR-9112 branch December 11, 2025 13:17
Copy link

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 adds tsc-alias configuration to the ESM build configuration for the slate-serializer library to ensure TypeScript path aliases are properly resolved to their full paths during the build process.

  • Added tsc-alias configuration block with resolveFullPaths: true to tsconfig.build.esm.json

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants