@twin.org/ts-to-schema 0.0.2-next.4 → 0.0.2-next.6
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 +2 -2
- package/dist/esm/index.mjs +2 -2
- package/docs/changelog.md +28 -0
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -145,7 +145,7 @@ async function generateSchemas(typeSource, type, autoExpandTypes, outputWorkingD
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
const referencedSchemas = {};
|
|
148
|
-
toolsCore.JsonSchemaHelper.extractTypes(allSchemas, [type, ...autoExpandTypes
|
|
148
|
+
toolsCore.JsonSchemaHelper.extractTypes(allSchemas, [type, ...autoExpandTypes], referencedSchemas);
|
|
149
149
|
toolsCore.JsonSchemaHelper.expandTypes(referencedSchemas, autoExpandTypes);
|
|
150
150
|
return referencedSchemas;
|
|
151
151
|
}
|
|
@@ -185,7 +185,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
185
185
|
return this.execute({
|
|
186
186
|
title: "TWIN TypeScript To Schema",
|
|
187
187
|
appName: "ts-to-schema",
|
|
188
|
-
version: "0.0.2-next.
|
|
188
|
+
version: "0.0.2-next.6", // x-release-please-version
|
|
189
189
|
icon: "⚙️ ",
|
|
190
190
|
supportsEnvFiles: false,
|
|
191
191
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -142,7 +142,7 @@ async function generateSchemas(typeSource, type, autoExpandTypes, outputWorkingD
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
const referencedSchemas = {};
|
|
145
|
-
JsonSchemaHelper.extractTypes(allSchemas, [type, ...autoExpandTypes
|
|
145
|
+
JsonSchemaHelper.extractTypes(allSchemas, [type, ...autoExpandTypes], referencedSchemas);
|
|
146
146
|
JsonSchemaHelper.expandTypes(referencedSchemas, autoExpandTypes);
|
|
147
147
|
return referencedSchemas;
|
|
148
148
|
}
|
|
@@ -182,7 +182,7 @@ class CLI extends CLIBase {
|
|
|
182
182
|
return this.execute({
|
|
183
183
|
title: "TWIN TypeScript To Schema",
|
|
184
184
|
appName: "ts-to-schema",
|
|
185
|
-
version: "0.0.2-next.
|
|
185
|
+
version: "0.0.2-next.6", // x-release-please-version
|
|
186
186
|
icon: "⚙️ ",
|
|
187
187
|
supportsEnvFiles: false,
|
|
188
188
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/ts-to-schema - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/tools/compare/ts-to-schema-v0.0.2-next.5...ts-to-schema-v0.0.2-next.6) (2025-08-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **ts-to-schema:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/tools-core bumped from 0.0.2-next.5 to 0.0.2-next.6
|
|
16
|
+
|
|
17
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/tools/compare/ts-to-schema-v0.0.2-next.4...ts-to-schema-v0.0.2-next.5) (2025-08-19)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* correctly handle auto expand types ([57fce0f](https://github.com/twinfoundation/tools/commit/57fce0f9ec4a0876665d70adc6e885f6feb3caf7))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/tools-core bumped from 0.0.2-next.4 to 0.0.2-next.5
|
|
30
|
+
|
|
3
31
|
## [0.0.2-next.4](https://github.com/twinfoundation/tools/compare/ts-to-schema-v0.0.2-next.3...ts-to-schema-v0.0.2-next.4) (2025-08-19)
|
|
4
32
|
|
|
5
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/ts-to-schema",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.6",
|
|
4
4
|
"description": "Tool to convert TypeScript definitions to JSON schemas",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@twin.org/cli-core": "next",
|
|
18
18
|
"@twin.org/core": "next",
|
|
19
19
|
"@twin.org/nameof": "next",
|
|
20
|
-
"@twin.org/tools-core": "0.0.2-next.
|
|
20
|
+
"@twin.org/tools-core": "0.0.2-next.6",
|
|
21
21
|
"commander": "14.0.0",
|
|
22
22
|
"glob": "11.0.3",
|
|
23
23
|
"ts-json-schema-generator": "2.4.0"
|