It seems to me there is no reason why you couldn't publish source code in any language to npm!
Out of curiosity, are there any new languages or platforms that officially use npm as a package manager?
For example [esy](https://esy.sh/en/) is a package manager for reasonml and ocaml that uses npm.
Thanks!