@kubb/core 5.0.0-beta.98 → 5.0.0-beta.99
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-CK6CfipY.d.ts → types-DM7-MGjZ.d.ts} +11 -11
- package/package.json +2 -2
package/dist/mocks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { A as Generator, F as Parser, N as KubbDriver, Rt as Adapter, W as NormalizedPlugin, X as PluginFactoryOptions, r as Config, zt as AdapterFactoryOptions } from "./types-
|
|
2
|
+
import { A as Generator, F as Parser, N as KubbDriver, Rt as Adapter, W as NormalizedPlugin, X as PluginFactoryOptions, r as Config, zt as AdapterFactoryOptions } from "./types-DM7-MGjZ.js";
|
|
3
3
|
import { FileNode, InputMeta, Macro, OperationNode, SchemaNode } from "@kubb/ast";
|
|
4
4
|
//#region src/mocks.d.ts
|
|
5
5
|
/**
|
|
@@ -1240,8 +1240,8 @@ type PluginName = LiteralUnion<keyof Kubb.PluginRegistry>;
|
|
|
1240
1240
|
type ResolvePluginOptions<TName> = TName extends keyof Kubb.PluginRegistry ? Kubb.PluginRegistry[TName] : PluginFactoryOptions;
|
|
1241
1241
|
/**
|
|
1242
1242
|
* How a plugin consolidates its generated code into files.
|
|
1243
|
-
* - `'directory'` writes one file per operation or schema under `path`.
|
|
1244
1243
|
* - `'file'` writes everything into a single file.
|
|
1244
|
+
* - `'directory'` writes one file per operation or schema under `path`.
|
|
1245
1245
|
*/
|
|
1246
1246
|
type OutputMode = 'directory' | 'file';
|
|
1247
1247
|
/**
|
|
@@ -1257,10 +1257,10 @@ type Output = {
|
|
|
1257
1257
|
path: string;
|
|
1258
1258
|
/**
|
|
1259
1259
|
* How generated code is consolidated into files.
|
|
1260
|
-
* - `'directory'` writes one file per operation or schema under `path`.
|
|
1261
1260
|
* - `'file'` writes everything into a single file. The `path` must include the file extension.
|
|
1261
|
+
* - `'directory'` writes one file per operation or schema under `path`.
|
|
1262
1262
|
*
|
|
1263
|
-
* @default '
|
|
1263
|
+
* @default 'file'
|
|
1264
1264
|
*/
|
|
1265
1265
|
mode?: OutputMode;
|
|
1266
1266
|
/**
|
|
@@ -1303,9 +1303,9 @@ type Group = {
|
|
|
1303
1303
|
};
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Couples `output.mode` with the plugin's `group` option at the type level.
|
|
1306
|
-
* - `mode: 'file'` forbids `group` (a single file has nothing to group).
|
|
1307
|
-
* - `mode: 'directory'`
|
|
1308
|
-
*
|
|
1306
|
+
* - `mode: 'file'` (or no mode) forbids `group` (a single file has nothing to group).
|
|
1307
|
+
* - `mode: 'directory'` allows an optional `group` to organize files into
|
|
1308
|
+
* per-group subdirectories.
|
|
1309
1309
|
*
|
|
1310
1310
|
* Intersect into a plugin's `Options` type instead of declaring `output` and
|
|
1311
1311
|
* `group` directly, since `mode` lives inside `output` while `group` is its sibling.
|
|
@@ -1320,14 +1320,14 @@ type Group = {
|
|
|
1320
1320
|
*/
|
|
1321
1321
|
type OutputOptions<TOutput extends Output = Output> = {
|
|
1322
1322
|
output?: TOutput & {
|
|
1323
|
-
mode?: '
|
|
1323
|
+
mode?: 'file';
|
|
1324
1324
|
};
|
|
1325
|
-
group?:
|
|
1325
|
+
group?: never;
|
|
1326
1326
|
} | {
|
|
1327
1327
|
output: TOutput & {
|
|
1328
|
-
mode: '
|
|
1328
|
+
mode: 'directory';
|
|
1329
1329
|
};
|
|
1330
|
-
group?:
|
|
1330
|
+
group?: Group;
|
|
1331
1331
|
};
|
|
1332
1332
|
type ByTag = {
|
|
1333
1333
|
/**
|
|
@@ -2835,4 +2835,4 @@ type BuildOutput = {
|
|
|
2835
2835
|
};
|
|
2836
2836
|
//#endregion
|
|
2837
2837
|
export { definePlugin as $, Generator as A, DiagnosticSeverity as At, Include as B, AdapterSource as Bt, KubbWarnContext as C, UserReporter as Ct, CreateKubbOptions as D, DiagnosticDoc as Dt, UserConfig as E, Diagnostic as Et, Parser as F, SerializedDiagnostic as Ft, Output as G, KubbPluginSetupContext as H, defineParser as I, UpdateDiagnostic as It, Override as J, OutputMode as K, Exclude$1 as L, Hookable as Lt, defineGenerator as M, PerformanceDiagnostic as Mt, KubbDriver as N, ProblemCode as Nt, Kubb$1 as O, DiagnosticKind as Ot, FileManagerHooks as P, ProblemDiagnostic as Pt, ResolvePluginOptions as Q, Filter as R, Adapter as Rt, KubbSuccessContext as S, ReporterName as St, PostGenerateCommand as T, logLevel as Tt, KubbPluginStartContext as U, KubbPluginEndContext as V, createAdapter as Vt, NormalizedPlugin as W, PluginFactoryOptions as X, Plugin as Y, PluginName as Z, KubbHookStartContext as _, Storage as _t, KubbBuildEndContext as a, ResolveOptionsContext as at, KubbLifecycleStartContext as b, Reporter as bt, KubbErrorContext as c, ResolverDefault as ct, KubbFilesProcessingStartContext as d, ResolverFilePathParams as dt, BannerMeta as et, KubbFilesProcessingUpdateContext as f, ResolverPatch as ft, KubbHookLineContext as g, createRenderer as gt, KubbHookEndContext as h, RendererFactory as ht, Input as i, ResolveImportsOptions as it, GeneratorContext as j, Diagnostics as jt, createKubb as k, DiagnosticLocation as kt, KubbFileProcessingUpdate as l, ResolverFile as lt, KubbGenerationStartContext as m, Renderer as mt, CLIOptions as n, ResolveBannerFile as nt, KubbBuildStartContext as o, ResolvePathOptions as ot, KubbGenerationEndContext as p, ResolverPathParams as pt, OutputOptions as q, Config as r, ResolveFileOptions as rt, KubbDiagnosticContext as s, Resolver as st, BuildOutput as t, ResolveBannerContext as tt, KubbFilesProcessingEndContext as u, ResolverFileParams as ut, KubbHooks as v, createStorage as vt, PossibleConfig as w, createReporter as wt, KubbPluginsEndContext as x, ReporterContext as xt, KubbInfoContext as y, GenerationResult as yt, Group as z, AdapterFactoryOptions as zt };
|
|
2838
|
-
//# sourceMappingURL=types-
|
|
2838
|
+
//# sourceMappingURL=types-DM7-MGjZ.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.99",
|
|
4
4
|
"description": "Core engine for Kubb. Provides the plugin driver, file manager and build orchestration used by every Kubb plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generator",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"registry": "https://registry.npmjs.org/"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@kubb/ast": "5.0.0-beta.
|
|
58
|
+
"@kubb/ast": "5.0.0-beta.99"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@internals/utils": "0.0.0"
|