Skip to content

Conversation

@ianmacartney
Copy link
Member

@ianmacartney ianmacartney commented Feb 3, 2026

Summary

  • Add build:codegen and build:clean scripts
  • Update dev:build to use npm run build:codegen
  • Standardize predev with path-exists check
  • Add preversion and prepublishOnly hooks
  • Simplify alpha/release scripts
  • Update version script to use vim pattern

Aligning with the template-component pattern.

Summary by CodeRabbit

  • Chores
    • Streamlined build and publication workflows by restructuring development scripts.
    • Updated pre-version and pre-publish procedures to simplify the release process.

- Add build:codegen and build:clean scripts
- Update dev:build to use npm run build:codegen
- Standardize predev with path-exists check
- Add preversion and prepublishOnly hooks
- Simplify alpha/release scripts
- Update version script to use vim pattern
@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
better-auth Ready Ready Preview, Comment Feb 3, 2026 4:16am

Request Review

@ianmacartney ianmacartney requested review from erquhart and removed request for Nicolapps February 3, 2026 04:15
@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 2026

📝 Walkthrough

Walkthrough

Configuration changes to package.json scripts. The clean script was removed, and build:codegen and build:clean scripts were added. The preversion and prepublishOnly workflows were reorganized to run dependency installation, code generation, linting, and type checking in a revised sequence.

Changes

Cohort / File(s) Summary
Build and Publish Workflows
package.json
Removed clean script; added build:codegen and build:clean scripts. Restructured preversion to run npm ci, build:clean, then lint/typecheck/test in parallel. Updated prepublishOnly to perform npm whoami check with login fallback.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 The scripts now dance in a cleaner way,
Codegen comes first to brighten the day,
Build and publish in order so neat,
Version bumps now march to a structured beat! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: standardize package.json scripts' accurately describes the main change in the PR, which involves standardizing and reworking scripts in package.json to align with a template-component pattern.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-package-scripts

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.

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