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

feat(universal-router-sdk): separate esm / cjs builds #221

Open
wants to merge 1 commit into
base: feat/permit2-sdk-build
Choose a base branch
from

Conversation

just-toby
Copy link
Collaborator

@just-toby just-toby commented Dec 16, 2024

PR Scope

breaking change to build structure for universal-router-sdk

Description

updates the build setup for universal-router-sdk to manually and explicitly create separate cjs and esm builds (plus a types-only version)

How Has This Been Tested?

built the sdk locally, then installed the local build result in another project (universe/apps/web) and verified that it properly resolved the esm version instead of the cjs version

Are there any breaking changes?

there shouldn't be, but technically if an end user is importing incorrectly (by directly referencing any build artifact files) then they'll need to update

(Optional) Follow Ups

PRs to follow will do this for many other SDKs

Copy link
Collaborator Author

just-toby commented Dec 16, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

@just-toby just-toby requested a review from adjkant December 16, 2024 18:22
@just-toby just-toby marked this pull request as ready for review December 16, 2024 18:22
@just-toby just-toby requested review from jsy1218 and a team as code owners December 16, 2024 18:22
@just-toby just-toby force-pushed the feat/permit2-sdk-build branch from d061f25 to aac8085 Compare December 16, 2024 21:57
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from 1950758 to 0794387 Compare December 16, 2024 21:57
@just-toby just-toby force-pushed the feat/permit2-sdk-build branch from aac8085 to 73d5b8b Compare December 16, 2024 22:45
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from 0794387 to 88fd603 Compare December 16, 2024 22:45
@just-toby just-toby force-pushed the feat/permit2-sdk-build branch from 73d5b8b to f2c31ef Compare December 16, 2024 23:05
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from 88fd603 to e8c6e06 Compare December 16, 2024 23:05
@just-toby just-toby force-pushed the feat/permit2-sdk-build branch from f2c31ef to 4781fa9 Compare December 16, 2024 23:07
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from e8c6e06 to 8d79889 Compare December 16, 2024 23:07
@just-toby just-toby force-pushed the feat/permit2-sdk-build branch from 4781fa9 to c0a6a1d Compare December 16, 2024 23:24
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from 8d79889 to 2a00e31 Compare December 16, 2024 23:24
Copy link

graphite-app bot commented Dec 16, 2024

Graphite Automations

"Request reviewers once CI passes on sdks monorepo" took an action on this PR • (12/16/24)

1 reviewer was added and 1 assignee was added to this PR based on Siyu Jiang (See-You John)'s automation.

@just-toby just-toby force-pushed the feat/permit2-sdk-build branch 2 times, most recently from 4fc3bee to 9311793 Compare December 18, 2024 17:50
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from 2a00e31 to c55fb49 Compare December 18, 2024 17:50
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.

1 participant