How to install a rescript library
First install the rescript library in npm:
npm install <my-package>pnpm install <my-package>bun add <my-package>Add the rescript library to your rescript.json file
{"name": "your-project-name","sources": [ { "dir": "src", "subdirs": true }],"package-specs": [ { "module": "esmodule", "in-source": true }],"suffix": ".res.js","bs-dependencies": [ "@rescript/core", "<my-package>"],"bsc-flags": ["-open RescriptCore"]}Use the project as you would if it were in your src directory
let project = MyProject.make()