Skip to content

Commit 86c4f8f

Browse files
committed
fix(dev): cli options logs use logger.log
1 parent 88000e2 commit 86c4f8f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/vscode-dev/src/cli.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ cli
3737
.option('-w, --watch', 'Watch mode')
3838
.option('--verbose', 'Display verbose output')
3939
.action(async (cwd: string, options: CLIOptions) => {
40+
logger.enableDebug(options.verbose);
4041
const cliOpts = Object.assign({ cwd }, options);
41-
console.log('cli options:', cliOpts);
42+
43+
logger.debug('cli options:', cliOpts);
4244

4345
const config = await getConfig(cliOpts);
44-
console.log('config file:', config);
46+
logger.debug('config file:', config);
4547

4648
const mergedOpts = Object.assign(
4749
{
@@ -52,9 +54,10 @@ cli
5254
) as CLIOptions;
5355

5456
mergedOpts.cwd ||= process.cwd();
55-
console.log('merged options:', mergedOpts);
56-
5757
logger.enableDebug(options.verbose);
58+
59+
logger.debug('merged options:', mergedOpts);
60+
5861
await generateCode(mergedOpts);
5962
});
6063

packages/vscode-dev/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "@tomjs/tsconfig/node.json",
3-
"include": ["src", "test", "*.ts"]
3+
"include": ["src", "*.ts", "package.json"]
44
}

0 commit comments

Comments
 (0)