@kubb/plugin-zod 5.0.0-alpha.9 → 5.0.0-beta.10

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.
Files changed (46) hide show
  1. package/LICENSE +17 -10
  2. package/README.md +25 -7
  3. package/dist/index.cjs +1087 -105
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.ts +369 -4
  6. package/dist/index.js +1074 -105
  7. package/dist/index.js.map +1 -1
  8. package/extension.yaml +485 -0
  9. package/package.json +43 -73
  10. package/src/components/Operations.tsx +25 -18
  11. package/src/components/Zod.tsx +21 -121
  12. package/src/constants.ts +5 -0
  13. package/src/generators/zodGenerator.tsx +174 -160
  14. package/src/index.ts +11 -2
  15. package/src/plugin.ts +67 -156
  16. package/src/printers/printerZod.ts +365 -0
  17. package/src/printers/printerZodMini.ts +310 -0
  18. package/src/resolvers/resolverZod.ts +57 -0
  19. package/src/types.ts +130 -115
  20. package/src/utils.ts +222 -0
  21. package/dist/components-B7zUFnAm.cjs +0 -890
  22. package/dist/components-B7zUFnAm.cjs.map +0 -1
  23. package/dist/components-eECfXVou.js +0 -842
  24. package/dist/components-eECfXVou.js.map +0 -1
  25. package/dist/components.cjs +0 -4
  26. package/dist/components.d.ts +0 -56
  27. package/dist/components.js +0 -2
  28. package/dist/generators-BjPDdJUz.cjs +0 -301
  29. package/dist/generators-BjPDdJUz.cjs.map +0 -1
  30. package/dist/generators-lTWPS6oN.js +0 -290
  31. package/dist/generators-lTWPS6oN.js.map +0 -1
  32. package/dist/generators.cjs +0 -4
  33. package/dist/generators.d.ts +0 -508
  34. package/dist/generators.js +0 -2
  35. package/dist/templates/ToZod.source.cjs +0 -7
  36. package/dist/templates/ToZod.source.cjs.map +0 -1
  37. package/dist/templates/ToZod.source.d.ts +0 -7
  38. package/dist/templates/ToZod.source.js +0 -6
  39. package/dist/templates/ToZod.source.js.map +0 -1
  40. package/dist/types-CoCoOc2u.d.ts +0 -172
  41. package/src/components/index.ts +0 -2
  42. package/src/generators/index.ts +0 -2
  43. package/src/generators/operationsGenerator.tsx +0 -50
  44. package/src/parser.ts +0 -909
  45. package/src/templates/ToZod.source.ts +0 -4
  46. package/templates/ToZod.ts +0 -61
