@Big Chungus do I get correctly that https://github.com/mpetuska/npm-publish can be used to publish a Node-based CLI coded in Kotlin, or is it only for libraries? I’m asking because I’m looking for a way to create tools in Kotlin that are easy to distribute
b
Big Chungus
02/23/2023, 2:37 PM
It does require binaries.library(), but even with that you should be able to declare main() method and specify bin metadata in packageJson {}
tl;dr; yes, but you still need binaries.library()
👌 1
👌🏾 1
Do let me know if you get it working, I'd like to link the project as a use-case sample
p
Piotr Krzemiński
02/23/2023, 2:39 PM
sure, I’m tentatively planning to create a public PoC