1.0.8 • Published 3 years ago
@jambdev/tsc-hooks v1.0.8
TypeScript Compiler Hooks
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