Skip to content
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

Add package.json exports for derby/dist/{components,parsing,templates,test-utils} for compat with TS classic moduleResolution #632

Merged
merged 1 commit into from
May 8, 2024

Conversation

ericyhwang
Copy link
Contributor

Some modules in derby, like test-utils, are not accessible from the root package export. TypeScript with the default classic moduleResolution (pre "node16") doesn't use the package.json exports field, so the only way to use such modules is by using the dist paths, e.g. 'derby/dist/test-utils' instead of the exports-mapped 'derby/test-utils'.

This adds package.json exports dist/* paths for a selection of such modules that are useful in consumers.

…,test-utils} for compat with TS classic moduleResolution

Some modules in derby, like test-utils, are not accessible from the root package export. TypeScript with the default classic moduleResolution (pre "node16") doesn't use the package.json exports field, so the only way to use such modules is by using the dist paths, e.g. 'derby/dist/test-utils' instead of the exports-mapped 'derby/test-utils'.

This adds package.json exports dist/* paths for a selection of such modules that are useful in consumers.
@ericyhwang ericyhwang requested a review from craigbeck May 8, 2024 21:15
Copy link
Contributor

@craigbeck craigbeck left a comment

Choose a reason for hiding this comment

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

👍

@ericyhwang ericyhwang merged commit 56059c4 into master May 8, 2024
5 checks passed
@ericyhwang ericyhwang deleted the package-export-dist branch May 8, 2024 21:24
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