brodycj / tsc-glob

Typescript compiler glob support for command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsc-glob

The purpose of this command is to add support for file globbing to Typescript compiler tsc.

Globs can be provided by:

  • Reading filesGlob property of tsconfig.json
  • Providing it through command line arguments

All options not supported by this package will be passed to tsc compiler command

Installation

Install the package

npm install --save-dev tsc-glob

Usage

tsc-glob [options]

Options

alias command description
-h --help output usage information
-V --version output the version number
-f --tsconfig-file tsconfig.json file location. Default ./tsconfig.json
-g --files-glob File globs

Examples

Using alternative tsconfig.json file

tsc-glob --tsconfig-file config/tsconfig.json --outDir dist --declaration

Using command globs (ignores tsconfig.json filesGlob)

tsc-glob --files-globs src/**/ts/*.ts --outDir dist --declaration

About

Typescript compiler glob support for command line


Languages

Language:JavaScript 100.0%