tsc-glob
v2.0.1
Published
Typescript compiler wrapper to support 'filesGlob' tsconfig.json file option
Downloads
10
Readme
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