The name of your build directory

Note: The value of this config is included in your project's .ignore files that control the behavior of git, ESLint, and Prettier. Therefore, it is not recommended to change this setting after you've started a project.

Default Value



The value of this config is assigned to the compilerOptions.outDir property in your tsconfig.json file.

If you decide to change this value, follow these guidelines:

  1. You must also update paths.main-module-path and paths.types-dts-path
  2. You must not use a name that collides with an existing directory in your project, such as src/ or tests/
  3. You should use a descriptive name such as lib/ or public/ to indicates that the folder contains your compiled JavaScript files

Example Update

$ hats config "lib/"
Edit this page on GitHub

Happy TypeScript
©2022 👨🏾‍💻 Kamar Mack