unplugin-kubb 3.0.0 → 3.1.1

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/README.md CHANGED
@@ -1,29 +1,29 @@
1
1
  <div align="center">
2
+ <h1>Kubb Unplugin</h1>
3
+ <a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
4
+ <img width="180" src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/logo.png" alt="Kubb logo">
5
+ </a>
2
6
 
3
- <!-- <img src="assets/logo.png" alt="logo" width="200" height="auto" /> -->
4
- <h1>unplugin-kubb</h1>
5
-
6
- <p>
7
- Kubb plugin for Vite, webpack, esbuild, Rollup, Nuxt, Astro and Rspack.
8
- </p>
9
- <img src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/banner.png" alt="logo" height="auto" />
10
7
 
11
8
  [![npm version][npm-version-src]][npm-version-href]
12
9
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
13
10
  [![Coverage][coverage-src]][coverage-href]
14
11
  [![License][license-src]][license-href]
15
-
12
+ [![Sponsors][sponsors-src]][sponsors-href]
16
13
  <h4>
17
- <a href="https://codesandbox.io/s/github/kubb-labs/kubb/tree/main//examples/typescript" target="_blank">View Demo</a>
18
- <span> · </span>
19
- <a href="https://kubb.dev/" target="_blank">Documentation</a>
20
- <span> · </span>
21
- <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
22
- <span> · </span>
23
- <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Request Feature</a>
24
- </h4>
14
+ <a href="https://codesandbox.io/s/github/kubb-labs/kubb/tree/main//examples/typescript" target="_blank">View Demo</a>
15
+ <span> · </span>
16
+ <a href="https://kubb.dev/" target="_blank">Documentation</a>
17
+ <span> · </span>
18
+ <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
19
+ <span> · </span>
20
+ <a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Request Feature</a>
21
+ </h4>
25
22
  </div>
26
23
 
24
+ Kubb plugin for Vite, webpack, esbuild, Rollup, Nuxt, Astro and Rspack.
25
+
26
+
27
27
  ## Install
28
28
 
