Closed as not planned
Description
Hey, following up the discussion here:
https://reasonml.chat/t/moving-bsconfig-to-package-json/2458/12
Opening this issue.
The problem
- Developers need, for every package they install, add it to package.json + add it to bsconfig, this is both confusing(isnt required in any other common tojs lang) and error-prone.
- Package name is required to match in bsconfig and package.json else weird errors happen
The theory
package.json should handle everything related to dependency management and packaging while bsconfig should handle compiler options(flags/errors/ppx etc).
The solution
- remove the dependencies from bsconfig
- remove name from bsconfig
- when rescript runs make-world it'll scan all node_modules, packages that include a bsconfig will be compiled.
- when rescript runs bsb, nothing changes
Bonus points
rename bsconfig to rsconfig?