@kubb/plugin-ts 5.0.14 → 5.0.15
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/index.cjs +21 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -23
- package/dist/index.js.map +1 -1
- package/docs/guides/customization.md +2 -2
- package/kubb-extension.json +14 -0
- package/package.json +7 -5
|
@@ -24,10 +24,10 @@ A generated `Pet` becomes `ApiPet`. File names stay unchanged unless you also cu
|
|
|
24
24
|
|
|
25
25
|
## Map schema types
|
|
26
26
|
|
|
27
|
-
Replace [printer handlers](https://kubb.dev/extensions/kubb-labs/plugin-ts/options#printer) with TypeScript AST nodes.
|
|
27
|
+
Replace [printer handlers](https://kubb.dev/extensions/kubb-labs/plugin-ts/options#printer) with TypeScript AST nodes. Install `@typescript/typescript6` first, because `typescript` 7 no longer exports the compiler API.
|
|
28
28
|
|
|
29
29
|
```typescript [kubb.config.ts]
|
|
30
|
-
import ts from 'typescript'
|
|
30
|
+
import ts from '@typescript/typescript6'
|
|
31
31
|
import { pluginTs } from '@kubb/plugin-ts'
|
|
32
32
|
|
|
33
33
|
pluginTs({
|
package/kubb-extension.json
CHANGED
|
@@ -278,6 +278,20 @@
|
|
|
278
278
|
"value": "generic"
|
|
279
279
|
}
|
|
280
280
|
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"key": "banner",
|
|
284
|
+
"path": ["output", "banner"],
|
|
285
|
+
"label": "Banner",
|
|
286
|
+
"description": "Text added at the top of every generated file",
|
|
287
|
+
"type": "text"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"key": "footer",
|
|
291
|
+
"path": ["output", "footer"],
|
|
292
|
+
"label": "Footer",
|
|
293
|
+
"description": "Text added at the end of every generated file",
|
|
294
|
+
"type": "text"
|
|
281
295
|
}
|
|
282
296
|
]
|
|
283
297
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-ts",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.15",
|
|
4
4
|
"description": "Generate TypeScript types, interfaces, and enums with Kubb. The base plugin other Kubb plugins build on for type safety.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generation",
|
|
@@ -67,16 +67,18 @@
|
|
|
67
67
|
"registry": "https://registry.npmjs.org/"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@kubb/parser-ts": "^5.
|
|
71
|
-
"typescript": "^6.0.
|
|
70
|
+
"@kubb/parser-ts": "^5.12.5",
|
|
71
|
+
"@typescript/typescript6": "^6.0.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@internals/shared": "0.0.0",
|
|
75
75
|
"@internals/utils": "0.0.0",
|
|
76
|
-
"kubb": "^5.
|
|
76
|
+
"kubb": "^5.12.5",
|
|
77
|
+
"typescript": "^7.0.2"
|
|
77
78
|
},
|
|
78
79
|
"peerDependencies": {
|
|
79
|
-
"kubb": "^5.
|
|
80
|
+
"kubb": "^5.12.5",
|
|
81
|
+
"typescript": "^7.0.2"
|
|
80
82
|
},
|
|
81
83
|
"engines": {
|
|
82
84
|
"node": ">=22.12"
|