Skip to content

[Prototype] Add @shopify/dev-platform-auth package skeleton - #8272

Draft
dmerand wants to merge 1 commit into
mainfrom
donald/dev-platform-auth-skeleton
Draft

[Prototype] Add @shopify/dev-platform-auth package skeleton#8272
dmerand wants to merge 1 commit into
mainfrom
donald/dev-platform-auth-skeleton

Conversation

@dmerand

@dmerand dmerand commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Note

Prototype. This PR is part of an exploratory auth-extraction effort (portable @shopify/dev-platform-auth package). It exists as design evidence and groundwork; do not treat it as a merge candidate until the extraction project is approved.

WHY are these changes introduced?

First structural PR of the auth extraction. The package will hold portable Shopify developer auth flows — Identity device flow and client_credentials — for the CLI and, later, non-CLI JavaScript services. This PR freezes the packaging conventions before any auth code moves in, so reviewers can evaluate the portability contract on its own.

WHAT is this pull request doing?

Scaffolding only; no auth logic. The reviewable substance is the contract:

  • ESM with type declarations; Node >=20.10; exactly two exports (. and ./testing); sideEffects: false; zero runtime dependencies
  • Three portability guards enforced as tests: a plain-JavaScript (.mjs) consumer imports the built package; the built . entry contains no Node built-ins or require; the . entry bundles for the browser with esbuild
  • Workspace wiring: Nx targets, Knip registration, fixed-version changeset set

How to test your changes?

pnpm --filter @shopify/dev-platform-auth build && pnpm --filter @shopify/dev-platform-auth vitest run — the portability tests are the point; the rest is standard CI.

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes; package README included
  • I've considered analytics changes; none apply to this scaffolding-only change
  • The change is user-facing and includes a minor changeset for the new public package

Assisted-By: devx/b95434f1-5993-47b3-b56c-380241eff68f
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Aug 8, 2026
@dmerand dmerand changed the title Add @shopify/dev-platform-auth package skeleton [Prototype] Add @shopify/dev-platform-auth package skeleton Aug 8, 2026
@dmerand dmerand changed the title [Prototype] Add @shopify/dev-platform-auth package skeleton PROTO: Add @shopify/dev-platform-auth package skeleton Aug 8, 2026
@dmerand dmerand changed the title PROTO: Add @shopify/dev-platform-auth package skeleton [Prototype] Add @shopify/dev-platform-auth package skeleton Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant