rslib
rslib copied to clipboard
[Bug]: `npx create-rslib --template` is broken
Version
Rslib 0.0.18
Details
This is expected to work:
npx create-rslib --template react-js --dir my-lib
Ref:
- https://github.com/rspack-contrib/create-rstack/issues/21
- https://github.com/web-infra-dev/rslib/issues/46#issuecomment-2477890931
Reproduce link
/
Reproduce Steps
/
The template is now generated with optional tools, and the name should be changed to pnpm create rslib --template "[react]-[]-js" --dir my-lib2.
Yes, the name is ugly. We might, should support an extra argv for tools, for example pnpm create rslib --template react-js --tool vitest --tool storybook. What do you think?
Agreed, the template name should be clean and intuitive and a new tool flag is also helpful.
@fi3ework @Timeless0911 Is there any progress on this issue?
let me check this issue.