https://docs.bit.dev/docs/sourcing-components
You have to run below command in root folder.
$ bit add root/src/my-app/src/component --This will add your project as component in your local memory
$ bit build -- This will build your added component in dist folder in your root folder
$ bit tag <componentName> <version> -- This will set version to the component
$ bit export <project.collection> -- This will publish your components in bit NPM