rescript-lang / rescript-lang/create-rescript-app

When adding to existing project with TS, configure gentype

Open
#44 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
ReScript
Stars
77
Forks
15
Avg merge
17h 54m
Merged PRs (30d)
1

Description

This could be a neat thing - configure gentype automatically whenever adding to an existing project with TS already installed.

We could:

  • Detect the config needed for "module" and "moduleResolution" in gentype via tsconfig.json
  • Warn of allowJs is not true in tsconfig.json and explain why it's needed

Going for a "1 command to get setup" approach.

cc @cometkim

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing-project setup command and inspect how it reads or updates tsconfig.json for TypeScript projects. Check how gentype is currently configured; done means one command detects module and moduleResolution needs and warns when allowJs is not true, explaining why it is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.