1.0.4 • Published 3 years ago
rollup-react-starter-lib-ts v1.0.4
rollup-react-starter-lib-ts
Template to create your own Typescript React library with Rollup.
- Rollup v3 :tada:
- Compatible with new and old React versions, generates ESM/CJS files.
Build & Publish
You can use this template and change the name under package.json.
Build
npm run buildBuild & Watch
npm run build:watchPublish (public library)
Be sure you are either logged in under npm login or you have a token (check https://docs.npmjs.com/creating-and-viewing-access-tokens).
npm run publish --access=publicFor local testing
cd your-lib-folder/
npm link cd your-app/
npm link name-of-your-lib