@sincronia/typescript-plugin

0.4.2-alpha.3 • Public • Published

@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

  1. Load from sinc.config.js options.
  2. 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
      }
    ]
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i @sincronia/typescript-plugin

Weekly Downloads

67

Version

0.4.2-alpha.3

License

GPL-3.0

Unpacked Size

41.8 kB

Total Files

4

Last publish

Collaborators

  • jarrod.deboy
  • brandonsmith-nuvolo
  • jakeye-nuvolo
  • nuvolo-admin