Besides being able to use packages internally in the monorepository, you can also publish them to NPM install them in other (hopefully Cantara 😉) projects.
To do that, you first need to build the package yourself.
ctra build <package-name>
After that, the compiled version of your package can be found under
TypeScript types are generated automatically! So all consumers of this packages will get autocompletion out of the box.
Now you are ready to publish it!
To do this, just invoke the standard npm
Make sure that
private is not set to true
true in the package's
ctra run <package-name> publish
This will execute
npm publish for your package.
Congrats! Your package is now on NPM