Skip to content

chore: prepare api7 npm package#6

Closed
juzhiyuan wants to merge 1 commit intomainfrom
codex/prepare-api7-npm-package
Closed

chore: prepare api7 npm package#6
juzhiyuan wants to merge 1 commit intomainfrom
codex/prepare-api7-npm-package

Conversation

@juzhiyuan
Copy link
Copy Markdown

Summary

  • rename the forked package to @api7/better-auth-ui@3.3.15-api7.0
  • remove the consumer-side prepare build path and move package builds to prepack / prepublishOnly
  • restrict published files to the prebuilt dist package surface
  • add package and consumer verification scripts for dist exports, "use client", and TypeScript/runtime imports
  • add Node.js 22.x / 24.x package CI and publishing instructions

Why

API7 Developer Portal currently consumes this fork through a GitHub dependency. That makes portal installs rebuild this package in the consumer environment, which is fragile for clean CI, boilerplate users, and future releases.

Publishing a prebuilt @api7/better-auth-ui npm package lets portal keep its existing source imports through an npm alias such as:

"@daveyplate/better-auth-ui": "npm:@api7/better-auth-ui@3.3.15-api7.0"

Validation

  • pnpm install --frozen-lockfile
  • pnpm build
  • pnpm verify:package
  • pnpm verify:consumer
  • pnpm pack:dry-run
  • pnpm exec biome check scripts/
  • git diff --check

Note: pnpm lint was also attempted, but the repository currently has unrelated pre-existing formatting issues in src/components/auth/forms/two-factor-form.tsx, src/components/settings/providers/provider-cell.tsx, and src/hooks/use-mobile.ts. The new scripts pass targeted Biome checks.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 172e91f5-f773-429c-b6dc-10dc0d014d88

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/prepare-api7-npm-package

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@juzhiyuan juzhiyuan closed this May 1, 2026
@juzhiyuan juzhiyuan deleted the codex/prepare-api7-npm-package branch May 1, 2026 14:49
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