TypeScript plugin for Sincronia
npm install @sincronia/typescript-pluginThis plugin allows you to run the TypeScript compiler on .ts files. Supports tsconfig.json files.
``bash`
npm i -D @sincronia/typescript-plugin
| Key | Type | Default | Description |
| ----------------- | ---------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| transpile | boolean | true | Whether or not the contents of the typescript file should be transpiled. Useful if you want to use Babel to transpile instead but still want type checking |compilerOptions
| | typescript.CompilerOptions | null | Same as compilerOptions in a tsconfig.json file |
1. Load from sinc.config.js options.tsconfig.json
2. Check for file and and override any overlapping values.
This example takes .ts files and only type checks them.
`javascript``
//sinc.config.js
module.exports={
rules:{
match:/\.ts$/,
plugins:[
name:"@sincronia/typescript-plugin",
options:{
transpile:false
}
]
}
};