Tool Kit plugin to build TypeScript code
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/typescript
And add it to your repo's .toolkitrc.yml
:
plugins:
- '@dotcom-tool-kit/typescript'
Compile code with tsc
.
Property | Description | Type |
---|---|---|
configPath |
to the TypeScript config file. Uses TypeScript's own tsconfig.json resolution by default | string |
build |
Run Typescript in build mode. | true |
watch |
Run Typescript in watch mode. | true |
noEmit |
Run Typescript with --noEmit , for checking your types without outputting compiled Javascript. |
true |
All properties are optional.