Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

@rescript/runtime dependency problems

$
0
0

i think including one in deps and one in devDeps should be the recommended approach for any real-world scenario.

  1. if you deploy with node-externals there’s no reason to include the compiler
  2. you shouldn’t be depending on implicitly included packages
  3. the compiler should only include dependencies that it actually needs, not include subdeps just because it’s convenient for the user of the lib
  4. semantically, it’s more correct to have rescript (tooling) under devDeps and runtime under deps.

i honestly think this is just a bad over-simplification, although it’s not even a big issue - now that i know about this, as a more experience rescript user, i’ll just have both installed. but i still feel the recommendation to only have rescript under deps is not just bad, it’s also incorrect


Viewing all articles
Browse latest Browse all 2592

Trending Articles