Skip to content

fix(create-rstack): only add staged setup at Git root - #288

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-create-rstack-staged-setup
Aug 10, 2026
Merged

fix(create-rstack): only add staged setup at Git root#288
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-create-rstack-staged-setup

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

create-rstack currently adds repository-level staged checks even when Git initialization is disabled or the generated project is nested inside another worktree.

This PR upgrades @rstackjs/create-toolkit to v2.2.2 and uses onGitResolved to inject the prepare script, pre-commit hook, and define.staged() only when the generated project is its Git root.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2620b47
Status: ✅  Deploy successful!
Preview URL: https://79db6f41.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-create-rstack-57rr.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 0833105 into main Aug 10, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-create-rstack-staged-setup branch August 10, 2026 10:59
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