tsc

  • By default tsc is only used for type-checking and to generate .d.ts files. Compilation is done by swc.

A tsconfig.json is required for you to have at your project's root folder. mhy will create one if it doesn't exists yet.

Default command

tsc --project ./tsconfig.json

CLI Options

https://www.typescriptlang.org/docs/handbook/compiler-options.html

Examples

Default CLI

mhy tsc

With watcher

mhy tsc -w

Last updated