File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 37
37
. option ( '-w, --watch' , 'Watch mode' )
38
38
. option ( '--verbose' , 'Display verbose output' )
39
39
. action ( async ( cwd : string , options : CLIOptions ) => {
40
+ logger . enableDebug ( options . verbose ) ;
40
41
const cliOpts = Object . assign ( { cwd } , options ) ;
41
- console . log ( 'cli options:' , cliOpts ) ;
42
+
43
+ logger . debug ( 'cli options:' , cliOpts ) ;
42
44
43
45
const config = await getConfig ( cliOpts ) ;
44
- console . log ( 'config file:' , config ) ;
46
+ logger . debug ( 'config file:' , config ) ;
45
47
46
48
const mergedOpts = Object . assign (
47
49
{
52
54
) as CLIOptions ;
53
55
54
56
mergedOpts . cwd ||= process . cwd ( ) ;
55
- console . log ( 'merged options:' , mergedOpts ) ;
56
-
57
57
logger . enableDebug ( options . verbose ) ;
58
+
59
+ logger . debug ( 'merged options:' , mergedOpts ) ;
60
+
58
61
await generateCode ( mergedOpts ) ;
59
62
} ) ;
60
63
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " @tomjs/tsconfig/node.json" ,
3
- "include" : [" src" , " test " , " *.ts " ]
3
+ "include" : [" src" , " *.ts " , " package.json " ]
4
4
}
You can’t perform that action at this time.
0 commit comments