File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export function createGraph(
1313 * include をによる絞り込みを行わない理由は、include から参照される include 指定されていないファイルをここで除外したくないため。
1414 * exclude は、ユーザーが明確に不要と指定しているため、たとえ include に含まれたり include 対象ファイルと関連をもつファイルであったとしても除外して良い。
1515 **/
16- opt : Pick < OptionValues , 'exclude' | 'dir' | 'tsconfig' > ,
16+ opt : Pick < OptionValues , 'exclude' | 'dir' | 'tsconfig' | 'vue' > ,
1717) : { graph : Graph ; meta : Meta } {
1818 const configPath = opt . tsconfig
1919 ? path . resolve ( opt . tsconfig )
@@ -36,7 +36,7 @@ export function createGraph(
3636 const isNotMatchSomeExclude = ( filename : string ) =>
3737 ! isMatchSomeExclude ( filename ) ;
3838
39- if ( false ) {
39+ if ( ! opt . vue ) {
4040 const { options, fileNames : fullFilePaths } = ts . parseJsonConfigFileContent (
4141 config ,
4242 ts . sys ,
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ program
6161 . option (
6262 '--config-file' ,
6363 'Specify the relative path to the config file (from cwd or specified by -d, --dir). Default is .tsgrc.json.' ,
64- ) ;
64+ )
65+ . option ( '--vue' , '(experimental) Enable Vue.js support' ) ;
6566program . parse ( ) ;
6667
6768const opt = program . opts < Partial < OptionValues >> ( ) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export type OptionValues = {
1111 TB ?: boolean ;
1212 configFile ?: string ;
1313 measureInstability ?: boolean ;
14+ vue ?: boolean ;
1415} ;
1516
1617type FileName = string ;
You can’t perform that action at this time.
0 commit comments