1.0.8 • Published 3 years ago

@jambdev/tsc-hooks v1.0.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

TypeScript Compiler Hooks

npm.io npm.io npm.io npm.io

Installation

For Project Specific tsc:

yarn add tsc-hooks --dev

For Global tsc:

yarn global add tsc-hooks

Getting Started

Example tsconfig.json

{
  "compilerOptions": {
    "outDir": "dist"
  },
  "include": [ "src/**/*" ],
  "exclude": [ "src/**/*.txt" ],
  "hooks": [ "copy-files" ] // hooks is a new property you can add to tsconfig to add custom hooks
  
  /* For more hooks look bellow... */
}

Available Hooks

What Can TSC Hooks Do?

  • TypeScript Compiler hooks are scripts that can execute on compilation of your TypeScript project using tsc
  • They can provide new tsconfig options to help your project run smoother
  • They can add new functionality to the compilation process