You can deploy your component by execute npm publish
.
Make sure your entry file is src/index.tsx
.
We have configured all npm publish configurations, include:
npm run build
before publish.main
and types
in package.json
,.gitignore
and .npmignore
.