feat(create-rslib): support --no-git - #1835
Conversation
Deploying rslib with
|
| Latest commit: |
1b0dd78
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://73e829b4.rslib.pages.dev |
| Branch Preview URL: | https://chenjiahan-feat-create-rslib.rslib.pages.dev |
There was a problem hiding this comment.
Pull request overview
This PR updates create-rslib to initialize a Git repository by default, while providing an opt-out via the new --no-git flag. It also bumps related dependencies to enable/validate the behavior and updates the quick-start docs in both English and Chinese to reflect the new default.
Changes:
- Add
--no-gitbehavior increate-rslibby passing agitboolean into@rstackjs/create-toolkit. - Upgrade
@rstackjs/create-toolkitto2.2.0andheading-caseto^1.1.5. - Update EN/ZH quick-start docs to remove the manual
git initstep and document--no-git.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/guide/start/quick-start.mdx | Document Git initialization default and add --no-git option in ZH quick-start. |
| website/docs/en/guide/start/quick-start.mdx | Document Git initialization default and add --no-git option in EN quick-start. |
| pnpm-workspace.yaml | Bump workspace catalog versions for @rstackjs/create-toolkit and heading-case. |
| pnpm-lock.yaml | Update lockfile to reflect the dependency bumps. |
| packages/create-rslib/src/index.ts | Enable Git init by default and disable it when --no-git is provided. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b0dd78102
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
This PR makes
create-rslibinitialize a Git repository by default while allowing users to opt out with--no-git. It upgrades@rstackjs/create-toolkitto v2.2.1, which handles the flag directly, andheading-caseto v1.1.5 for correct Git capitalization checks, and updates the English and Chinese quick-start documentation.Related Links
Checklist