fix(relay): publish resolvable runtime exports - #4741
Open
keithpk wants to merge 1 commit into
Open
Conversation
Contributor
|
| Filename | Overview |
|---|---|
| packages/relay/package.json | Redirects all runtime export conditions to the package’s compiled ESM files under the published dist directory. |
| packages/relay/src/package-exports.test.ts | Adds a deterministic packed-artifact regression test that rebuilds the relay package and verifies its runtime export targets are publishable. |
Reviews (1): Last reviewed commit: "fix(relay): publish resolvable runtime e..." | Re-trigger Greptile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #4730.
All runtime conditions in
@getpaseo/relay's exports map now resolve to compiled JavaScript underdist/, which is included in the published package. This covers the root,./e2ee, and./cloudflareexports.Regression test
Added
packages/relay/src/package-exports.test.ts. It runs a realnpm pack --dry-run, reads the artifact file list, and verifies that everynode,import, anddefaultexport target is present.Before the fix:
After the fix:
Packed-package QA
Packed the package, unpacked the tarball beneath a clean consumer's
node_modules, and bundled a browser entry importing@getpaseo/relay/e2ee:Consumer entry:
Repository checks:
Platforms