@twin.org/ts-to-schema 0.0.1-next.14 → 0.0.1-next.16
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 +1 -1
- package/dist/esm/index.mjs +1 -1
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/CLI.md +13 -5
- package/docs/reference/functions/actionCommandTsToSchema.md +9 -3
- package/docs/reference/functions/buildCommandTsToSchema.md +3 -1
- package/docs/reference/functions/tsToSchema.md +9 -3
- package/docs/reference/interfaces/ITsToSchemaConfig.md +1 -1
- package/package.json +8 -8
package/dist/cjs/index.cjs
CHANGED
|
@@ -238,7 +238,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
238
238
|
return this.execute({
|
|
239
239
|
title: "TWIN TypeScript To Schema",
|
|
240
240
|
appName: "ts-to-schema",
|
|
241
|
-
version: "0.0.1-next.
|
|
241
|
+
version: "0.0.1-next.16",
|
|
242
242
|
icon: "⚙️ ",
|
|
243
243
|
supportsEnvFiles: false,
|
|
244
244
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -235,7 +235,7 @@ class CLI extends CLIBase {
|
|
|
235
235
|
return this.execute({
|
|
236
236
|
title: "TWIN TypeScript To Schema",
|
|
237
237
|
appName: "ts-to-schema",
|
|
238
|
-
version: "0.0.1-next.
|
|
238
|
+
version: "0.0.1-next.16",
|
|
239
239
|
icon: "⚙️ ",
|
|
240
240
|
supportsEnvFiles: false,
|
|
241
241
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/docs/changelog.md
CHANGED
|
@@ -30,19 +30,25 @@ Run the app.
|
|
|
30
30
|
|
|
31
31
|
#### Parameters
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
##### argv
|
|
34
|
+
|
|
35
|
+
`string`[]
|
|
34
36
|
|
|
35
37
|
The process arguments.
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
##### localesDirectory?
|
|
40
|
+
|
|
41
|
+
`string`
|
|
38
42
|
|
|
39
43
|
The directory for the locales, default to relative to the script.
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
##### options?
|
|
42
46
|
|
|
43
47
|
Additional options.
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
###### overrideOutputWidth
|
|
50
|
+
|
|
51
|
+
`number`
|
|
46
52
|
|
|
47
53
|
Override the output width.
|
|
48
54
|
|
|
@@ -62,7 +68,9 @@ Configure any options or actions at the root program level.
|
|
|
62
68
|
|
|
63
69
|
#### Parameters
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
##### program
|
|
72
|
+
|
|
73
|
+
`Command`
|
|
66
74
|
|
|
67
75
|
The root program command.
|
|
68
76
|
|
|
@@ -6,15 +6,21 @@ Action the root command.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### configFile
|
|
10
|
+
|
|
11
|
+
`string`
|
|
10
12
|
|
|
11
13
|
The optional configuration file.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
### outputFolder
|
|
16
|
+
|
|
17
|
+
`string`
|
|
14
18
|
|
|
15
19
|
The output folder for the schemas.
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
### opts
|
|
22
|
+
|
|
23
|
+
`unknown`
|
|
18
24
|
|
|
19
25
|
The options for the command.
|
|
20
26
|
|
|
@@ -6,15 +6,21 @@ Convert the TypeScript definitions to JSON Schemas.
|
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### config
|
|
10
|
+
|
|
11
|
+
[`ITsToSchemaConfig`](../interfaces/ITsToSchemaConfig.md)
|
|
10
12
|
|
|
11
13
|
The configuration for the app.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
### outputFolder
|
|
16
|
+
|
|
17
|
+
`string`
|
|
14
18
|
|
|
15
19
|
The location of the folder to output the JSON schemas.
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
### workingDirectory
|
|
22
|
+
|
|
23
|
+
`string`
|
|
18
24
|
|
|
19
25
|
The folder the app was run from.
|
|
20
26
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/ts-to-schema",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.16",
|
|
4
4
|
"description": "Tool to convert TypeScript definitions to JSON schemas",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/twinfoundation/tools.git",
|
|
8
|
-
"directory": "
|
|
8
|
+
"directory": "apps/ts-to-schema"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
11
11
|
"license": "Apache-2.0",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/cli-core": "next",
|
|
18
18
|
"@twin.org/core": "next",
|
|
19
|
-
"@twin.org/nameof": "0.0.1-next.
|
|
20
|
-
"commander": "
|
|
21
|
-
"glob": "11.0.
|
|
22
|
-
"jsonschema": "1.
|
|
19
|
+
"@twin.org/nameof": "0.0.1-next.16",
|
|
20
|
+
"commander": "13.0.0",
|
|
21
|
+
"glob": "11.0.1",
|
|
22
|
+
"jsonschema": "1.5.0",
|
|
23
23
|
"ts-json-schema-generator": "2.4.0-next.1"
|
|
24
24
|
},
|
|
25
25
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"types": "./dist/types/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
+
"types": "./dist/types/index.d.ts",
|
|
30
31
|
"require": "./dist/cjs/index.cjs",
|
|
31
|
-
"import": "./dist/esm/index.mjs"
|
|
32
|
-
"types": "./dist/types/index.d.ts"
|
|
32
|
+
"import": "./dist/esm/index.mjs"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"files": [
|