29
29
  ```bash
@@ -127,3 +127,5 @@ Kubb uses an MIT-licensed open source project with its ongoing development made
127
127
  [minified-href]: https://www.npmjs.com/package/unplugin-kubb
128
128
  [coverage-src]: https://img.shields.io/codecov/c/github/kubb-labs/kubb?style=flat&colorA=18181B&colorB=f58517
129
129
  [coverage-href]: https://www.npmjs.com/package/unplugin-kubb
130
+ [sponsors-src]: https://img.shields.io/github/sponsors/stijnvanhulle?style=flat&colorA=18181B&colorB=f58517
131
+ [sponsors-href]: https://github.com/sponsors/stijnvanhulle/
package/dist/astro.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.js CHANGED
@@ -1,4 +1,4 @@
1
- import { src_default } from "./src-DnCwQQFX.js";
1
+ import { t as src_default } from "./src-Dn-CzqNK.js";
2
2
 
3
3
  //#region src/astro.ts
4
4
  var astro_default = (options) => ({
@@ -0,0 +1,28 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region rolldown:runtime
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: ((k) => from[k]).bind(null, key),
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
21
+ value: mod,
22
+ enumerable: true
23
+ }) : target, mod));
24
+ var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
25
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
26
+
27
+ //#endregion
28
+ export { };
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  import * as esbuild0 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  import * as esbuild0 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-DnCwQQFX.js";
1
+ import { r as unpluginFactory } from "./src-Dn-CzqNK.js";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
 
4
4
  //#region src/esbuild.ts
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  import * as unplugin0 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  import * as unplugin0 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { src_default, unplugin, unpluginFactory } from "./src-DnCwQQFX.js";
1
+ import { n as unplugin, r as unpluginFactory, t as src_default } from "./src-Dn-CzqNK.js";
2
2
 
3
3
  export { src_default as default, unplugin, unpluginFactory };
package/dist/nuxt.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
package/dist/nuxt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
package/dist/nuxt.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./src-DnCwQQFX.js";
2
- import { vite_default } from "./vite-D_U2l8No.js";
3
- import { webpack_default } from "./webpack-CQIEgBNc.js";
1
+ import "./src-Dn-CzqNK.js";
2
+ import { t as vite_default } from "./vite-CEW_QLtL.js";
3
+ import { t as webpack_default } from "./webpack-gtaz7qKH.js";
4
4
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
5
5
  import "@nuxt/schema";
6
6
 
package/dist/rollup.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  import * as rollup0 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  import * as rollup0 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-DnCwQQFX.js";
1
+ import { r as unpluginFactory } from "./src-Dn-CzqNK.js";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rollup.ts
package/dist/rspack.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-DnCwQQFX.js";
1
+ import { r as unpluginFactory } from "./src-Dn-CzqNK.js";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rspack.ts
@@ -46,5 +46,5 @@ const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
46
46
  var src_default = unplugin;
47
47
 
48
48
  //#endregion
49
- export { src_default, unplugin, unpluginFactory };
50
- //# sourceMappingURL=src-DnCwQQFX.js.map
49
+ export { unplugin as n, unpluginFactory as r, src_default as t };
50
+ //# sourceMappingURL=src-Dn-CzqNK.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"src-DnCwQQFX.js","names":["unpluginFactory: UnpluginFactory<Options | undefined>"],"sources":["../src/index.ts"],"sourcesContent":["import { safeBuild } from '@kubb/core'\nimport { createLogger } from '@kubb/core/logger'\n\nimport { createUnplugin } from 'unplugin'\n\nimport type { Config } from '@kubb/core'\nimport type { UnpluginFactory } from 'unplugin'\nimport type { Options } from './types.ts'\n\nexport const unpluginFactory: UnpluginFactory<Options | undefined> = (options) => {\n const name = 'unplugin-kubb' as const\n const logger = createLogger({\n name,\n })\n\n return {\n name,\n enforce: 'pre',\n vite: {\n configResolved(config) {\n logger.on('start', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n\n logger.on('success', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n\n logger.on('warning', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n\n logger.on('error', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n },\n },\n\n async buildStart() {\n if (!options?.config) {\n throw new Error('Config is not set')\n }\n\n const { root: _root, ...userConfig } = options.config as Config\n\n logger.emit('start', 'Building')\n\n const { error } = await safeBuild({\n config: {\n root: process.cwd(),\n ...userConfig,\n output: {\n write: true,\n ...userConfig.output,\n },\n },\n logger,\n })\n\n if (error) {\n throw error\n }\n },\n }\n}\n\nexport const unplugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport default unplugin\n"],"mappings":";;;;;AASA,MAAaA,mBAAyD,YAAY;CAChF,MAAM,OAAO;CACb,MAAM,SAAS,aAAa,EAC1B,MACD,CAAC;AAEF,QAAO;EACL;EACA,SAAS;EACT,MAAM,EACJ,eAAe,QAAQ;AACrB,UAAO,GAAG,UAAU,YAAoB;AACtC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;AAEF,UAAO,GAAG,YAAY,YAAoB;AACxC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;AAEF,UAAO,GAAG,YAAY,YAAoB;AACxC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;AAEF,UAAO,GAAG,UAAU,YAAoB;AACtC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;KAEL;EAED,MAAM,aAAa;AACjB,OAAI,CAAC,SAAS,OACZ,OAAM,IAAI,MAAM,oBAAoB;GAGtC,MAAM,EAAE,MAAM,MAAO,GAAG,eAAe,QAAQ;AAE/C,UAAO,KAAK,SAAS,WAAW;GAEhC,MAAM,EAAE,UAAU,MAAM,UAAU;IAChC,QAAQ;KACN,MAAM,QAAQ,KAAK;KACnB,GAAG;KACH,QAAQ;MACN,OAAO;MACP,GAAG,WAAW;MACf;KACF;IACD;IACD,CAAC;AAEF,OAAI,MACF,OAAM;;EAGX;;AAGH,MAAa,WAA2B,+BAAe,gBAAgB;AAEvE,kBAAe"}
1
+ {"version":3,"file":"src-Dn-CzqNK.js","names":["unpluginFactory: UnpluginFactory<Options | undefined>"],"sources":["../src/index.ts"],"sourcesContent":["import { safeBuild } from '@kubb/core'\nimport { createLogger } from '@kubb/core/logger'\n\nimport { createUnplugin } from 'unplugin'\n\nimport type { Config } from '@kubb/core'\nimport type { UnpluginFactory } from 'unplugin'\nimport type { Options } from './types.ts'\n\nexport const unpluginFactory: UnpluginFactory<Options | undefined> = (options) => {\n const name = 'unplugin-kubb' as const\n const logger = createLogger({\n name,\n })\n\n return {\n name,\n enforce: 'pre',\n vite: {\n configResolved(config) {\n logger.on('start', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n\n logger.on('success', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n\n logger.on('warning', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n\n logger.on('error', (message: string) => {\n config.logger.info(`${name}: ${message}`)\n })\n },\n },\n\n async buildStart() {\n if (!options?.config) {\n throw new Error('Config is not set')\n }\n\n const { root: _root, ...userConfig } = options.config as Config\n\n logger.emit('start', 'Building')\n\n const { error } = await safeBuild({\n config: {\n root: process.cwd(),\n ...userConfig,\n output: {\n write: true,\n ...userConfig.output,\n },\n },\n logger,\n })\n\n if (error) {\n throw error\n }\n },\n }\n}\n\nexport const unplugin = /* #__PURE__ */ createUnplugin(unpluginFactory)\n\nexport default unplugin\n"],"mappings":";;;;;AASA,MAAaA,mBAAyD,YAAY;CAChF,MAAM,OAAO;CACb,MAAM,SAAS,aAAa,EAC1B,MACD,CAAC;AAEF,QAAO;EACL;EACA,SAAS;EACT,MAAM,EACJ,eAAe,QAAQ;AACrB,UAAO,GAAG,UAAU,YAAoB;AACtC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;AAEF,UAAO,GAAG,YAAY,YAAoB;AACxC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;AAEF,UAAO,GAAG,YAAY,YAAoB;AACxC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;AAEF,UAAO,GAAG,UAAU,YAAoB;AACtC,WAAO,OAAO,KAAK,GAAG,KAAK,IAAI,UAAU;KACzC;KAEL;EAED,MAAM,aAAa;AACjB,OAAI,CAAC,SAAS,OACZ,OAAM,IAAI,MAAM,oBAAoB;GAGtC,MAAM,EAAE,MAAM,MAAO,GAAG,eAAe,QAAQ;AAE/C,UAAO,KAAK,SAAS,WAAW;GAEhC,MAAM,EAAE,UAAU,MAAM,UAAU;IAChC,QAAQ;KACN,MAAM,QAAQ,KAAK;KACnB,GAAG;KACH,QAAQ;MACN,OAAO;MACP,GAAG,WAAW;MACf;KACF;IACD;IACD,CAAC;AAEF,OAAI,MACF,OAAM;;EAGX;;AAGH,MAAa,WAA2B,+BAAe,gBAAgB;AAEvE,kBAAe"}
@@ -1,120 +1,7 @@
1
+ import { KubbFile } from "@kubb/fabric-core/types";
2
+ import { Fabric, FileManager } from "@kubb/react-fabric";
1
3
  import { ConsolaInstance, LogLevel } from "consola";
2
4
 
3
- //#region ../core/src/fs/types.d.ts
4
- type BasePath<T extends string = string> = `${T}/`;
5
- type Import = {
6
- /**
7
- * Import name to be used
8
- * @example ["useState"]
9
- * @example "React"
10
- */
11
- name: string | Array<string | {
12
- propertyName: string;
13
- name?: string;
14
- }>;
15
- /**
16
- * Path for the import
17
- * @example '@kubb/core'
18
- */
19
- path: string;
20
- /**
21
- * Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.
22
- */
23
- isTypeOnly?: boolean;
24
- isNameSpace?: boolean;
25
- /**
26
- * When root is set it will get the path with relative getRelativePath(root, path).
27
- */
28
- root?: string;
29
- };
30
- type Source = {
31
- name?: string;
32
- value?: string;
33
- isTypeOnly?: boolean;
34
- /**
35
- * Has const or type 'export'
36
- * @default false
37
- */
38
- isExportable?: boolean;
39
- /**
40
- * When set, barrel generation will add this
41
- * @default false
42
- */
43
- isIndexable?: boolean;
44
- };
45
- type Export = {
46
- /**
47
- * Export name to be used.
48
- * @example ["useState"]
49
- * @example "React"
50
- */
51
- name?: string | Array<string>;
52
- /**
53
- * Path for the import.
54
- * @example '@kubb/core'
55
- */
56
- path: string;
57
- /**
58
- * Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.
59
- */
60
- isTypeOnly?: boolean;
61
- /**
62
- * Make it possible to override the name, this will result in: `export * as aliasName from './path'`.
63
- */
64
- asAlias?: boolean;
65
- };
66
- type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`;
67
- type Mode = 'single' | 'split';
68
- /**
69
- * Name to be used to dynamicly create the baseName(based on input.path)
70
- * Based on UNIX basename
71
- * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
72
- */
73
- type BaseName = `${string}.${string}`;
74
- /**
75
- * Path will be full qualified path to a specified file
76
- */
77
- type Path = string;
78
- type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`;
79
- type OptionalPath = Path | undefined | null;
80
- type File<TMeta extends object = object> = {
81
- /**
82
- * Name to be used to create the path
83
- * Based on UNIX basename, `${name}.extname`
84
- * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
85
- */
86
- baseName: BaseName;
87
- /**
88
- * Path will be full qualified path to a specified file
89
- */
90
- path: AdvancedPath<BaseName> | Path;
91
- sources: Array<Source>;
92
- imports?: Array<Import>;
93
- exports?: Array<Export>;
94
- /**
95
- * Use extra meta, this is getting used to generate the barrel/index files.
96
- */
97
- meta?: TMeta;
98
- banner?: string;
99
- footer?: string;
100
- };
101
- type ResolvedImport = Import;
102
- type ResolvedExport = Export;
103
- type ResolvedFile<TMeta extends object = object> = File<TMeta> & {
104
- /**
105
- * @default object-hash
106
- */
107
- id: string;
108
- /**
109
- * Contains the first part of the baseName, generated based on baseName
110
- * @link https://nodejs.org/api/path.html#pathformatpathobject
111
- */
112
- name: string;
113
- extname: Extname;
114
- imports: Array<ResolvedImport>;
115
- exports: Array<ResolvedExport>;
116
- };
117
- //#endregion
118
5
  //#region ../core/src/utils/EventEmitter.d.ts
119
6
  declare class EventEmitter<TEvents extends Record<string, any>> {
120
7
  #private;
@@ -165,8 +52,6 @@ type Logger = {
165
52
  //#endregion
166
53
  //#region ../core/src/utils/types.d.ts
167
54
  type PossiblePromise<T> = Promise<T> | T;
168
- type ArrayWithLength<T extends number, U extends any[] = []> = U['length'] extends T ? U : ArrayWithLength<T, [true, ...U]>;
169
- type GreaterThan<T extends number, U extends number> = ArrayWithLength<U> extends [...ArrayWithLength<T>, ...infer _] ? false : true;
170
55
  //#endregion
171
56
  //#region ../core/src/types.d.ts
172
57
  /**
@@ -260,7 +145,7 @@ type Config<TInput = Input> = {
260
145
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
261
146
  * @default { '.ts': '.ts'}
262
147
  */
263
- extension?: Record<Extname, Extname | ''>;
148
+ extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
264
149
  /**
265
150
  * Specify how `index.ts` files should be created. You can also disable the generation of barrel files here. While each plugin has its own `barrelType` option, this setting controls the creation of the root barrel file, such as` src/gen/index.ts`.
266
151
  * @default 'named'
@@ -391,7 +276,7 @@ type PluginLifecycle<TOptions extends PluginFactoryOptions = PluginFactoryOption
391
276
  * @type hookFirst
392
277
  * @example ('./Pet.ts', './src/gen/') => '/src/gen/Pet.ts'
393
278
  */
394
- resolvePath?: (this: PluginContext<TOptions>, baseName: BaseName, mode?: Mode, options?: TOptions['resolvePathOptions']) => OptionalPath;
279
+ resolvePath?: (this: PluginContext<TOptions>, baseName: KubbFile.BaseName, mode?: KubbFile.Mode, options?: TOptions['resolvePathOptions']) => KubbFile.OptionalPath;
395
280
  /**
396
281
  * Resolve to a name based on a string.
397
282
  * Useful when converting to PascalCase or camelCase.
@@ -409,8 +294,8 @@ type PluginLifecycleHooks = keyof PluginLifecycle;
409
294
  type PluginParameter<H extends PluginLifecycleHooks> = Parameters<Required<PluginLifecycle>[H]>;
410
295
  type ResolvePathParams<TOptions = object> = {
411
296
  pluginKey?: Plugin['key'];
412
- baseName: BaseName;
413
- mode?: Mode;
297
+ baseName: KubbFile.BaseName;
298
+ mode?: KubbFile.Mode;
414
299
  /**
415
300
  * Options to be passed to 'resolvePath' 3th parameter
416
301
  */
@@ -428,11 +313,15 @@ type ResolveNameParams = {
428
313
  type?: 'file' | 'function' | 'type' | 'const';
429
314
  };
430
315
  type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
316
+ fabric: Fabric;
431
317
  config: Config;
318
+ /**
319
+ * @deprecated
320
+ */
432
321
  fileManager: FileManager;
433
322
  pluginManager: PluginManager;
434
- addFile: (...file: Array<File>) => Promise<Array<ResolvedFile>>;
435
- resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => OptionalPath;
323
+ addFile: (...file: Array<KubbFile.File>) => Promise<Array<KubbFile.ResolvedFile>>;
324
+ resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => KubbFile.OptionalPath;
436
325
  resolveName: (params: ResolveNameParams) => string;
437
326
  logger: Logger;
438
327
  /**
@@ -444,63 +333,6 @@ type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions>
444
333
  */
445
334
  plugin: Plugin<TOptions>;
446
335
  };
447
- /**
448
- * Specify the export location for the files and define the behavior of the output
449
- */
450
- //#endregion
451
- //#region ../core/src/FileManager.d.ts
452
- type FileMetaBase = {
453
- pluginKey?: Plugin['key'];
454
- };
455
- type AddResult<T extends Array<File>> = Promise<Awaited<GreaterThan<T['length'], 1> extends true ? Promise<ResolvedFile[]> : Promise<ResolvedFile>>>;
456
- type AddIndexesProps = {
457
- type: BarrelType | false | undefined;
458
- /**
459
- * Root based on root and output.path specified in the config
460
- */
461
- root: string;
462
- /**
463
- * Output for plugin
464
- */
465
- output: {
466
- path: string;
467
- };
468
- group?: {
469
- output: string;
470
- exportAs: string;
471
- };
472
- logger?: Logger;
473
- meta?: FileMetaBase;
474
- };
475
- type WriteFilesProps = {
476
- root: Config['root'];
477
- extension?: Record<Extname, Extname | ''>;
478
- logger?: Logger;
479
- dryRun?: boolean;
480
- };
481
- declare class FileManager {
482
- #private;
483
- constructor();
484
- add<T extends Array<File> = Array<File>>(...files: T): AddResult<T>;
485
- getByPath(path: Path): Promise<ResolvedFile | null>;
486
- deleteByPath(path: Path): Promise<void>;
487
- clear(): Promise<void>;
488
- getFiles(): Promise<Array<ResolvedFile>>;
489
- processFiles({
490
- dryRun,
491
- root,
492
- extension,
493
- logger
494
- }: WriteFilesProps): Promise<Array<ResolvedFile>>;
495
- getBarrelFiles({
496
- type,
497
- meta,
498
- root,
499
- output,
500
- logger
501
- }: AddIndexesProps): Promise<File[]>;
502
- static getMode(path: string | undefined | null): Mode;
503
- }
504
336
  //#endregion
505
337
  //#region ../core/src/PluginManager.d.ts
506
338
  type RequiredPluginLifecycle = Required<PluginLifecycle>;
@@ -519,6 +351,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
519
351
  plugin: Plugin;
520
352
  };
521
353
  type Options$1 = {
354
+ fabric: Fabric;
522
355
  logger: Logger;
523
356
  /**
524
357
  * @default Number.POSITIVE_INFINITY
@@ -532,15 +365,14 @@ type Events = {
532
365
  };
533
366
  type GetFileProps<TOptions = object> = {
534
367
  name: string;
535
- mode?: Mode;
536
- extname: Extname;
368
+ mode?: KubbFile.Mode;
369
+ extname: KubbFile.Extname;
537
370
  pluginKey: Plugin['key'];
538
371
  options?: TOptions;
539
372
  };
540
373
  declare class PluginManager {
541
374
  #private;
542
375
  readonly plugins: Set<Plugin<PluginFactoryOptions<string, object, object, any, object>>>;
543
- readonly fileManager: FileManager;
544
376
  readonly events: EventEmitter<Events>;
545
377
  readonly config: Config;
546
378
  readonly executed: Array<Executer>;
@@ -553,10 +385,10 @@ declare class PluginManager {
553
385
  extname,
554
386
  pluginKey,
555
387
  options
556
- }: GetFileProps<TOptions>): File<{
388
+ }: GetFileProps<TOptions>): KubbFile.File<{
557
389
  pluginKey: Plugin['key'];
558
390
  }>;
559
- resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => OptionalPath;
391
+ resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => KubbFile.OptionalPath;
560
392
  resolveName: (params: ResolveNameParams) => string;
561
393
  /**
562
394
  * Instead of calling `pluginManager.events.on` you can use `pluginManager.on`. This one also has better types.
@@ -656,5 +488,5 @@ type Options = {
656
488
  config?: Omit<UserConfig, 'hooks'>;
657
489
  };
658
490
  //#endregion
659
- export { Options };
660
- //# sourceMappingURL=types-CFQIMFRS.d.ts.map
491
+ export { Options as t };
492
+ //# sourceMappingURL=types-Bt9ZCbPy.d.ts.map
@@ -1,120 +1,7 @@
1
+ import { KubbFile } from "@kubb/fabric-core/types";
2
+ import { Fabric, FileManager } from "@kubb/react-fabric";
1
3
  import { ConsolaInstance, LogLevel } from "consola";
2
4
 
3
- //#region ../core/src/fs/types.d.ts
4
- type BasePath<T extends string = string> = `${T}/`;
5
- type Import = {
6
- /**
7
- * Import name to be used
8
- * @example ["useState"]
9
- * @example "React"
10
- */
11
- name: string | Array<string | {
12
- propertyName: string;
13
- name?: string;
14
- }>;
15
- /**
16
- * Path for the import
17
- * @example '@kubb/core'
18
- */
19
- path: string;
20
- /**
21
- * Add `type` prefix to the import, this will result in: `import type { Type } from './path'`.
22
- */
23
- isTypeOnly?: boolean;
24
- isNameSpace?: boolean;
25
- /**
26
- * When root is set it will get the path with relative getRelativePath(root, path).
27
- */
28
- root?: string;
29
- };
30
- type Source = {
31
- name?: string;
32
- value?: string;
33
- isTypeOnly?: boolean;
34
- /**
35
- * Has const or type 'export'
36
- * @default false
37
- */
38
- isExportable?: boolean;
39
- /**
40
- * When set, barrel generation will add this
41
- * @default false
42
- */
43
- isIndexable?: boolean;
44
- };
45
- type Export = {
46
- /**
47
- * Export name to be used.
48
- * @example ["useState"]
49
- * @example "React"
50
- */
51
- name?: string | Array<string>;
52
- /**
53
- * Path for the import.
54
- * @example '@kubb/core'
55
- */
56
- path: string;
57
- /**
58
- * Add `type` prefix to the export, this will result in: `export type { Type } from './path'`.
59
- */
60
- isTypeOnly?: boolean;
61
- /**
62
- * Make it possible to override the name, this will result in: `export * as aliasName from './path'`.
63
- */
64
- asAlias?: boolean;
65
- };
66
- type Extname = '.ts' | '.js' | '.tsx' | '.json' | `.${string}`;
67
- type Mode = 'single' | 'split';
68
- /**
69
- * Name to be used to dynamicly create the baseName(based on input.path)
70
- * Based on UNIX basename
71
- * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
72
- */
73
- type BaseName = `${string}.${string}`;
74
- /**
75
- * Path will be full qualified path to a specified file
76
- */
77
- type Path = string;
78
- type AdvancedPath<T extends BaseName = BaseName> = `${BasePath}${T}`;
79
- type OptionalPath = Path | undefined | null;
80
- type File<TMeta extends object = object> = {
81
- /**
82
- * Name to be used to create the path
83
- * Based on UNIX basename, `${name}.extname`
84
- * @link https://nodejs.org/api/path.html#pathbasenamepath-suffix
85
- */
86
- baseName: BaseName;
87
- /**
88
- * Path will be full qualified path to a specified file
89
- */
90
- path: AdvancedPath<BaseName> | Path;
91
- sources: Array<Source>;
92
- imports?: Array<Import>;
93
- exports?: Array<Export>;
94
- /**
95
- * Use extra meta, this is getting used to generate the barrel/index files.
96
- */
97
- meta?: TMeta;
98
- banner?: string;
99
- footer?: string;
100
- };
101
- type ResolvedImport = Import;
102
- type ResolvedExport = Export;
103
- type ResolvedFile<TMeta extends object = object> = File<TMeta> & {
104
- /**
105
- * @default object-hash
106
- */
107
- id: string;
108
- /**
109
- * Contains the first part of the baseName, generated based on baseName
110
- * @link https://nodejs.org/api/path.html#pathformatpathobject
111
- */
112
- name: string;
113
- extname: Extname;
114
- imports: Array<ResolvedImport>;
115
- exports: Array<ResolvedExport>;
116
- };
117
- //#endregion
118
5
  //#region ../core/src/utils/EventEmitter.d.ts
119
6
  declare class EventEmitter<TEvents extends Record<string, any>> {
120
7
  #private;
@@ -165,8 +52,6 @@ type Logger = {
165
52
  //#endregion
166
53
  //#region ../core/src/utils/types.d.ts
167
54
  type PossiblePromise<T> = Promise<T> | T;
168
- type ArrayWithLength<T extends number, U extends any[] = []> = U['length'] extends T ? U : ArrayWithLength<T, [true, ...U]>;
169
- type GreaterThan<T extends number, U extends number> = ArrayWithLength<U> extends [...ArrayWithLength<T>, ...infer _] ? false : true;
170
55
  //#endregion
171
56
  //#region ../core/src/types.d.ts
172
57
  /**
@@ -260,7 +145,7 @@ type Config<TInput = Input> = {
260
145
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
261
146
  * @default { '.ts': '.ts'}
262
147
  */
263
- extension?: Record<Extname, Extname | ''>;
148
+ extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
264
149
  /**
265
150
  * Specify how `index.ts` files should be created. You can also disable the generation of barrel files here. While each plugin has its own `barrelType` option, this setting controls the creation of the root barrel file, such as` src/gen/index.ts`.
266
151
  * @default 'named'
@@ -391,7 +276,7 @@ type PluginLifecycle<TOptions extends PluginFactoryOptions = PluginFactoryOption
391
276
  * @type hookFirst
392
277
  * @example ('./Pet.ts', './src/gen/') => '/src/gen/Pet.ts'
393
278
  */
394
- resolvePath?: (this: PluginContext<TOptions>, baseName: BaseName, mode?: Mode, options?: TOptions['resolvePathOptions']) => OptionalPath;
279
+ resolvePath?: (this: PluginContext<TOptions>, baseName: KubbFile.BaseName, mode?: KubbFile.Mode, options?: TOptions['resolvePathOptions']) => KubbFile.OptionalPath;
395
280
  /**
396
281
  * Resolve to a name based on a string.
397
282
  * Useful when converting to PascalCase or camelCase.
@@ -409,8 +294,8 @@ type PluginLifecycleHooks = keyof PluginLifecycle;
409
294
  type PluginParameter<H extends PluginLifecycleHooks> = Parameters<Required<PluginLifecycle>[H]>;
410
295
  type ResolvePathParams<TOptions = object> = {
411
296
  pluginKey?: Plugin['key'];
412
- baseName: BaseName;
413
- mode?: Mode;
297
+ baseName: KubbFile.BaseName;
298
+ mode?: KubbFile.Mode;
414
299
  /**
415
300
  * Options to be passed to 'resolvePath' 3th parameter
416
301
  */
@@ -428,11 +313,15 @@ type ResolveNameParams = {
428
313
  type?: 'file' | 'function' | 'type' | 'const';
429
314
  };
430
315
  type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
316
+ fabric: Fabric;
431
317
  config: Config;
318
+ /**
319
+ * @deprecated
320
+ */
432
321
  fileManager: FileManager;
433
322
  pluginManager: PluginManager;
434
- addFile: (...file: Array<File>) => Promise<Array<ResolvedFile>>;
435
- resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => OptionalPath;
323
+ addFile: (...file: Array<KubbFile.File>) => Promise<Array<KubbFile.ResolvedFile>>;
324
+ resolvePath: (params: ResolvePathParams<TOptions['resolvePathOptions']>) => KubbFile.OptionalPath;
436
325
  resolveName: (params: ResolveNameParams) => string;
437
326
  logger: Logger;
438
327
  /**
@@ -444,63 +333,6 @@ type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions>
444
333
  */
445
334
  plugin: Plugin<TOptions>;
446
335
  };
447
- /**
448
- * Specify the export location for the files and define the behavior of the output
449
- */
450
- //#endregion
451
- //#region ../core/src/FileManager.d.ts
452
- type FileMetaBase = {
453
- pluginKey?: Plugin['key'];
454
- };
455
- type AddResult<T extends Array<File>> = Promise<Awaited<GreaterThan<T['length'], 1> extends true ? Promise<ResolvedFile[]> : Promise<ResolvedFile>>>;
456
- type AddIndexesProps = {
457
- type: BarrelType | false | undefined;
458
- /**
459
- * Root based on root and output.path specified in the config
460
- */
461
- root: string;
462
- /**
463
- * Output for plugin
464
- */
465
- output: {
466
- path: string;
467
- };
468
- group?: {
469
- output: string;
470
- exportAs: string;
471
- };
472
- logger?: Logger;
473
- meta?: FileMetaBase;
474
- };
475
- type WriteFilesProps = {
476
- root: Config['root'];
477
- extension?: Record<Extname, Extname | ''>;
478
- logger?: Logger;
479
- dryRun?: boolean;
480
- };
481
- declare class FileManager {
482
- #private;
483
- constructor();
484
- add<T extends Array<File> = Array<File>>(...files: T): AddResult<T>;
485
- getByPath(path: Path): Promise<ResolvedFile | null>;
486
- deleteByPath(path: Path): Promise<void>;
487
- clear(): Promise<void>;
488
- getFiles(): Promise<Array<ResolvedFile>>;
489
- processFiles({
490
- dryRun,
491
- root,
492
- extension,
493
- logger
494
- }: WriteFilesProps): Promise<Array<ResolvedFile>>;
495
- getBarrelFiles({
496
- type,
497
- meta,
498
- root,
499
- output,
500
- logger
501
- }: AddIndexesProps): Promise<File[]>;
502
- static getMode(path: string | undefined | null): Mode;
503
- }
504
336
  //#endregion
505
337
  //#region ../core/src/PluginManager.d.ts
506
338
  type RequiredPluginLifecycle = Required<PluginLifecycle>;
@@ -519,6 +351,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
519
351
  plugin: Plugin;
520
352
  };
521
353
  type Options$1 = {
354
+ fabric: Fabric;
522
355
  logger: Logger;
523
356
  /**
524
357
  * @default Number.POSITIVE_INFINITY
@@ -532,15 +365,14 @@ type Events = {
532
365
  };
533
366
  type GetFileProps<TOptions = object> = {
534
367
  name: string;
535
- mode?: Mode;
536
- extname: Extname;
368
+ mode?: KubbFile.Mode;
369
+ extname: KubbFile.Extname;
537
370
  pluginKey: Plugin['key'];
538
371
  options?: TOptions;
539
372
  };
540
373
  declare class PluginManager {
541
374
  #private;
542
375
  readonly plugins: Set<Plugin<PluginFactoryOptions<string, object, object, any, object>>>;
543
- readonly fileManager: FileManager;
544
376
  readonly events: EventEmitter<Events>;
545
377
  readonly config: Config;
546
378
  readonly executed: Array<Executer>;
@@ -553,10 +385,10 @@ declare class PluginManager {
553
385
  extname,
554
386
  pluginKey,
555
387
  options
556
- }: GetFileProps<TOptions>): File<{
388
+ }: GetFileProps<TOptions>): KubbFile.File<{
557
389
  pluginKey: Plugin['key'];
558
390
  }>;
559
- resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => OptionalPath;
391
+ resolvePath: <TOptions = object>(params: ResolvePathParams<TOptions>) => KubbFile.OptionalPath;
560
392
  resolveName: (params: ResolveNameParams) => string;
561
393
  /**
562
394
  * Instead of calling `pluginManager.events.on` you can use `pluginManager.on`. This one also has better types.
@@ -656,5 +488,5 @@ type Options = {
656
488
  config?: Omit<UserConfig, 'hooks'>;
657
489
  };
658
490
  //#endregion
659
- export { Options };
660
- //# sourceMappingURL=types-BHypkRQJ.d.cts.map
491
+ export { Options as t };
492
+ //# sourceMappingURL=types-DpTGv8q2.d.cts.map
package/dist/types.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  export { Options };
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  export { Options };
@@ -1,9 +1,9 @@
1
- import { unpluginFactory } from "./src-DnCwQQFX.js";
1
+ import { r as unpluginFactory } from "./src-Dn-CzqNK.js";
2
2
  import { createVitePlugin } from "unplugin";
3
3
 
4
4
  //#region src/vite.ts
5
5
  var vite_default = createVitePlugin(unpluginFactory);
6
6
 
7
7
  //#endregion
8
- export { vite_default };
9
- //# sourceMappingURL=vite-D_U2l8No.js.map
8
+ export { vite_default as t };
9
+ //# sourceMappingURL=vite-CEW_QLtL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vite-D_U2l8No.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["import { createVitePlugin } from 'unplugin'\n\nimport { unpluginFactory } from './index.ts'\n\nexport default createVitePlugin(unpluginFactory)\n"],"mappings":";;;;AAIA,mBAAe,iBAAiB,gBAAgB"}
1
+ {"version":3,"file":"vite-CEW_QLtL.js","names":[],"sources":["../src/vite.ts"],"sourcesContent":["import { createVitePlugin } from 'unplugin'\n\nimport { unpluginFactory } from './index.ts'\n\nexport default createVitePlugin(unpluginFactory)\n"],"mappings":";;;;AAIA,mBAAe,iBAAiB,gBAAgB"}
package/dist/vite.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  import * as unplugin0 from "unplugin";
3
3
 
4
4
  //#region src/vite.d.ts
package/dist/vite.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  import * as unplugin0 from "unplugin";
3
3
 
4
4
  //#region src/vite.d.ts
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-DnCwQQFX.js";
2
- import { vite_default } from "./vite-D_U2l8No.js";
1
+ import "./src-Dn-CzqNK.js";
2
+ import { t as vite_default } from "./vite-CEW_QLtL.js";
3
3
 
4
4
  export { vite_default as default };
@@ -1,9 +1,9 @@
1
- import { unpluginFactory } from "./src-DnCwQQFX.js";
1
+ import { r as unpluginFactory } from "./src-Dn-CzqNK.js";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/webpack.ts
5
5
  var webpack_default = createWebpackPlugin(unpluginFactory);
6
6
 
7
7
  //#endregion
8
- export { webpack_default };
9
- //# sourceMappingURL=webpack-CQIEgBNc.js.map
8
+ export { webpack_default as t };
9
+ //# sourceMappingURL=webpack-gtaz7qKH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-CQIEgBNc.js","names":[],"sources":["../src/webpack.ts"],"sourcesContent":["import { createWebpackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './index.ts'\n\nimport type { UnpluginFactoryOutput } from 'unplugin'\nimport type { WebpackPluginInstance } from 'webpack'\nimport type { Options } from './types.ts'\n\n// resolves issue for: The inferred type of 'default' cannot be named without a reference to 'node_modules/webpack'. This is likely not portable. A type annotation is necessary.\nexport default createWebpackPlugin(unpluginFactory) as unknown as UnpluginFactoryOutput<Options, WebpackPluginInstance>\n"],"mappings":";;;;AASA,sBAAe,oBAAoB,gBAAgB"}
1
+ {"version":3,"file":"webpack-gtaz7qKH.js","names":[],"sources":["../src/webpack.ts"],"sourcesContent":["import { createWebpackPlugin } from 'unplugin'\n\nimport { unpluginFactory } from './index.ts'\n\nimport type { UnpluginFactoryOutput } from 'unplugin'\nimport type { WebpackPluginInstance } from 'webpack'\nimport type { Options } from './types.ts'\n\n// resolves issue for: The inferred type of 'default' cannot be named without a reference to 'node_modules/webpack'. This is likely not portable. A type annotation is necessary.\nexport default createWebpackPlugin(unpluginFactory) as unknown as UnpluginFactoryOutput<Options, WebpackPluginInstance>\n"],"mappings":";;;;AASA,sBAAe,oBAAoB,gBAAgB"}
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-BHypkRQJ.cjs";
1
+ import { t as Options } from "./types-DpTGv8q2.cjs";
2
2
  import { UnpluginFactoryOutput } from "unplugin";
3
3
  import { WebpackPluginInstance } from "webpack";
4
4
 
package/dist/webpack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CFQIMFRS.js";
1
+ import { t as Options } from "./types-Bt9ZCbPy.js";
2
2
  import { UnpluginFactoryOutput } from "unplugin";
3
3
  import { WebpackPluginInstance } from "webpack";
4
4
 
package/dist/webpack.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-DnCwQQFX.js";
2
- import { webpack_default } from "./webpack-CQIEgBNc.js";
1
+ import "./src-Dn-CzqNK.js";
2
+ import { t as webpack_default } from "./webpack-gtaz7qKH.js";
3
3
 
4
4
  export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-kubb",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "Unplugin for Kubb",
5
5
  "keywords": [
6
6
  "unplugin",
@@ -85,17 +85,13 @@
85
85
  "unplugin": "^2.3.10"
86
86
  },
87
87
  "devDependencies": {
88
- "@nuxt/kit": "^3.19.2",
89
- "@nuxt/schema": "^3.19.2",
90
- "@types/node": "^20.19.17",
88
+ "@nuxt/kit": "^3.20.0",
89
+ "@nuxt/schema": "^3.20.0",
91
90
  "rimraf": "^6.0.1",
92
- "rollup": "^4.50.2",
93
- "tsdown": "^0.14.2",
94
- "typescript": "^5.9.2",
95
- "vite": "^6.3.6",
96
- "webpack": "^5.101.3",
97
- "@kubb/config-ts": "4.0.0",
98
- "@kubb/core": "4.0.0"
91
+ "rollup": "^4.52.5",
92
+ "vite": "^6.4.1",
93
+ "webpack": "^5.102.1",
94
+ "@kubb/core": "4.4.1"
99
95
  },
100
96
  "peerDependencies": {
101
97
  "@kubb/core": "^4.0.0",