package/extension.yaml ADDED
@@ -0,0 +1,485 @@
1
+ $schema: https://kubb.dev/schemas/extension.json
2
+ kind: plugin
3
+ id: plugin-zod
4
+ name: Zod
5
+ description: Generate Zod validation schemas from OpenAPI specifications for runtime data validation.
6
+ category: validation
7
+ type: official
8
+ npmPackage: '@kubb/plugin-zod'
9
+ docsPath: /plugins/plugin-zod
10
+ repo: https://github.com/kubb-labs/plugins
11
+ maintainers:
12
+ - name: Stijn Van Hulle
13
+ github: stijnvanhulle
14
+ compatibility:
15
+ kubb: '>=5.0.0'
16
+ node: '>=22'
17
+ tags:
18
+ - zod
19
+ - validation
20
+ - schema
21
+ - runtime-validation
22
+ - codegen
23
+ - openapi
24
+ dependencies: []
25
+ resources:
26
+ documentation: https://kubb.dev/plugins/plugin-zod
27
+ repository: https://github.com/kubb-labs/plugins
28
+ issues: https://github.com/kubb-labs/plugins/issues
29
+ changelog: https://github.com/kubb-labs/plugins/blob/main/packages/plugin-zod/CHANGELOG.md
30
+ codesandbox: https://codesandbox.io/p/github/kubb-labs/plugins/main/examples/zod
31
+ featured: true
32
+ icon:
33
+ light: https://kubb.dev/feature/zod.svg
34
+ intro: |
35
+ # @kubb/plugin-zod
36
+
37
+ Generate [Zod](https://zod.dev/) validation schemas from your OpenAPI schema for runtime validation. Kubb generates Zod v4 schemas.
38
+ options:
39
+ - name: output
40
+ type: Output
41
+ required: false
42
+ default: "{ path: 'zod', barrel: { type: 'named' } }"
43
+ description: Specify the export location for the files and define the behavior of the output.
44
+ properties:
45
+ - name: path
46
+ type: string
47
+ required: true
48
+ description: Output directory or file for the generated code, relative to the global `output.path`.
49
+ tip: |
50
+ if `output.path` is a file, `group` cannot be used.
51
+ default: "'zod'"
52
+ - name: barrel
53
+ type: "{ type: 'named' | 'all', nested?: boolean } | false"
54
+ required: false
55
+ default: "{ type: 'named' }"
56
+ description: "Configure barrel file export strategy. Use `type` to control named vs. wildcard exports; set `nested: true` to generate hierarchical barrels in subdirectories."
57
+ examples:
58
+ - name: all
59
+ files:
60
+ - lang: typescript
61
+ code: |
62
+ export * from './gen/petService.ts'
63
+ twoslash: false
64
+ - name: named
65
+ files:
66
+ - lang: typescript
67
+ code: |
68
+ export { PetService } from './gen/petService.ts'
69
+ twoslash: false
70
+ - name: 'false'
71
+ files:
72
+ - lang: typescript
73
+ code: ''
74
+ twoslash: false
75
+ - name: banner
76
+ type: 'string | ((node: RootNode) => string)'
77
+ required: false
78
+ description: Add a banner comment at the top of every generated file. Accepts a static string or a function that receives the `RootNode` and returns a string.
79
+ - name: footer
80
+ type: 'string | ((node: RootNode) => string)'
81
+ required: false
82
+ description: Add a footer comment at the end of every generated file. Accepts a static string or a function that receives the `RootNode` and returns a string.
83
+ - name: override
84
+ type: boolean
85
+ required: false
86
+ default: 'false'
87
+ description: Whether Kubb overrides existing external files that can be generated if they already exist.
88
+ - name: resolver
89
+ type: Partial<ResolverZod> & ThisType<ResolverZod>
90
+ required: false
91
+ description: |
92
+ A single resolver that overrides the naming and path-resolution conventions. Each method you provide replaces the corresponding built-in one. When a method returns `null` or `undefined`, the resolver's result is used as the fallback, so you only need to supply the methods you want to change.
93
+
94
+ `this` inside each method is bound to the **full** resolver, so you can call other resolver methods (e.g. `this.default(name, 'function')`) without losing context.
95
+ body: |
96
+ Each plugin ships a built-in resolver:
97
+
98
+ | Plugin | Default resolver |
99
+ | --- | --- |
100
+ | `@kubb/plugin-ts` | `resolverTs` |
101
+ | `@kubb/plugin-zod` | `resolverZod` |
102
+ | `@kubb/plugin-cypress` | `resolverCypress` |
103
+ | `@kubb/plugin-mcp` | `resolverMcp` |
104
+ codeBlock:
105
+ lang: typescript
106
+ title: Custom resolver (plugin-ts example)
107
+ code: |
108
+ import { pluginTs } from '@kubb/plugin-ts'
109
+
110
+ pluginTs({
111
+ resolver: {
112
+ resolveName(name) {
113
+ // Prefix every operation-derived name; falls back for names where
114
+ // this returns null/undefined.
115
+ return `Api${this.default(name, 'function')}`
116
+ },
117
+ },
118
+ })
119
+ tip: |
120
+ Use `resolver` for fine-grained control over naming conventions.
121
+ - name: group
122
+ type: Group
123
+ required: false
124
+ description: |
125
+ Grouping combines files in a folder based on a specific `type`.
126
+ examples:
127
+ - name: kubb.config.ts
128
+ files:
129
+ - lang: typescript
130
+ code: |
131
+ group: {
132
+ type: 'tag',
133
+ name({ group }) {
134
+ return `${group}Controller`
135
+ }
136
+ }
137
+ twoslash: false
138
+ body: |
139
+ With the configuration above, the generator emits:
140
+
141
+ ```text
142
+ .
143
+ ├── src/
144
+ │ └── petController/
145
+ │ │ ├── addPet.ts
146
+ │ │ └── getPet.ts
147
+ │ └── storeController/
148
+ │ ├── createStore.ts
149
+ │ └── getStoreById.ts
150
+ ├── petStore.yaml
151
+ ├── kubb.config.ts
152
+ └── package.json
153
+ ```
154
+ properties:
155
+ - name: type
156
+ type: "'tag'"
157
+ required: true
158
+ description: Specify the property to group files by. Required when `group` is defined.
159
+ note: |
160
+ `Required: true*` means this is required only when the `group` option is used. The `group` option itself is optional.
161
+ body: |
162
+ - `'tag'`: Uses the first tag from `operation.getTags().at(0)?.name`
163
+ - name: name
164
+ type: '(context: GroupContext) => string'
165
+ required: false
166
+ default: (ctx) => `${ctx.group}Controller`
167
+ description: Return the name of a group based on the group name. This is used for file and identifier generation.
168
+ - name: importPath
169
+ type: string
170
+ required: false
171
+ default: "'zod'"
172
+ description: |
173
+ Import path for Zod. Use `'zod/mini'` to import from Zod's mini bundle.
174
+ - name: typed
175
+ type: boolean
176
+ required: false
177
+ default: 'false'
178
+ description: Annotate schemas with their TypeScript types from `@kubb/plugin-ts`. Requires `@kubb/plugin-ts` in the plugins array.
179
+ important: |
180
+ We rely on [`ToZod`](https://github.com/colinhacks/tozod) from the creator of Zod to create a schema based on a type.
181
+ Kubb contains its own version to those kind of conversions.
182
+ - name: inferred
183
+ type: boolean
184
+ required: false
185
+ default: 'false'
186
+ description: Export a `z.infer<typeof schema>` type alias for each schema to keep types in sync with validation.
187
+ codeBlock:
188
+ lang: typescript
189
+ title: 'inferred: true'
190
+ code: |
191
+ import { z } from 'zod'
192
+
193
+ export const petSchema = z.object({
194
+ name: z.string(),
195
+ status: z.enum(['available', 'pending', 'sold']).optional(),
196
+ })
197
+
198
+ // Inferred type export
199
+ export type Pet = z.infer<typeof petSchema>
200
+ - name: coercion
201
+ type: 'boolean | { dates?: boolean, strings?: boolean, numbers?: boolean }'
202
+ required: false
203
+ default: 'false'
204
+ description: Apply `z.coerce` to automatically convert input values to the expected type before validation. Pass `true` to coerce all primitives, or an object to selectively enable coercion for `dates`, `strings`, and `numbers`. See [Coercion for primitives](https://zod.dev/?id=coercion-for-primitives).
205
+ examples:
206
+ - name: 'true'
207
+ files:
208
+ - lang: typescript
209
+ code: |
210
+ z.coerce.string();
211
+ z.coerce.date();
212
+ z.coerce.number();
213
+ twoslash: false
214
+ - name: 'false'
215
+ files:
216
+ - lang: typescript
217
+ code: |
218
+ z.string();
219
+ z.date();
220
+ z.number();
221
+ twoslash: false
222
+ - name: '{numbers: true, strings: false, dates: false}'
223
+ files:
224
+ - lang: typescript
225
+ code: |
226
+ z.string();
227
+ z.date();
228
+ z.coerce.number();
229
+ twoslash: false
230
+ - name: operations
231
+ type: boolean
232
+ required: false
233
+ default: 'false'
234
+ description: Generate an `operations.ts` file with schemas for each operation, including request and response data.
235
+ - name: paramsCasing
236
+ type: "'camelcase'"
237
+ required: false
238
+ description: Transform parameter property names to camelCase.
239
+ codeBlock:
240
+ lang: typescript
241
+ title: "'camelcase'"
242
+ code: |
243
+ // OpenAPI spec uses: pet_id, X-Api-Key
244
+
245
+ type GetPetPathParams = {
246
+ petId: string // ✓ camelCase
247
+ }
248
+
249
+ type GetPetHeaderParams = {
250
+ xApiKey?: string // ✓ camelCase
251
+ }
252
+ - name: guidType
253
+ type: "'uuid' | 'guid'"
254
+ required: false
255
+ default: "'uuid'"
256
+ description: |
257
+ Validator to use for OpenAPI properties with `format: uuid`. Use `'guid'` to generate `.guid()` validation instead of the default `.uuid()`.
258
+ examples:
259
+ - name: "'uuid' (default)"
260
+ files:
261
+ - lang: typescript
262
+ code: |
263
+ z.uuid()
264
+ twoslash: false
265
+ - name: "'guid'"
266
+ files:
267
+ - lang: typescript
268
+ code: |
269
+ z.guid()
270
+ twoslash: false
271
+ - name: mini
272
+ type: boolean
273
+ required: false
274
+ default: 'false'
275
+ badge:
276
+ type: tip
277
+ text: beta
278
+ description: |
279
+ Use Zod Mini's functional API for better tree-shaking support.
280
+
281
+ When enabled, generates functional syntax (e.g., `z.optional(z.string())`) instead of chainable methods (e.g., `z.string().optional()`).
282
+
283
+ When `mini: true`, `importPath` will default to `'zod/mini'`.
284
+ warning: |
285
+ This feature is currently in beta. The API may change in future releases.
286
+ tip: |
287
+ Zod Mini provides a smaller bundle size with better tree-shaking. See [Zod Mini documentation](https://zod.dev/packages/mini) for more details.
288
+ examples:
289
+ - name: 'mini: true'
290
+ files:
291
+ - lang: typescript
292
+ code: |
293
+ // Import from zod/mini
294
+ import { z } from 'zod/mini'
295
+
296
+ // Functional syntax for better tree-shaking
297
+ z.optional(z.string())
298
+ z.nullable(z.number())
299
+ z.array(z.string()).check(z.minLength(1), z.maxLength(10))
300
+ twoslash: false
301
+ - name: 'mini: false (default)'
302
+ files:
303
+ - lang: typescript
304
+ code: |
305
+ // Import from zod or zod/v4
306
+ import { z } from 'zod'
307
+
308
+ // Chainable method syntax
309
+ z.string().optional()
310
+ z.number().nullable()
311
+ z.array(z.string()).min(1).max(10)
312
+ twoslash: false
313
+ - name: include
314
+ type: Array<Include>
315
+ required: false
316
+ description: Array containing include parameters to include tags, operations, methods, paths, or content types.
317
+ codeBlock:
318
+ lang: typescript
319
+ title: Include
320
+ code: |
321
+ export type Include = {
322
+ type: 'tag' | 'operationId' | 'path' | 'method' | 'contentType'
323
+ pattern: string | RegExp
324
+ }
325
+ - name: exclude
326
+ type: Array<Exclude>
327
+ required: false
328
+ description: Array containing exclude parameters to exclude or skip tags, operations, methods, paths, or content types.
329
+ codeBlock:
330
+ lang: typescript
331
+ title: Exclude
332
+ code: |
333
+ export type Exclude = {
334
+ type: 'tag' | 'operationId' | 'path' | 'method' | 'contentType'
335
+ pattern: string | RegExp
336
+ }
337
+ - name: override
338
+ type: Array<Override>
339
+ required: false
340
+ description: Array containing override parameters to override `options` based on tags, operations, methods, paths, or content types.
341
+ codeBlock:
342
+ lang: typescript
343
+ title: Override
344
+ code: |
345
+ export type Override = {
346
+ type: 'tag' | 'operationId' | 'path' | 'method' | 'contentType'
347
+ pattern: string | RegExp
348
+ options: PluginOptions
349
+ }
350
+ - name: generators
351
+ type: Array<Generator<PluginZod>>
352
+ required: false
353
+ experimental: true
354
+ description: |
355
+ Define additional generators next to the built-in generators.
356
+
357
+ See [Generators](https://kubb.dev/docs/5.x/guides/creating-plugins) for more information on how to use generators.
358
+ - name: transformer
359
+ type: Visitor
360
+ required: false
361
+ description: |
362
+ A single AST visitor applied to every node before code is printed. Each method you provide replaces the corresponding built-in one. When a method returns `null` or `undefined`, the preset transformer's result is used as the fallback — so you only need to supply the methods you want to change.
363
+
364
+ Visitor methods receive the node and a context object. Return a modified node to replace it, or return `undefined`/`void` to leave it unchanged.
365
+ examples:
366
+ - name: Strip descriptions before printing
367
+ files:
368
+ - lang: typescript
369
+ code: |
370
+ import { pluginTs } from '@kubb/plugin-ts'
371
+
372
+ pluginTs({
373
+ transformer: {
374
+ schema(node) {
375
+ return { ...node, description: undefined }
376
+ },
377
+ },
378
+ })
379
+ twoslash: false
380
+ - name: Prefix every operationId
381
+ files:
382
+ - lang: typescript
383
+ code: |
384
+ import { pluginTs } from '@kubb/plugin-ts'
385
+
386
+ pluginTs({
387
+ transformer: {
388
+ operation(node) {
389
+ return { ...node, operationId: `api_${node.operationId}` }
390
+ },
391
+ },
392
+ })
393
+ twoslash: false
394
+ tip: |
395
+ Use `transformer` to rewrite node properties before printing. For output naming customization, use `resolver` instead.
396
+ - name: printer
397
+ type: '{ nodes?: PrinterZodNodes | PrinterZodMiniNodes }'
398
+ required: false
399
+ description: |
400
+ Override individual printer node handlers to customize how specific schema types are rendered. When `mini: true` the overrides apply to the Zod Mini printer.
401
+
402
+ Each key is a `SchemaType` (e.g. `'integer'`, `'date'`). The function you provide replaces the built-in handler for that type. Use `this.transform` to recurse into nested schema nodes.
403
+ examples:
404
+ - name: Override integer to z.number()
405
+ files:
406
+ - lang: typescript
407
+ code: |
408
+ import { pluginZod } from '@kubb/plugin-zod'
409
+
410
+ pluginZod({
411
+ printer: {
412
+ nodes: {
413
+ integer() {
414
+ return 'z.number()'
415
+ },
416
+ },
417
+ },
418
+ })
419
+ twoslash: false
420
+ - name: Override date to z.string().date()
421
+ files:
422
+ - lang: typescript
423
+ code: |
424
+ import { pluginZod } from '@kubb/plugin-zod'
425
+
426
+ pluginZod({
427
+ printer: {
428
+ nodes: {
429
+ date(node) {
430
+ return 'z.string().date()'
431
+ },
432
+ },
433
+ },
434
+ })
435
+ twoslash: false
436
+ - name: wrapOutput
437
+ type: '(arg: { output: string; schema: SchemaNode }) => string | undefined'
438
+ required: false
439
+ description: Wrap the generated Zod schema string with additional validation or metadata. The callback receives the schema's output string and the `SchemaNode` AST node, and returns the modified schema string.
440
+ tip: |
441
+ This is useful for cases where you need to extend the generated zod output with additional properties from an OpenAPI schema. E.g. in the case of `OpenAPI -> Zod -> OpenAPI`, you could include the examples from the schema for a given property and then ultimately provide a modified schema to a router that supports zod and OpenAPI spec generation.
442
+ codeBlock:
443
+ lang: typescript
444
+ title: Conditionally append .openapi() to the generated schema
445
+ code: |
446
+ wrapOutput: ({ output, schema }) => {
447
+ const metadata: Record<string, unknown> = {};
448
+
449
+ if (schema.keywords?.includes('example')) {
450
+ // access SchemaNode properties
451
+ }
452
+
453
+ if (Object.keys(metadata).length > 0) {
454
+ return `${output}.openapi(${JSON.stringify(metadata)})`;
455
+ }
456
+ };
457
+ examples:
458
+ - name: kubb.config.ts
459
+ files:
460
+ - lang: typescript
461
+ code: |
462
+ import { defineConfig } from 'kubb';
463
+ import { pluginTs } from '@kubb/plugin-ts';
464
+ import { pluginZod } from '@kubb/plugin-zod';
465
+
466
+ export default defineConfig({
467
+ input: {
468
+ path: './petStore.yaml',
469
+ },
470
+ output: {
471
+ path: './src/gen',
472
+ },
473
+ plugins: [
474
+ pluginTs(),
475
+ pluginZod({
476
+ output: {
477
+ path: './zod',
478
+ },
479
+ group: { type: 'tag', name: ({ group }) => `${group}Schemas` },
480
+ typed: true,
481
+ importPath: 'zod',
482
+ }),
483
+ ],
484
+ });
485
+ twoslash: false
package/package.json CHANGED
@@ -1,74 +1,63 @@
1
1
  {
2
2
  "name": "@kubb/plugin-zod",
3
- "version": "5.0.0-alpha.9",
4
- "description": "Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.",
3
+ "version": "5.0.0-beta.10",
4
+ "description": "Generate Zod validation schemas from your OpenAPI specification for runtime data parsing and type safety. Pairs perfectly with @kubb/plugin-ts for end-to-end type coverage.",
5
5
  "keywords": [
6
- "zod",
7
- "schema",
8
- "schema-validation",
9
- "validation",
10
- "runtime-validation",
11
- "type-safety",
12
- "type-safe",
13
- "typescript",
6
+ "code-generation",
7
+ "codegen",
8
+ "kubb",
14
9
  "openapi",
10
+ "parse",
11
+ "runtime-validation",
12
+ "schema",
15
13
  "swagger",
16
- "oas",
17
- "code-generator",
18
- "codegen",
19
- "plugins",
20
- "kubb"
14
+ "typescript",
15
+ "validation",
16
+ "zod"
21
17
  ],
18
+ "license": "MIT",
19
+ "author": "stijnvanhulle",
22
20
  "repository": {
23
21
  "type": "git",
24
- "url": "git+https://github.com/kubb-labs/kubb.git",
22
+ "url": "git+https://github.com/kubb-labs/plugins.git",
25
23
  "directory": "packages/plugin-zod"
26
24
  },
27
- "license": "MIT",
28
- "author": "stijnvanhulle",
29
- "sideEffects": false,
25
+ "files": [
26
+ "src",
27
+ "templates",
28
+ "dist",
29
+ "extension.yaml",
30
+ "!/**/**.test.**",
31
+ "!/**/__tests__/**",
32
+ "!/**/__snapshots__/**"
33
+ ],
30
34
  "type": "module",
35
+ "sideEffects": false,
36
+ "main": "./dist/index.cjs",
37
+ "module": "./dist/index.js",
38
+ "types": "./dist/index.d.ts",
31
39
  "exports": {
32
40
  ".": {
33
41
  "import": "./dist/index.js",
34
42
  "require": "./dist/index.cjs"
35
43
  },
36
- "./components": {
37
- "import": "./dist/components.js",
38
- "require": "./dist/components.cjs"
39
- },
40
- "./generators": {
41
- "import": "./dist/generators.js",
42
- "require": "./dist/generators.cjs"
43
- },
44
- "./templates/ToZod.source": {
45
- "import": "./dist/templates/ToZod.source.js",
46
- "require": "./dist/templates/ToZod.source.cjs"
47
- },
48
44
  "./package.json": "./package.json"
49
45
  },
50
- "types": "./dist/index.d.ts",
51
- "typesVersions": {
52
- "*": {
53
- "components": [
54
- "./dist/components.d.ts"
55
- ],
56
- "generators": [
57
- "./dist/generators.d.ts"
58
- ],
59
- "templates/ToZod.source": [
60
- "./dist/templates/ToZod.source.d.ts"
61
- ]
62
- }
46
+ "publishConfig": {
47
+ "access": "public",
48
+ "registry": "https://registry.npmjs.org/"
49
+ },
50
+ "dependencies": {
51
+ "@kubb/core": "5.0.0-beta.10",
52
+ "@kubb/renderer-jsx": "5.0.0-beta.10",
53
+ "remeda": "^2.34.0"
54
+ },
55
+ "devDependencies": {
56
+ "@internals/utils": "0.0.0"
57
+ },
58
+ "peerDependencies": {
59
+ "@kubb/renderer-jsx": "5.0.0-beta.10"
63
60
  },
64
- "files": [
65
- "src",
66
- "templates",
67
- "dist",
68
- "!/**/**.test.**",
69
- "!/**/__tests__/**",
70
- "!/**/__snapshots__/**"
71
- ],
72
61
  "size-limit": [
73
62
  {
74
63
  "path": "./dist/*.js",
@@ -76,33 +65,14 @@
76
65
  "gzip": true
77
66
  }
78
67
  ],
79
- "dependencies": {
80
- "@kubb/react-fabric": "0.14.0",
81
- "remeda": "^2.33.6",
82
- "@kubb/core": "5.0.0-alpha.9",
83
- "@kubb/oas": "5.0.0-alpha.9",
84
- "@kubb/plugin-oas": "5.0.0-alpha.9",
85
- "@kubb/plugin-ts": "5.0.0-alpha.9"
86
- },
87
- "devDependencies": {
88
- "@asteasolutions/zod-to-openapi": "^8.4.3",
89
- "zod": "^3.25.76",
90
- "@internals/utils": "0.0.0"
91
- },
92
68
  "engines": {
93
69
  "node": ">=22"
94
70
  },
95
- "publishConfig": {
96
- "access": "public",
97
- "registry": "https://registry.npmjs.org/"
98
- },
99
- "main": "./dist/index.cjs",
100
- "module": "./dist/index.js",
101
71
  "scripts": {
102
72
  "build": "tsdown && size-limit",
103
73
  "clean": "npx rimraf ./dist",
104
- "lint": "bun biome lint .",
105
- "lint:fix": "bun biome lint --fix --unsafe .",
74
+ "lint": "oxlint .",
75
+ "lint:fix": "oxlint --fix .",
106
76
  "release": "pnpm publish --no-git-check",
107
77
  "release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check",
108
78
  "start": "tsdown --watch",