-
-
Notifications
You must be signed in to change notification settings - Fork 57
fix(create-rslib): support repeatable —tools flag
#1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rslib ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for repeatable --tools flags in the create-rslib CLI, allowing users to specify multiple tools by repeating the flag (e.g., --tools storybook --tools biome). This fixes issue #426.
Key changes:
- Updated
create-rstackdependency from 1.7.4 to 1.7.6 to support repeatable flag handling - Refactored test suite to use structured
TemplateCaseobjects instead of string-based template names - Updated documentation examples to demonstrate the new repeatable
--toolsflag syntax
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/create-rslib/package.json | Updated create-rstack dependency to 1.7.6 |
| pnpm-lock.yaml | Updated lockfile to reflect new create-rstack version |
| packages/create-rslib/src/index.ts | Modified template name parsing to handle tools from argv and compose template names |
| packages/create-rslib/test/index.test.ts | Refactored test cases to use TemplateCase interface with structured data |
| packages/create-rslib/test/helper.ts | Updated test helper to accept TemplateCase objects and build commands with repeatable --tools flags |
| website/docs/en/guide/start/quick-start.mdx | Updated documentation to show repeatable --tools flag usage with concrete example |
| website/docs/zh/guide/start/quick-start.mdx | Updated Chinese documentation to show repeatable --tools flag usage with concrete example |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
fix #426.
Related Links
Checklist