I have a React/Rescript software that is a general purpose library. I do not want yet to publish it on the web.
But the only way I could use it was to create symbolic links. All proposed solutions I found on the
web resulted in a duplicate react problem.
What is the correct Rescript equivalent of opam pin add . or dune install for an OCaml package ?
I finally found a way, but there is still a strange thing:
in package.json, I add a dependency like: "rescript-mylib": "file:path_to_package"
I add the dependency in bsconfig.json
I do an open RescriptMylib in the .res file using it.
Remain a question: When I use rescript-future, I do not need the last step (open RescriptFuture). Why?
Step 3) was hard to guess, because there is a name transformation rescript-mylib => RescriptMylib.
Where is this documented ? I do not see any difference between rescript-mylib and rescript-future except the local installation?
Many thanks, indeed, “namespace”: true was the reason I needed the open.
There is still a duplicate warning issue: Duplicated package: @rescript/react