Rescript Init command

Hello Everyone,

I always create my rescript projects by the command npx rescript init . this creates a basic structure for me to work with a default bsconfig.json file which is very good.

But now I always have to add these 3 lines myself

  "jsx": { "version": 4, "mode": "classic" },
  "bs-dependencies": ["@rescript/react"],
  "reason": {"react-jsx": 3}

Why can’t npx rescript init . command add these 3 lines for me? I know these are react specific and rescript is more generic but can we please have a flag like npx rescript init react . so that we don’t have to memorize these 3 lines ourselves?

1 Like