@hey-api/openapi-ts 0.64.15 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.cjs +7 -0
- package/dist/index.cjs +55 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +111 -30
- package/dist/index.d.ts +111 -30
- package/dist/index.js +56 -56
- package/dist/index.js.map +1 -1
- package/package.json +7 -34
package/bin/index.cjs
CHANGED
|
@@ -34,6 +34,10 @@ const params = program
|
|
|
34
34
|
'DEPRECATED. Manually set base in OpenAPI config instead of inferring from server value',
|
|
35
35
|
)
|
|
36
36
|
.option('-s, --silent', 'Set log level to silent')
|
|
37
|
+
.option(
|
|
38
|
+
'--no-log-file',
|
|
39
|
+
'Disable writing a log file. Works like --silent but without supressing console output',
|
|
40
|
+
)
|
|
37
41
|
.option(
|
|
38
42
|
'-w, --watch [value]',
|
|
39
43
|
'Regenerate the client when the input file changes?',
|
|
@@ -83,6 +87,7 @@ async function start() {
|
|
|
83
87
|
|
|
84
88
|
userConfig = processParams(params, [
|
|
85
89
|
'dryRun',
|
|
90
|
+
'logFile',
|
|
86
91
|
'experimentalParser',
|
|
87
92
|
'exportCore',
|
|
88
93
|
'useOptions',
|
|
@@ -113,6 +118,8 @@ async function start() {
|
|
|
113
118
|
userConfig.logs.level = 'silent';
|
|
114
119
|
}
|
|
115
120
|
|
|
121
|
+
userConfig.logs.file = userConfig.logFile;
|
|
122
|
+
|
|
116
123
|
if (typeof params.watch === 'string') {
|
|
117
124
|
userConfig.watch = Number.parseInt(params.watch, 10);
|
|
118
125
|
}
|