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(router-sdk): separate esm/cjs builds #223

Open
wants to merge 1 commit into
base: feat/universal-router-sdk-esm-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 router-sdk

Description

updates the build setup for 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 20:09
@just-toby just-toby marked this pull request as ready for review December 16, 2024 20:09
@just-toby just-toby requested review from jsy1218 and a team as code owners December 16, 2024 20:09
@just-toby just-toby force-pushed the feat/router-sdk-build branch from c6c87a9 to 9f045cc Compare December 16, 2024 20:15
@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/router-sdk-build branch from 9f045cc to bf27ecf Compare December 16, 2024 21:57
@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/router-sdk-build branch from bf27ecf to afb7c94 Compare December 16, 2024 22:46
@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/router-sdk-build branch from afb7c94 to 45e391a Compare December 16, 2024 23:05
@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/router-sdk-build branch from 45e391a to da7bc1a Compare December 16, 2024 23:07
@just-toby just-toby force-pushed the feat/universal-router-sdk-esm-build branch from 8d79889 to 2a00e31 Compare December 16, 2024 23:24
@just-toby just-toby force-pushed the feat/router-sdk-build branch from da7bc1a to 9c858bb 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/universal-router-sdk-esm-build branch from 2a00e31 to c55fb49 Compare December 18, 2024 17:50
@just-toby just-toby force-pushed the feat/router-sdk-build branch from 9c858bb to 88746ce 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