Skip to content

Typescript compiler glob support for command line

Notifications You must be signed in to change notification settings

jogaram/tsc-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published