cph-cachet / carp.core-kotlin

Infrastructure-agnostic framework for distributed data collection.
https://carp.cachet.dk/core/
MIT License
21 stars 3 forks source link

Generate npm packages #440

Closed Whathecode closed 1 year ago

Whathecode commented 1 year ago

Generate JS/TS sources as npm packages.

The JS/TS sources generated by the compiler are created as separate "-generated" packages, and a clean API facade package is created for each module.

With this PR, after running verifyTsDeclarations, all modules are packaged as scoped packages in typescript-declarations/node_modules/@cachet. For now, they can be copied from there and attached to releases. A separate later PR can look into publishing them on merges to the main branch to npm.