I use rollup + typescript to create lib a lot... so I created A CLI tool for Setting up it
npx crts my-cool-lib
my-cool-lib/
βββ src
βΒ Β βββ index.ts
βββ package.json
βββ rollup.config.ts
βββ tsconfig.json
npm i
npm run build