How to use the `public` field in bsconfig.json?


#1

Hi, this post alerted me to the fact that there is a public field you can use to control what modules are exported by your library. However, when I tried it, it didn’t work. All I got were warnings like this:

IGNORED "Button" in public is ignored since it is notan existing module
IGNORED "Menu" in public is ignored since it is notan existing module
IGNORED "Slider" in public is ignored since it is notan existing module

Obviously, those modules do exist in my project. Bsconfig.json looks something like this:

...
"sources": [
    {
      "dir": "src",
      "subdirs": true,
      "public": [
        "Button",
        "Menu",
        "Slider"
      ]
    },
...