- Change the
name
attribute in the\package.json
to your library name. - Reset the
version
attribute to1.0.0
. - Create your components in the
./src/components
folder.(Refer the sample components). - Export your component in the
./src/components/index.tsx
file. (Refer the sample exports). - Finally remove the unwanted sample components.
npm run build
- The will convert and bundle your TypeScript code to Vanila JavaScript.
- Refer the link Step 3 to see how to test your package locally.
- Refer the link Step 4 to see how to publish your package to NPM.