@twin.org/ts-to-openapi 0.0.1-next.4 → 0.0.1-next.7
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/dist/cjs/index.cjs +7 -4
- package/dist/esm/index.mjs +6 -3
- package/dist/types/cli.d.ts +5 -1
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/CLI.md +9 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1099,16 +1099,19 @@ class CLI extends cliCore.CLIBase {
|
|
|
1099
1099
|
* Run the app.
|
|
1100
1100
|
* @param argv The process arguments.
|
|
1101
1101
|
* @param localesDirectory The directory for the locales, default to relative to the script.
|
|
1102
|
+
* @param options Additional options.
|
|
1103
|
+
* @param options.overrideOutputWidth Override the output width.
|
|
1102
1104
|
* @returns The exit code.
|
|
1103
1105
|
*/
|
|
1104
|
-
async run(argv, localesDirectory) {
|
|
1106
|
+
async run(argv, localesDirectory, options) {
|
|
1105
1107
|
return this.execute({
|
|
1106
1108
|
title: "TWIN TypeScript To OpenAPI",
|
|
1107
1109
|
appName: "ts-to-openapi",
|
|
1108
|
-
version: "0.0.1-next.
|
|
1110
|
+
version: "0.0.1-next.7",
|
|
1109
1111
|
icon: "⚙️ ",
|
|
1110
|
-
supportsEnvFiles: false
|
|
1111
|
-
|
|
1112
|
+
supportsEnvFiles: false,
|
|
1113
|
+
overrideOutputWidth: options?.overrideOutputWidth
|
|
1114
|
+
}, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
|
|
1112
1115
|
}
|
|
1113
1116
|
/**
|
|
1114
1117
|
* Configure any options or actions at the root program level.
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1096,15 +1096,18 @@ class CLI extends CLIBase {
|
|
|
1096
1096
|
* Run the app.
|
|
1097
1097
|
* @param argv The process arguments.
|
|
1098
1098
|
* @param localesDirectory The directory for the locales, default to relative to the script.
|
|
1099
|
+
* @param options Additional options.
|
|
1100
|
+
* @param options.overrideOutputWidth Override the output width.
|
|
1099
1101
|
* @returns The exit code.
|
|
1100
1102
|
*/
|
|
1101
|
-
async run(argv, localesDirectory) {
|
|
1103
|
+
async run(argv, localesDirectory, options) {
|
|
1102
1104
|
return this.execute({
|
|
1103
1105
|
title: "TWIN TypeScript To OpenAPI",
|
|
1104
1106
|
appName: "ts-to-openapi",
|
|
1105
|
-
version: "0.0.1-next.
|
|
1107
|
+
version: "0.0.1-next.7",
|
|
1106
1108
|
icon: "⚙️ ",
|
|
1107
|
-
supportsEnvFiles: false
|
|
1109
|
+
supportsEnvFiles: false,
|
|
1110
|
+
overrideOutputWidth: options?.overrideOutputWidth
|
|
1108
1111
|
}, localesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), "../locales"), argv);
|
|
1109
1112
|
}
|
|
1110
1113
|
/**
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -8,9 +8,13 @@ export declare class CLI extends CLIBase {
|
|
|
8
8
|
* Run the app.
|
|
9
9
|
* @param argv The process arguments.
|
|
10
10
|
* @param localesDirectory The directory for the locales, default to relative to the script.
|
|
11
|
+
* @param options Additional options.
|
|
12
|
+
* @param options.overrideOutputWidth Override the output width.
|
|
11
13
|
* @returns The exit code.
|
|
12
14
|
*/
|
|
13
|
-
run(argv: string[], localesDirectory?: string
|
|
15
|
+
run(argv: string[], localesDirectory?: string, options?: {
|
|
16
|
+
overrideOutputWidth?: number;
|
|
17
|
+
}): Promise<number>;
|
|
14
18
|
/**
|
|
15
19
|
* Configure any options or actions at the root program level.
|
|
16
20
|
* @param program The root program command.
|
package/docs/changelog.md
CHANGED
|
@@ -24,7 +24,7 @@ The main entry point for the CLI.
|
|
|
24
24
|
|
|
25
25
|
### run()
|
|
26
26
|
|
|
27
|
-
> **run**(`argv`, `localesDirectory`?): `Promise`\<`number`\>
|
|
27
|
+
> **run**(`argv`, `localesDirectory`?, `options`?): `Promise`\<`number`\>
|
|
28
28
|
|
|
29
29
|
Run the app.
|
|
30
30
|
|
|
@@ -38,6 +38,14 @@ The process arguments.
|
|
|
38
38
|
|
|
39
39
|
The directory for the locales, default to relative to the script.
|
|
40
40
|
|
|
41
|
+
• **options?**
|
|
42
|
+
|
|
43
|
+
Additional options.
|
|
44
|
+
|
|
45
|
+
• **options.overrideOutputWidth?**: `number`
|
|
46
|
+
|
|
47
|
+
Override the output width.
|
|
48
|
+
|
|
41
49
|
#### Returns
|
|
42
50
|
|
|
43
51
|
`Promise`\<`number`\>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/ts-to-openapi",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.7",
|
|
4
4
|
"description": "Tool to convert TypeScript REST route definitions to OpenAPI Specifications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
18
|
"@twin.org/cli-core": "next",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
|
-
"@twin.org/nameof": "0.0.1-next.
|
|
20
|
+
"@twin.org/nameof": "0.0.1-next.7",
|
|
21
21
|
"@twin.org/web": "next",
|
|
22
22
|
"commander": "12.1.0",
|
|
23
23
|
"glob": "11.0.0",
|