@kubb/core 5.0.0-beta.109 → 5.0.0-beta.110
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 +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/mocks.d.ts +1 -1
- package/dist/{types-TqpVzVtY.d.ts → types-Ba5Mo-G8.d.ts} +14 -10
- 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 { $ as PluginFactoryOptions, Ht as AdapterFactoryOptions, I as KubbDriver, M as Generator, R as Parser, Vt as Adapter, q as NormalizedPlugin, r as Config } from "./types-
|
|
2
|
+
import { $ as PluginFactoryOptions, Ht as AdapterFactoryOptions, I as KubbDriver, M as Generator, R as Parser, Vt as Adapter, q as NormalizedPlugin, r as Config } from "./types-Ba5Mo-G8.js";
|
|
3
3
|
import { FileNode, InputMeta, Macro, OperationNode, SchemaNode } from "@kubb/ast";
|
|
4
4
|
//#region src/mocks.d.ts
|
|
5
5
|
/**
|
|
@@ -1291,7 +1291,7 @@ type Output = {
|
|
|
1291
1291
|
* - `'file'` writes everything into a single file. The `path` must include the file extension.
|
|
1292
1292
|
* - `'directory'` writes one file per operation or schema under `path`.
|
|
1293
1293
|
*
|
|
1294
|
-
*
|
|
1294
|
+
* Defaults to `'file'` when `path` carries an extension and `'directory'` when it does not.
|
|
1295
1295
|
*/
|
|
1296
1296
|
mode?: OutputMode;
|
|
1297
1297
|
/**
|
|
@@ -1334,9 +1334,13 @@ type Group = {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Couples `output.mode` with the plugin's `group` option at the type level.
|
|
1337
|
-
* - `mode: 'file'`
|
|
1338
|
-
* - `mode
|
|
1339
|
-
*
|
|
1337
|
+
* - An explicit `mode: 'file'` forbids `group` (a single file has nothing to group).
|
|
1338
|
+
* - Omitting `mode`, or setting it to `'directory'`, allows an optional `group`.
|
|
1339
|
+
*
|
|
1340
|
+
* `mode` is normally inferred from `output.path` (an extension means `'file'`, anything
|
|
1341
|
+
* else `'directory'`), so `group` rarely needs `mode` spelled out alongside it. Set
|
|
1342
|
+
* `mode: 'directory'` explicitly only to override that inference, such as a directory
|
|
1343
|
+
* name that carries a dot (`path: 'clients.v2'`).
|
|
1340
1344
|
*
|
|
1341
1345
|
* Intersect into a plugin's `Options` type instead of declaring `output` and
|
|
1342
1346
|
* `group` directly, since `mode` lives inside `output` while `group` is its sibling.
|
|
@@ -1351,14 +1355,14 @@ type Group = {
|
|
|
1351
1355
|
*/
|
|
1352
1356
|
type OutputOptions<TOutput extends Output = Output> = {
|
|
1353
1357
|
output?: TOutput & {
|
|
1354
|
-
mode?: '
|
|
1358
|
+
mode?: 'directory';
|
|
1355
1359
|
};
|
|
1356
|
-
group?:
|
|
1360
|
+
group?: Group;
|
|
1357
1361
|
} | {
|
|
1358
|
-
output
|
|
1359
|
-
mode: '
|
|
1362
|
+
output?: TOutput & {
|
|
1363
|
+
mode: 'file';
|
|
1360
1364
|
};
|
|
1361
|
-
group?:
|
|
1365
|
+
group?: never;
|
|
1362
1366
|
};
|
|
1363
1367
|
type ByTag = {
|
|
1364
1368
|
/**
|
|
@@ -3009,4 +3013,4 @@ type BuildOutput = {
|
|
|
3009
3013
|
};
|
|
3010
3014
|
//#endregion
|
|
3011
3015
|
export { PluginFactoryOptions as $, Kubb$1 as A, DiagnosticDoc as At, Exclude$1 as B, Hookable as Bt, KubbWarnContext as C, Reporter as Ct, CreateKubbOptions as D, createReporter as Dt, UserConfig as E, UserReporter as Et, NodeCache as F, PerformanceDiagnostic as Ft, KubbPluginSetupContext as G, Group as H, AdapterFactoryOptions as Ht, KubbDriver as I, ProblemCode as It, Output as J, KubbPluginStartContext as K, FileManagerHooks as L, ProblemDiagnostic as Lt, Generator as M, DiagnosticLocation as Mt, GeneratorContext as N, DiagnosticSeverity as Nt, GenerateOptions as O, logLevel as Ot, defineGenerator as P, Diagnostics as Pt, Plugin as Q, Parser as R, SerializedDiagnostic as Rt, KubbSuccessContext as S, GenerationResult as St, PostGenerateCommand as T, ReporterName as Tt, Include as U, AdapterSource as Ut, Filter as V, Adapter as Vt, KubbPluginEndContext as W, createAdapter as Wt, OutputOptions as X, OutputMode as Y, Override as Z, KubbHookStartContext as _, Renderer as _t, KubbBuildEndContext as a, ResolveBannerFile as at, KubbLifecycleStartContext as b, Storage as bt, KubbErrorContext as c, ResolveOptionsContext as ct, KubbFilesProcessingStartContext as d, ResolverDefault as dt, PluginName as et, KubbFilesProcessingUpdateContext as f, ResolverFile as ft, KubbHookLineContext as g, ResolverPathParams as gt, KubbHookEndContext as h, ResolverPatch as ht, Input as i, ResolveBannerContext as it, createKubb as j, DiagnosticKind as jt, GenerateResult as k, Diagnostic as kt, KubbFileProcessingUpdate as l, ResolvePathOptions as lt, KubbGenerationStartContext as m, ResolverFilePathParams as mt, CLIOptions as n, definePlugin as nt, KubbBuildStartContext as o, ResolveFileOptions as ot, KubbGenerationEndContext as p, ResolverFileParams as pt, NormalizedPlugin as q, Config as r, BannerMeta as rt, KubbDiagnosticContext as s, ResolveImportsOptions as st, BuildOutput as t, ResolvePluginOptions as tt, KubbFilesProcessingEndContext as u, Resolver as ut, KubbHooks as v, RendererFactory as vt, PossibleConfig as w, ReporterContext as wt, KubbPluginsEndContext as x, createStorage as xt, KubbInfoContext as y, createRenderer as yt, defineParser as z, UpdateDiagnostic as zt };
|
|
3012
|
-
//# sourceMappingURL=types-
|
|
3016
|
+
//# sourceMappingURL=types-Ba5Mo-G8.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.110",
|
|
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.110"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@internals/utils": "0.0.0"
|