unplugin-kubb 3.0.0 → 3.1.0
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 +18 -16
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +1 -1
- package/dist/chunk-BybIe9x4.js +28 -0
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +3 -3
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +1 -1
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +1 -1
- package/dist/{src-DnCwQQFX.js → src-Dn-CzqNK.js} +2 -2
- package/dist/{src-DnCwQQFX.js.map → src-Dn-CzqNK.js.map} +1 -1
- package/dist/{types-CFQIMFRS.d.ts → types-BbLZctbn.d.ts} +8 -62
- package/dist/{types-BHypkRQJ.d.cts → types-F_pPB4iq.d.cts} +8 -62
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{vite-D_U2l8No.js → vite-CEW_QLtL.js} +3 -3
- package/dist/{vite-D_U2l8No.js.map → vite-CEW_QLtL.js.map} +1 -1
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +2 -2
- package/dist/{webpack-CQIEgBNc.js → webpack-gtaz7qKH.js} +3 -3
- package/dist/{webpack-CQIEgBNc.js.map → webpack-gtaz7qKH.js.map} +1 -1
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +2 -2
- package/package.json +10 -11
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
package/dist/astro.d.ts
CHANGED
package/dist/astro.js
CHANGED
|
@@ -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 { };
|
package/dist/esbuild.d.cts
CHANGED
package/dist/esbuild.d.ts
CHANGED
package/dist/esbuild.js
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/nuxt.d.cts
CHANGED
package/dist/nuxt.d.ts
CHANGED
package/dist/nuxt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./src-
|
|
2
|
-
import { vite_default } from "./vite-
|
|
3
|
-
import { webpack_default } from "./webpack-
|
|
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
package/dist/rollup.d.ts
CHANGED
package/dist/rollup.js
CHANGED
package/dist/rspack.d.cts
CHANGED
package/dist/rspack.d.ts
CHANGED
package/dist/rspack.js
CHANGED
|
@@ -46,5 +46,5 @@ const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
|
|
|
46
46
|
var src_default = unplugin;
|
|
47
47
|
|
|
48
48
|
//#endregion
|
|
49
|
-
export {
|
|
50
|
-
//# sourceMappingURL=src-
|
|
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-
|
|
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,3 +1,4 @@
|
|
|
1
|
+
import { Fabric, FileManager } from "@kubb/react-fabric";
|
|
1
2
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
2
3
|
|
|
3
4
|
//#region ../core/src/fs/types.d.ts
|
|
@@ -165,8 +166,6 @@ type Logger = {
|
|
|
165
166
|
//#endregion
|
|
166
167
|
//#region ../core/src/utils/types.d.ts
|
|
167
168
|
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
169
|
//#endregion
|
|
171
170
|
//#region ../core/src/types.d.ts
|
|
172
171
|
/**
|
|
@@ -428,7 +427,11 @@ type ResolveNameParams = {
|
|
|
428
427
|
type?: 'file' | 'function' | 'type' | 'const';
|
|
429
428
|
};
|
|
430
429
|
type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
|
|
430
|
+
fabric: Fabric;
|
|
431
431
|
config: Config;
|
|
432
|
+
/**
|
|
433
|
+
* @deprecated
|
|
434
|
+
*/
|
|
432
435
|
fileManager: FileManager;
|
|
433
436
|
pluginManager: PluginManager;
|
|
434
437
|
addFile: (...file: Array<File>) => Promise<Array<ResolvedFile>>;
|
|
@@ -444,63 +447,6 @@ type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions>
|
|
|
444
447
|
*/
|
|
445
448
|
plugin: Plugin<TOptions>;
|
|
446
449
|
};
|
|
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
450
|
//#endregion
|
|
505
451
|
//#region ../core/src/PluginManager.d.ts
|
|
506
452
|
type RequiredPluginLifecycle = Required<PluginLifecycle>;
|
|
@@ -519,6 +465,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
|
|
|
519
465
|
plugin: Plugin;
|
|
520
466
|
};
|
|
521
467
|
type Options$1 = {
|
|
468
|
+
fabric: Fabric;
|
|
522
469
|
logger: Logger;
|
|
523
470
|
/**
|
|
524
471
|
* @default Number.POSITIVE_INFINITY
|
|
@@ -540,7 +487,6 @@ type GetFileProps<TOptions = object> = {
|
|
|
540
487
|
declare class PluginManager {
|
|
541
488
|
#private;
|
|
542
489
|
readonly plugins: Set<Plugin<PluginFactoryOptions<string, object, object, any, object>>>;
|
|
543
|
-
readonly fileManager: FileManager;
|
|
544
490
|
readonly events: EventEmitter<Events>;
|
|
545
491
|
readonly config: Config;
|
|
546
492
|
readonly executed: Array<Executer>;
|
|
@@ -656,5 +602,5 @@ type Options = {
|
|
|
656
602
|
config?: Omit<UserConfig, 'hooks'>;
|
|
657
603
|
};
|
|
658
604
|
//#endregion
|
|
659
|
-
export { Options };
|
|
660
|
-
//# sourceMappingURL=types-
|
|
605
|
+
export { Options as t };
|
|
606
|
+
//# sourceMappingURL=types-BbLZctbn.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fabric, FileManager } from "@kubb/react-fabric";
|
|
1
2
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
2
3
|
|
|
3
4
|
//#region ../core/src/fs/types.d.ts
|
|
@@ -165,8 +166,6 @@ type Logger = {
|
|
|
165
166
|
//#endregion
|
|
166
167
|
//#region ../core/src/utils/types.d.ts
|
|
167
168
|
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
169
|
//#endregion
|
|
171
170
|
//#region ../core/src/types.d.ts
|
|
172
171
|
/**
|
|
@@ -428,7 +427,11 @@ type ResolveNameParams = {
|
|
|
428
427
|
type?: 'file' | 'function' | 'type' | 'const';
|
|
429
428
|
};
|
|
430
429
|
type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
|
|
430
|
+
fabric: Fabric;
|
|
431
431
|
config: Config;
|
|
432
|
+
/**
|
|
433
|
+
* @deprecated
|
|
434
|
+
*/
|
|
432
435
|
fileManager: FileManager;
|
|
433
436
|
pluginManager: PluginManager;
|
|
434
437
|
addFile: (...file: Array<File>) => Promise<Array<ResolvedFile>>;
|
|
@@ -444,63 +447,6 @@ type PluginContext<TOptions extends PluginFactoryOptions = PluginFactoryOptions>
|
|
|
444
447
|
*/
|
|
445
448
|
plugin: Plugin<TOptions>;
|
|
446
449
|
};
|
|
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
450
|
//#endregion
|
|
505
451
|
//#region ../core/src/PluginManager.d.ts
|
|
506
452
|
type RequiredPluginLifecycle = Required<PluginLifecycle>;
|
|
@@ -519,6 +465,7 @@ type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseRe
|
|
|
519
465
|
plugin: Plugin;
|
|
520
466
|
};
|
|
521
467
|
type Options$1 = {
|
|
468
|
+
fabric: Fabric;
|
|
522
469
|
logger: Logger;
|
|
523
470
|
/**
|
|
524
471
|
* @default Number.POSITIVE_INFINITY
|
|
@@ -540,7 +487,6 @@ type GetFileProps<TOptions = object> = {
|
|
|
540
487
|
declare class PluginManager {
|
|
541
488
|
#private;
|
|
542
489
|
readonly plugins: Set<Plugin<PluginFactoryOptions<string, object, object, any, object>>>;
|
|
543
|
-
readonly fileManager: FileManager;
|
|
544
490
|
readonly events: EventEmitter<Events>;
|
|
545
491
|
readonly config: Config;
|
|
546
492
|
readonly executed: Array<Executer>;
|
|
@@ -656,5 +602,5 @@ type Options = {
|
|
|
656
602
|
config?: Omit<UserConfig, 'hooks'>;
|
|
657
603
|
};
|
|
658
604
|
//#endregion
|
|
659
|
-
export { Options };
|
|
660
|
-
//# sourceMappingURL=types-
|
|
605
|
+
export { Options as t };
|
|
606
|
+
//# sourceMappingURL=types-F_pPB4iq.d.cts.map
|
package/dist/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { t as Options } from "./types-F_pPB4iq.cjs";
|
|
2
2
|
export { Options };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Options } from "./types-
|
|
1
|
+
import { t as Options } from "./types-BbLZctbn.js";
|
|
2
2
|
export { Options };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { unpluginFactory } from "./src-
|
|
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-
|
|
8
|
+
export { vite_default as t };
|
|
9
|
+
//# sourceMappingURL=vite-CEW_QLtL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-
|
|
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
package/dist/vite.d.ts
CHANGED
package/dist/vite.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { unpluginFactory } from "./src-
|
|
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-
|
|
8
|
+
export { webpack_default as t };
|
|
9
|
+
//# sourceMappingURL=webpack-gtaz7qKH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-
|
|
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"}
|
package/dist/webpack.d.cts
CHANGED
package/dist/webpack.d.ts
CHANGED
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-kubb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Unplugin for Kubb",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unplugin",
|
|
@@ -85,17 +85,16 @@
|
|
|
85
85
|
"unplugin": "^2.3.10"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@nuxt/kit": "^3.
|
|
89
|
-
"@nuxt/schema": "^3.
|
|
90
|
-
"@types/node": "^20.19.
|
|
88
|
+
"@nuxt/kit": "^3.20.0",
|
|
89
|
+
"@nuxt/schema": "^3.20.0",
|
|
90
|
+
"@types/node": "^20.19.23",
|
|
91
91
|
"rimraf": "^6.0.1",
|
|
92
|
-
"rollup": "^4.
|
|
93
|
-
"tsdown": "^0.
|
|
94
|
-
"typescript": "^5.9.
|
|
95
|
-
"vite": "^6.
|
|
96
|
-
"webpack": "^5.
|
|
97
|
-
"@kubb/
|
|
98
|
-
"@kubb/core": "4.0.0"
|
|
92
|
+
"rollup": "^4.52.5",
|
|
93
|
+
"tsdown": "^0.15.11",
|
|
94
|
+
"typescript": "^5.9.3",
|
|
95
|
+
"vite": "^6.4.1",
|
|
96
|
+
"webpack": "^5.102.1",
|
|
97
|
+
"@kubb/core": "4.4.0"
|
|
99
98
|
},
|
|
100
99
|
"peerDependencies": {
|
|
101
100
|
"@kubb/core": "^4.0.0",
|