mhy
  • Introduction
  • Basics
    • Installation
    • Usage
    • UI
    • Ecosystem
    • How does it work?
  • Tools
    • Built-ins
      • boot
      • config
      • dep
      • options
      • ui
    • Processes
      • eslint
      • jest
      • node
      • nodemon
      • prettier
      • standard-version
      • storybook-start
      • storybook-build
      • tsc
      • webpack
      • webpack-bundle-analyzer
      • webpack-dev-server
    • Configs
      • eslint
      • gitignore
      • jest
      • manifest
      • mhy
      • npmignore
      • prettier
      • storybook
      • typescript
      • webpack
  • IDE setup
    • WebStorm & PHPStorm
    • VSCode
  • Recipes and Examples
    • package.json overrides
    • Add your own
  • Others
    • FAQ
    • Help
    • Development of mhy
    • Suggest a library
Powered by GitBook
On this page
  • Default command
  • CLI Options
  • Examples
  • Default CLI
  • With watcher

Was this helpful?

  1. Tools
  2. Processes

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
Previousstorybook-buildNextwebpack

Last updated 2 years ago

Was this helpful?