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

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

just-toby
Copy link
Collaborator

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

PR Scope

breaking change to build structure for v2-sdk

Description

updates the build setup for v2-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

@just-toby just-toby requested a review from adjkant December 16, 2024 20:17
@just-toby just-toby marked this pull request as ready for review December 16, 2024 20:17
@just-toby just-toby requested review from jsy1218 and a team as code owners December 16, 2024 20:17
Copy link

socket-security bot commented Dec 16, 2024

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: npm/[email protected]

View full report↗︎

@just-toby just-toby changed the base branch from feat/router-sdk-build to feat/v4-sdk-build December 16, 2024 20:25
@just-toby just-toby merged commit 6faef94 into feat/v4-sdk-build Dec 16, 2024
7 of 9 checks passed
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