Skip to content

Improving the interaction between bsconfig & package.json #4621

Closed as not planned
@BlueHotDog

Description

@BlueHotDog

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleOld issues that went stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions