Bsconfig name vs npm package name vs namespace?

So I am trying to publish a namespaced npm package…@nobleai/rescript-x.
Docs say I should set namespace: true in my bsconfig, and the name will be driven from the name set there. If i set the name then to be something legibile like x. i get an error that it must match the package.json name? So what then is my namespace module called??

TiA
A

You keep the name identical to the one in package.json and set a custom one in the namespace field.

Example:

2 Likes

Ahh perfect. It wasnt clear namespace took a string. maybe i missed it.