Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save joost-de-vries/cb9d6ad48d956fb96c273a55cdc9e6b5 to your computer and use it in GitHub Desktop.

Select an option

Save joost-de-vries/cb9d6ad48d956fb96c273a55cdc9e6b5 to your computer and use it in GitHub Desktop.

Because sbt-typescript uses the standard tsconfig.json file for configuration it is possible to compile using both sbt-typescript and tsc. I use this mostly to have my IDE (IntelliJ) signal type errors early while I'm typing. To do that I only have to check 'enable typescript compiler' and 'use tsconfig.json'. Similarly you can run tsc -p -w from the commandline. The only downside is that you need to copy the right npm dependencies to node_modules from the directory in target/web/node_modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment