0.4.2-alpha.3 • Published 2 years ago
@uxstorm_sincronia/typescript-plugin v0.4.2-alpha.3
@sincronia/typescript-plugin
Overview
This plugin allows you to run the TypeScript compiler on .ts
files. Supports tsconfig.json
files.
Installation
npm i -D @sincronia/typescript-plugin
Options
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 |
Order of Configurations
- Load from
sinc.config.js
options. - Check for
tsconfig.json
file and and override any overlapping values.
Example Usage
This example takes .ts
files and only type checks them.
//sinc.config.js
module.exports={
rules:{
match:/\.ts$/,
plugins:[
name:"@sincronia/typescript-plugin",
options:{
transpile:false
}
]
}
};
0.4.2-alpha.3
2 years ago