Skip to content

fix(verify): pack the client core alongside react for a workspace checkout - #203

Merged
Bccorb merged 1 commit into
mainfrom
fix/verify-pack-client-workspace
Sep 13, 2026
Merged

fix(verify): pack the client core alongside react for a workspace checkout#203
Bccorb merged 1 commit into
mainfrom
fix/verify-pack-client-workspace

Conversation

@Bccorb

@Bccorb Bccorb commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Prerequisite for the client SDK workspace conversion (fells-code/seamless-auth-react, mobile track fells-code/seamless-templates#40).

seamless verify --local builds and packs the local @seamless-auth/react checkout and installs the tarball into the react image. That checkout is becoming an npm workspace publishing a framework-agnostic @seamless-auth/client next to @seamless-auth/react, and the react tarball depends on the client one. Against such a checkout the harness would pack the private root package, and installing the react tarball alone would go to the registry for a client version that is not published yet.

  • packLocalReactSdk reads workspaces from the checkout's package.json; when present it packs -w @seamless-auth/client -w @seamless-auth/react, otherwise it packs the root as before.
  • The react image installs /tmp/sdk/*.tgz in one npm install, so react's client dependency resolves from the sibling tarball.
  • The version line for @seamless-auth/react reads packages/react/package.json in a workspace.

No behaviour change for a pre-workspace checkout, so this can merge ahead of the SDK change; the reusable verify-conformance.yml is consumed @main, which is what the SDK repo's conformance run needs.

Test plan

  • npm run coverage: 1003 passing, coverage 99.39 / 96.73 / 99.46 / 99.39
  • New tests: single-package pack for a plain checkout; -w pack plus react version line for a workspace checkout

…ckout

The client SDK repo is becoming an npm workspace that publishes
@seamless-auth/client next to @seamless-auth/react, and the react tarball
depends on the client one. Packing only the root of such a checkout produces
the private root package, and installing the react tarball alone goes to the
registry for a client version that is not published yet.

The harness reads workspaces from the checkout's package.json, packs both
packages when it finds one, and the react image installs every tarball in one
npm install so the dependency resolves from the sibling file. A checkout that
predates the workspace is packed as before.
@Bccorb
Bccorb merged commit 2a745df into main Sep 13, 2026
3 checks passed
@Bccorb
Bccorb deleted the fix/verify-pack-client-workspace branch September 13, 2026 03:00
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