This repo is a CLI for creating a React.js component library, using typescript (eg. *.tsx files), rollup.js for bundling, ready for deploy on npm with np, featuring Jest for testing as well as Next.js and Storybook for developing.
$ yarn global add create-lib-react
then
$ create-lib-react
& follow the instructions
I recommend using yarn but you can change any command to npm for eg.
$ npm i -g create-lib-react