Skip to content

Commit a8cddb0

Browse files
committed
Add --tsconfig CLI option to specify a TypeScript config file
1 parent aff4242 commit a8cddb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ program
1111
.option('-d, --directory <path>', 'location of files of supported filetypes')
1212
.option('-c, --require-config <path>', 'path to a requirejs config')
1313
.option('-w, --webpack-config <path>', 'path to a webpack config')
14+
.option('-t, --ts-config <path>', 'path to a typescript config')
1415
.option('--list-form', 'output the list form of the tree (one element per line)')
1516
.parse(process.argv);
1617

@@ -20,7 +21,8 @@ const options = {
2021
filename: program.args[0],
2122
root: program.directory,
2223
config: program.requireConfig,
23-
webpackConfig: program.webpackConfig
24+
webpackConfig: program.webpackConfig,
25+
tsConfig: program.tsConfig
2426
};
2527

2628
if (program.listForm) {

0 commit comments

Comments
 (0)