Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out what to do with the wasp ts-setup command for Wasp's TS config #2390

Open
sodic opened this issue Nov 28, 2024 · 0 comments
Open
Labels
dx shouldfix We should do/fix this at some point

Comments

@sodic
Copy link
Contributor

sodic commented Nov 28, 2024

When we released the Wasp TS config as an experimental feature, we added a wasp ts-setup command to prepare the project for using the TS config.

Currently (as of 0.15.2), the command doesn't do much.

To properly set up a project that uses the TS config, it's necessary to go through the steps described in the docs, and wasp ts-setup currently only covers two of them.

All the steps are:

  • Rename and create new tsconfig.json files.
  • Potentially add type: module to package.json.
  • Rename main.wasp to something else.
  • Run wasp ts-setup
    • It adds the wasp-config package to your package.json's devDependencies.
    • It then runs npm install
  • Create an empty main.wasp.ts file and start writing inside.

What we should do:

  • Let new users choose what they want to use (Wasp or TS) when creating a new project.
  • Let old users migrate more easily, by improving the wasp ts-setup command to do everything or by detecting that the user wants to use the TS SDK by looking for main.wasp.ts (which is tricky due to the way wasp start is set up).

Context:

@sodic sodic added shouldfix We should do/fix this at some point dx labels Nov 28, 2024
@sodic sodic mentioned this issue Nov 28, 2024
@sodic sodic changed the title Rework the TS setup command for wasp TS config Figure out what to do with the wasp ts-setup command for Wasp's TS config Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx shouldfix We should do/fix this at some point
Projects
None yet
Development

No branches or pull requests

1 participant