@kubb/core 2.21.2 → 2.22.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/dist/{chunk-5UEMCOTB.cjs → chunk-BYB3RZQZ.cjs} +18 -18
- package/dist/{chunk-NPISNQZW.cjs → chunk-ECFGQQEF.cjs} +5 -5
- package/dist/{chunk-QGEKR3WN.cjs → chunk-J3MTBQSY.cjs} +3 -3
- package/dist/{chunk-QGEKR3WN.cjs.map → chunk-J3MTBQSY.cjs.map} +1 -1
- package/dist/{chunk-7GISIU7C.cjs → chunk-PBM3LC6E.cjs} +12 -12
- package/dist/{chunk-SPD3YLEM.cjs → chunk-RHNURFUQ.cjs} +145 -145
- package/dist/{chunk-RDHZSAKG.cjs → chunk-WDFIWIMG.cjs} +28 -28
- package/dist/index.cjs +139 -133
- package/dist/index.cjs.map +1 -1
- package/dist/logger.cjs +3 -3
- package/dist/mocks.cjs +8 -8
- package/dist/transformers.cjs +4 -4
- package/dist/utils.cjs +4 -4
- package/package.json +9 -9
- /package/dist/{chunk-5UEMCOTB.cjs.map → chunk-BYB3RZQZ.cjs.map} +0 -0
- /package/dist/{chunk-NPISNQZW.cjs.map → chunk-ECFGQQEF.cjs.map} +0 -0
- /package/dist/{chunk-7GISIU7C.cjs.map → chunk-PBM3LC6E.cjs.map} +0 -0
- /package/dist/{chunk-SPD3YLEM.cjs.map → chunk-RHNURFUQ.cjs.map} +0 -0
- /package/dist/{chunk-RDHZSAKG.cjs.map → chunk-WDFIWIMG.cjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPBM3LC6Ecjs = require('./chunk-PBM3LC6E.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRHNURFUQcjs = require('./chunk-RHNURFUQ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBYB3RZQZcjs = require('./chunk-BYB3RZQZ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunkWDFIWIMGcjs = require('./chunk-WDFIWIMG.cjs');
|
|
19
|
+
require('./chunk-ECFGQQEF.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -25,24 +25,24 @@ require('./chunk-NPISNQZW.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkJ3MTBQSYcjs = require('./chunk-J3MTBQSY.cjs');
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
|
|
31
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
32
32
|
|
|
33
33
|
// src/build.ts
|
|
34
|
-
|
|
34
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
35
35
|
var _fs = require('@kubb/fs');
|
|
36
36
|
|
|
37
37
|
// src/PluginManager.ts
|
|
38
|
-
|
|
38
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
// src/PromiseManager.ts
|
|
42
|
-
|
|
42
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
43
43
|
|
|
44
44
|
// src/utils/executeStrategies.ts
|
|
45
|
-
|
|
45
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
46
46
|
function hookSeq(promises) {
|
|
47
47
|
return promises.filter(Boolean).reduce(
|
|
48
48
|
(promise, func) => {
|
|
@@ -80,8 +80,8 @@ function hookParallel(promises) {
|
|
|
80
80
|
var _options;
|
|
81
81
|
var PromiseManager = class {
|
|
82
82
|
constructor(options = {}) {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _options, {});
|
|
84
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _options, options);
|
|
85
85
|
return this;
|
|
86
86
|
}
|
|
87
87
|
run(strategy, promises) {
|
|
@@ -89,7 +89,7 @@ var PromiseManager = class {
|
|
|
89
89
|
return hookSeq(promises);
|
|
90
90
|
}
|
|
91
91
|
if (strategy === "first") {
|
|
92
|
-
return hookFirst(promises,
|
|
92
|
+
return hookFirst(promises, _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _options).nullCheck);
|
|
93
93
|
}
|
|
94
94
|
if (strategy === "parallel") {
|
|
95
95
|
return hookParallel(promises);
|
|
@@ -106,7 +106,7 @@ function isPromiseRejectedResult(result) {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
// src/errors.ts
|
|
109
|
-
|
|
109
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
110
110
|
var Warning = class extends Error {
|
|
111
111
|
constructor(message, options) {
|
|
112
112
|
super(message, { cause: _optionalChain([options, 'optionalAccess', _3 => _3.cause]) });
|
|
@@ -117,11 +117,11 @@ var ValidationPluginError = class extends Error {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
// src/plugin.ts
|
|
120
|
-
|
|
120
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
121
121
|
var _path2 = require('path'); var _path3 = _interopRequireDefault(_path2);
|
|
122
122
|
|
|
123
123
|
// src/utils/cache.ts
|
|
124
|
-
|
|
124
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
125
125
|
function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
|
|
126
126
|
return {
|
|
127
127
|
set(id, value) {
|
|
@@ -201,12 +201,12 @@ var pluginCore = createPlugin((options) => {
|
|
|
201
201
|
var _core, _usedPluginNames, _promiseManager, _PluginManager_instances, getSortedPlugins_fn, addExecutedToCallStack_fn, execute_fn, executeSync_fn, catcher_fn, parse_fn;
|
|
202
202
|
var PluginManager = class {
|
|
203
203
|
constructor(config, options) {
|
|
204
|
-
|
|
205
|
-
this.events = new (0,
|
|
204
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _PluginManager_instances);
|
|
205
|
+
this.events = new (0, _chunkPBM3LC6Ecjs.EventEmitter)();
|
|
206
206
|
this.executed = [];
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _core);
|
|
208
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
|
|
209
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _promiseManager);
|
|
210
210
|
this.resolvePath = (params) => {
|
|
211
211
|
if (params.pluginKey) {
|
|
212
212
|
const paths = this.hookForPluginSync({
|
|
@@ -248,22 +248,22 @@ Falling back on the first item.
|
|
|
248
248
|
`
|
|
249
249
|
]);
|
|
250
250
|
}
|
|
251
|
-
return
|
|
251
|
+
return _chunkBYB3RZQZcjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _8 => _8.at, 'call', _9 => _9(0)]) || params.name);
|
|
252
252
|
}
|
|
253
253
|
const name = this.hookFirstSync({
|
|
254
254
|
hookName: "resolveName",
|
|
255
255
|
parameters: [params.name, params.type]
|
|
256
256
|
}).result;
|
|
257
|
-
return
|
|
257
|
+
return _chunkBYB3RZQZcjs.transformReservedWord.call(void 0, name);
|
|
258
258
|
};
|
|
259
259
|
this.config = config;
|
|
260
260
|
this.logger = options.logger;
|
|
261
|
-
this.queue = new (0,
|
|
262
|
-
this.fileManager = new (0,
|
|
261
|
+
this.queue = new (0, _chunkRHNURFUQcjs.PQueue)({ concurrency: 1 });
|
|
262
|
+
this.fileManager = new (0, _chunkRHNURFUQcjs.FileManager)({
|
|
263
263
|
task: options.task,
|
|
264
264
|
queue: this.queue
|
|
265
265
|
});
|
|
266
|
-
|
|
266
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({
|
|
267
267
|
nullCheck: (state) => !!_optionalChain([state, 'optionalAccess', _10 => _10.result])
|
|
268
268
|
}));
|
|
269
269
|
const plugins = config.plugins || [];
|
|
@@ -274,11 +274,11 @@ Falling back on the first item.
|
|
|
274
274
|
fileManager: this.fileManager,
|
|
275
275
|
resolvePath: this.resolvePath.bind(this),
|
|
276
276
|
resolveName: this.resolveName.bind(this),
|
|
277
|
-
getPlugins:
|
|
277
|
+
getPlugins: _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).bind(this)
|
|
278
278
|
});
|
|
279
|
-
|
|
280
|
-
this.plugins = [
|
|
281
|
-
return
|
|
279
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _core, _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, parse_fn).call(this, core, this, core.api.call(null)));
|
|
280
|
+
this.plugins = [_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
|
|
281
|
+
return _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, parse_fn).call(this, plugin, this, _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _core).api);
|
|
282
282
|
});
|
|
283
283
|
return this;
|
|
284
284
|
}
|
|
@@ -318,7 +318,7 @@ Falling back on the first item.
|
|
|
318
318
|
}) {
|
|
319
319
|
const plugins = this.getPluginsByKey(hookName, pluginKey);
|
|
320
320
|
const promises = plugins.map((plugin) => {
|
|
321
|
-
return
|
|
321
|
+
return _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, execute_fn).call(this, {
|
|
322
322
|
strategy: "hookFirst",
|
|
323
323
|
hookName,
|
|
324
324
|
parameters,
|
|
@@ -337,7 +337,7 @@ Falling back on the first item.
|
|
|
337
337
|
}) {
|
|
338
338
|
const plugins = this.getPluginsByKey(hookName, pluginKey);
|
|
339
339
|
return plugins.map((plugin) => {
|
|
340
|
-
return
|
|
340
|
+
return _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, executeSync_fn).call(this, {
|
|
341
341
|
strategy: "hookFirst",
|
|
342
342
|
hookName,
|
|
343
343
|
parameters,
|
|
@@ -353,11 +353,11 @@ Falling back on the first item.
|
|
|
353
353
|
parameters,
|
|
354
354
|
skipped
|
|
355
355
|
}) {
|
|
356
|
-
const promises =
|
|
356
|
+
const promises = _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this).filter((plugin) => {
|
|
357
357
|
return skipped ? skipped.has(plugin) : true;
|
|
358
358
|
}).map((plugin) => {
|
|
359
359
|
return async () => {
|
|
360
|
-
const value = await
|
|
360
|
+
const value = await _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, execute_fn).call(this, {
|
|
361
361
|
strategy: "hookFirst",
|
|
362
362
|
hookName,
|
|
363
363
|
parameters,
|
|
@@ -369,7 +369,7 @@ Falling back on the first item.
|
|
|
369
369
|
});
|
|
370
370
|
};
|
|
371
371
|
});
|
|
372
|
-
return
|
|
372
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
* First non-null result stops and will return it's value.
|
|
@@ -380,12 +380,12 @@ Falling back on the first item.
|
|
|
380
380
|
skipped
|
|
381
381
|
}) {
|
|
382
382
|
let parseResult = null;
|
|
383
|
-
for (const plugin of
|
|
383
|
+
for (const plugin of _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this)) {
|
|
384
384
|
if (_optionalChain([skipped, 'optionalAccess', _11 => _11.has, 'call', _12 => _12(plugin)])) {
|
|
385
385
|
continue;
|
|
386
386
|
}
|
|
387
387
|
parseResult = {
|
|
388
|
-
result:
|
|
388
|
+
result: _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, executeSync_fn).call(this, {
|
|
389
389
|
strategy: "hookFirst",
|
|
390
390
|
hookName,
|
|
391
391
|
parameters,
|
|
@@ -406,19 +406,19 @@ Falling back on the first item.
|
|
|
406
406
|
hookName,
|
|
407
407
|
parameters
|
|
408
408
|
}) {
|
|
409
|
-
const promises =
|
|
410
|
-
return () =>
|
|
409
|
+
const promises = _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this).map((plugin) => {
|
|
410
|
+
return () => _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, execute_fn).call(this, {
|
|
411
411
|
strategy: "hookParallel",
|
|
412
412
|
hookName,
|
|
413
413
|
parameters,
|
|
414
414
|
plugin
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
|
-
const results = await
|
|
417
|
+
const results = await _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
|
|
418
418
|
results.forEach((result, index) => {
|
|
419
419
|
if (isPromiseRejectedResult(result)) {
|
|
420
|
-
const plugin =
|
|
421
|
-
|
|
420
|
+
const plugin = _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this)[index];
|
|
421
|
+
_chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, catcher_fn).call(this, result.reason, plugin, hookName);
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
return results.filter((result) => result.status === "fulfilled").map((result) => result.value);
|
|
@@ -433,16 +433,16 @@ Falling back on the first item.
|
|
|
433
433
|
}) {
|
|
434
434
|
const [argument0, ...rest] = parameters;
|
|
435
435
|
let promise = Promise.resolve(argument0);
|
|
436
|
-
for (const plugin of
|
|
436
|
+
for (const plugin of _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this)) {
|
|
437
437
|
promise = promise.then((arg0) => {
|
|
438
|
-
const value =
|
|
438
|
+
const value = _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, execute_fn).call(this, {
|
|
439
439
|
strategy: "hookReduceArg0",
|
|
440
440
|
hookName,
|
|
441
441
|
parameters: [arg0, ...rest],
|
|
442
442
|
plugin
|
|
443
443
|
});
|
|
444
444
|
return value;
|
|
445
|
-
}).then((result) => reduce.call(
|
|
445
|
+
}).then((result) => reduce.call(_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
|
|
446
446
|
}
|
|
447
447
|
return promise;
|
|
448
448
|
}
|
|
@@ -450,15 +450,15 @@ Falling back on the first item.
|
|
|
450
450
|
* Chains plugins
|
|
451
451
|
*/
|
|
452
452
|
async hookSeq({ hookName, parameters }) {
|
|
453
|
-
const promises =
|
|
454
|
-
return () =>
|
|
453
|
+
const promises = _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this).map((plugin) => {
|
|
454
|
+
return () => _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, execute_fn).call(this, {
|
|
455
455
|
strategy: "hookSeq",
|
|
456
456
|
hookName,
|
|
457
457
|
parameters,
|
|
458
458
|
plugin
|
|
459
459
|
});
|
|
460
460
|
});
|
|
461
|
-
return
|
|
461
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
|
|
462
462
|
}
|
|
463
463
|
getPluginsByKey(hookName, pluginKey) {
|
|
464
464
|
const plugins = [...this.plugins];
|
|
@@ -509,7 +509,7 @@ _PluginManager_instances = new WeakSet();
|
|
|
509
509
|
getSortedPlugins_fn = function(hookName) {
|
|
510
510
|
const plugins = [...this.plugins].filter((plugin) => plugin.name !== "core");
|
|
511
511
|
if (hookName) {
|
|
512
|
-
if (this.logger.logLevel ===
|
|
512
|
+
if (this.logger.logLevel === _chunkPBM3LC6Ecjs.LogLevel.info) {
|
|
513
513
|
const containsHookName = plugins.some((item) => item[hookName]);
|
|
514
514
|
if (!containsHookName) {
|
|
515
515
|
this.logger.emit("warning", `No hook ${hookName} found`);
|
|
@@ -562,7 +562,7 @@ execute_fn = function({
|
|
|
562
562
|
this.events.emit("execute", { strategy, hookName, parameters, plugin });
|
|
563
563
|
const task = Promise.resolve().then(() => {
|
|
564
564
|
if (typeof hook === "function") {
|
|
565
|
-
const possiblePromiseResult = hook.apply({ ...
|
|
565
|
+
const possiblePromiseResult = hook.apply({ ..._chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
|
|
566
566
|
if (isPromise(possiblePromiseResult)) {
|
|
567
567
|
return Promise.resolve(possiblePromiseResult);
|
|
568
568
|
}
|
|
@@ -571,7 +571,7 @@ execute_fn = function({
|
|
|
571
571
|
return hook;
|
|
572
572
|
}).then((result) => {
|
|
573
573
|
output = result;
|
|
574
|
-
|
|
574
|
+
_chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, addExecutedToCallStack_fn).call(this, {
|
|
575
575
|
parameters,
|
|
576
576
|
output,
|
|
577
577
|
strategy,
|
|
@@ -580,7 +580,7 @@ execute_fn = function({
|
|
|
580
580
|
});
|
|
581
581
|
return result;
|
|
582
582
|
}).catch((e) => {
|
|
583
|
-
|
|
583
|
+
_chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, catcher_fn).call(this, e, plugin, hookName);
|
|
584
584
|
return null;
|
|
585
585
|
});
|
|
586
586
|
return task;
|
|
@@ -606,12 +606,12 @@ executeSync_fn = function({
|
|
|
606
606
|
this.events.emit("execute", { strategy, hookName, parameters, plugin });
|
|
607
607
|
try {
|
|
608
608
|
if (typeof hook === "function") {
|
|
609
|
-
const fn = hook.apply({ ...
|
|
609
|
+
const fn = hook.apply({ ..._chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
|
|
610
610
|
output = fn;
|
|
611
611
|
return fn;
|
|
612
612
|
}
|
|
613
613
|
output = hook;
|
|
614
|
-
|
|
614
|
+
_chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, addExecutedToCallStack_fn).call(this, {
|
|
615
615
|
parameters,
|
|
616
616
|
output,
|
|
617
617
|
strategy,
|
|
@@ -620,7 +620,7 @@ executeSync_fn = function({
|
|
|
620
620
|
});
|
|
621
621
|
return hook;
|
|
622
622
|
} catch (e) {
|
|
623
|
-
|
|
623
|
+
_chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PluginManager_instances, catcher_fn).call(this, e, plugin, hookName);
|
|
624
624
|
return null;
|
|
625
625
|
}
|
|
626
626
|
};
|
|
@@ -630,8 +630,8 @@ catcher_fn = function(cause, plugin, hookName) {
|
|
|
630
630
|
this.events.emit("error", cause);
|
|
631
631
|
};
|
|
632
632
|
parse_fn = function(plugin, pluginManager, context) {
|
|
633
|
-
const usedPluginNames =
|
|
634
|
-
|
|
633
|
+
const usedPluginNames = _chunkJ3MTBQSYcjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
|
|
634
|
+
_chunkWDFIWIMGcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
|
|
635
635
|
const key = [plugin.name, usedPluginNames[plugin.name]].filter(Boolean);
|
|
636
636
|
if (!plugin.transform) {
|
|
637
637
|
plugin.transform = function transform(_path, code) {
|
|
@@ -653,7 +653,7 @@ parse_fn = function(plugin, pluginManager, context) {
|
|
|
653
653
|
};
|
|
654
654
|
|
|
655
655
|
// src/config.ts
|
|
656
|
-
|
|
656
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
657
657
|
function defineConfig(options) {
|
|
658
658
|
return options;
|
|
659
659
|
}
|
|
@@ -666,16 +666,16 @@ async function transformReducer(_previousCode, result, _plugin) {
|
|
|
666
666
|
return result;
|
|
667
667
|
}
|
|
668
668
|
async function setup(options) {
|
|
669
|
-
const { config, logger =
|
|
669
|
+
const { config, logger = _chunkPBM3LC6Ecjs.createLogger.call(void 0, { logLevel: _chunkPBM3LC6Ecjs.LogLevel.silent }) } = options;
|
|
670
670
|
let count = 0;
|
|
671
671
|
try {
|
|
672
|
-
if (isInputPath(config) && !new (0,
|
|
672
|
+
if (isInputPath(config) && !new (0, _chunkWDFIWIMGcjs.URLPath)(config.input.path).isURL) {
|
|
673
673
|
await _fs.read.call(void 0, config.input.path);
|
|
674
674
|
}
|
|
675
675
|
} catch (e) {
|
|
676
676
|
if (isInputPath(config)) {
|
|
677
677
|
throw new Error(
|
|
678
|
-
`Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${
|
|
678
|
+
`Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${_chunkPBM3LC6Ecjs.p.dim(config.input.path)}`,
|
|
679
679
|
{
|
|
680
680
|
cause: e
|
|
681
681
|
}
|
|
@@ -687,7 +687,7 @@ async function setup(options) {
|
|
|
687
687
|
}
|
|
688
688
|
const task = async (file) => {
|
|
689
689
|
const { path: path4 } = file;
|
|
690
|
-
let source = await
|
|
690
|
+
let source = await _chunkRHNURFUQcjs.FileManager.getSource(file);
|
|
691
691
|
const { result: loadedResult } = await pluginManager.hookFirst({
|
|
692
692
|
hookName: "load",
|
|
693
693
|
parameters: [path4]
|
|
@@ -728,14 +728,14 @@ async function setup(options) {
|
|
|
728
728
|
const { hookName, parameters, plugin } = executer;
|
|
729
729
|
if (hookName === "writeFile") {
|
|
730
730
|
const [code] = parameters;
|
|
731
|
-
logger.emit("debug", [`PluginKey ${
|
|
731
|
+
logger.emit("debug", [`PluginKey ${_chunkPBM3LC6Ecjs.p.dim(JSON.stringify(plugin.key))}
|
|
732
732
|
with source
|
|
733
733
|
|
|
734
734
|
${code}`]);
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
737
|
pluginManager.queue.on("add", () => {
|
|
738
|
-
if (logger.logLevel !==
|
|
738
|
+
if (logger.logLevel !== _chunkPBM3LC6Ecjs.LogLevel.info) {
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
741
|
if (count === 0) {
|
|
@@ -743,31 +743,31 @@ ${code}`]);
|
|
|
743
743
|
}
|
|
744
744
|
});
|
|
745
745
|
pluginManager.queue.on("active", () => {
|
|
746
|
-
if (logger.logLevel !==
|
|
746
|
+
if (logger.logLevel !== _chunkPBM3LC6Ecjs.LogLevel.info) {
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
if (logger.spinner && pluginManager.queue.size > 0) {
|
|
750
750
|
const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
|
|
751
|
-
logger.spinner.suffixText =
|
|
751
|
+
logger.spinner.suffixText = _chunkPBM3LC6Ecjs.p.dim(text);
|
|
752
752
|
}
|
|
753
753
|
++count;
|
|
754
754
|
});
|
|
755
755
|
pluginManager.queue.on("completed", () => {
|
|
756
|
-
if (logger.logLevel !==
|
|
756
|
+
if (logger.logLevel !== _chunkPBM3LC6Ecjs.LogLevel.info) {
|
|
757
757
|
return;
|
|
758
758
|
}
|
|
759
759
|
if (logger.spinner) {
|
|
760
760
|
const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
|
|
761
|
-
logger.spinner.suffixText =
|
|
761
|
+
logger.spinner.suffixText = _chunkPBM3LC6Ecjs.p.dim(text);
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
pluginManager.on("executed", (executer) => {
|
|
765
765
|
const { hookName, plugin, output, parameters } = executer;
|
|
766
766
|
const logs = [
|
|
767
|
-
`${
|
|
768
|
-
parameters && `${
|
|
767
|
+
`${_chunkPBM3LC6Ecjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
|
|
768
|
+
parameters && `${_chunkPBM3LC6Ecjs.p.bgWhite("Parameters")} ${_chunkPBM3LC6Ecjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
|
|
769
769
|
JSON.stringify(parameters, void 0, 2),
|
|
770
|
-
output && `${
|
|
770
|
+
output && `${_chunkPBM3LC6Ecjs.p.bgWhite("Output")} ${_chunkPBM3LC6Ecjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
|
|
771
771
|
output
|
|
772
772
|
].filter(Boolean);
|
|
773
773
|
logger.emit("debug", logs);
|
|
@@ -782,13 +782,13 @@ async function build(options) {
|
|
|
782
782
|
parameters: [options.config]
|
|
783
783
|
});
|
|
784
784
|
await pluginManager.hookParallel({ hookName: "buildEnd" });
|
|
785
|
-
if (logger.logLevel ===
|
|
785
|
+
if (logger.logLevel === _chunkPBM3LC6Ecjs.LogLevel.info) {
|
|
786
786
|
logger.emit("end", "\u{1F4BE} Writing completed");
|
|
787
787
|
}
|
|
788
788
|
const files = await Promise.all(
|
|
789
789
|
fileManager.files.map(async (file) => ({
|
|
790
790
|
...file,
|
|
791
|
-
source: await
|
|
791
|
+
source: await _chunkRHNURFUQcjs.FileManager.getSource(file)
|
|
792
792
|
}))
|
|
793
793
|
);
|
|
794
794
|
return {
|
|
@@ -805,14 +805,14 @@ async function safeBuild(options) {
|
|
|
805
805
|
parameters: [options.config]
|
|
806
806
|
});
|
|
807
807
|
await pluginManager.hookParallel({ hookName: "buildEnd" });
|
|
808
|
-
if (logger.logLevel ===
|
|
808
|
+
if (logger.logLevel === _chunkPBM3LC6Ecjs.LogLevel.info) {
|
|
809
809
|
logger.emit("end", "\u{1F4BE} Writing completed");
|
|
810
810
|
}
|
|
811
811
|
} catch (e) {
|
|
812
812
|
const files2 = await Promise.all(
|
|
813
813
|
fileManager.files.map(async (file) => ({
|
|
814
814
|
...file,
|
|
815
|
-
source: await
|
|
815
|
+
source: await _chunkRHNURFUQcjs.FileManager.getSource(file)
|
|
816
816
|
}))
|
|
817
817
|
);
|
|
818
818
|
return {
|
|
@@ -824,7 +824,7 @@ async function safeBuild(options) {
|
|
|
824
824
|
const files = await Promise.all(
|
|
825
825
|
fileManager.files.map(async (file) => ({
|
|
826
826
|
...file,
|
|
827
|
-
source: await
|
|
827
|
+
source: await _chunkRHNURFUQcjs.FileManager.getSource(file)
|
|
828
828
|
}))
|
|
829
829
|
);
|
|
830
830
|
return {
|
|
@@ -834,103 +834,109 @@ async function safeBuild(options) {
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
// src/Generator.ts
|
|
837
|
-
|
|
837
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
838
838
|
var _options2, _context;
|
|
839
839
|
var Generator = class {
|
|
840
840
|
constructor(options, context) {
|
|
841
|
-
|
|
842
|
-
|
|
841
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _options2, {});
|
|
842
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _context, {});
|
|
843
843
|
if (context) {
|
|
844
|
-
|
|
844
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _context, context);
|
|
845
845
|
}
|
|
846
846
|
if (options) {
|
|
847
|
-
|
|
847
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _options2, options);
|
|
848
848
|
}
|
|
849
849
|
return this;
|
|
850
850
|
}
|
|
851
851
|
get options() {
|
|
852
|
-
return
|
|
852
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _options2);
|
|
853
853
|
}
|
|
854
854
|
get context() {
|
|
855
|
-
return
|
|
855
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _context);
|
|
856
856
|
}
|
|
857
857
|
set options(options) {
|
|
858
|
-
|
|
858
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _options2, { ..._chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _options2), ...options });
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
861
|
_options2 = new WeakMap();
|
|
862
862
|
_context = new WeakMap();
|
|
863
863
|
|
|
864
864
|
// src/PackageManager.ts
|
|
865
|
-
|
|
865
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
866
866
|
var _module = require('module'); var _module2 = _interopRequireDefault(_module);
|
|
867
867
|
var _os = require('os'); var _os2 = _interopRequireDefault(_os);
|
|
868
868
|
var _url = require('url');
|
|
869
869
|
|
|
870
870
|
// ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
|
|
871
|
-
|
|
871
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
872
872
|
|
|
873
873
|
|
|
874
874
|
// ../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
|
|
875
|
-
|
|
875
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
876
876
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
877
877
|
|
|
878
878
|
var _fs3 = require('fs'); var _fs4 = _interopRequireDefault(_fs3);
|
|
879
879
|
|
|
880
880
|
|
|
881
881
|
// ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
|
|
882
|
-
|
|
882
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
883
883
|
|
|
884
884
|
// ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
|
|
885
|
-
|
|
885
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
886
886
|
|
|
887
|
-
// ../../node_modules/.pnpm/yocto-queue@1.
|
|
888
|
-
|
|
887
|
+
// ../../node_modules/.pnpm/yocto-queue@1.1.1/node_modules/yocto-queue/index.js
|
|
888
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
889
889
|
var Node = class {
|
|
890
890
|
constructor(value) {
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
_chunkJ3MTBQSYcjs.__publicField.call(void 0, this, "value");
|
|
892
|
+
_chunkJ3MTBQSYcjs.__publicField.call(void 0, this, "next");
|
|
893
893
|
this.value = value;
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
896
|
var _head, _tail, _size;
|
|
897
897
|
var Queue = class {
|
|
898
898
|
constructor() {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
899
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _head);
|
|
900
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _tail);
|
|
901
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _size);
|
|
902
902
|
this.clear();
|
|
903
903
|
}
|
|
904
904
|
enqueue(value) {
|
|
905
905
|
const node = new Node(value);
|
|
906
|
-
if (
|
|
907
|
-
|
|
908
|
-
|
|
906
|
+
if (_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _head)) {
|
|
907
|
+
_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _tail).next = node;
|
|
908
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _tail, node);
|
|
909
909
|
} else {
|
|
910
|
-
|
|
911
|
-
|
|
910
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _head, node);
|
|
911
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _tail, node);
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
_chunkJ3MTBQSYcjs.__privateWrapper.call(void 0, this, _size)._++;
|
|
914
914
|
}
|
|
915
915
|
dequeue() {
|
|
916
|
-
const current =
|
|
916
|
+
const current = _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _head);
|
|
917
917
|
if (!current) {
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _head, _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _head).next);
|
|
921
|
+
_chunkJ3MTBQSYcjs.__privateWrapper.call(void 0, this, _size)._--;
|
|
922
922
|
return current.value;
|
|
923
923
|
}
|
|
924
|
+
peek() {
|
|
925
|
+
if (!_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _head)) {
|
|
926
|
+
return;
|
|
927
|
+
}
|
|
928
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _head).value;
|
|
929
|
+
}
|
|
924
930
|
clear() {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
931
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _head, void 0);
|
|
932
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _tail, void 0);
|
|
933
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _size, 0);
|
|
928
934
|
}
|
|
929
935
|
get size() {
|
|
930
|
-
return
|
|
936
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _size);
|
|
931
937
|
}
|
|
932
938
|
*[Symbol.iterator]() {
|
|
933
|
-
let current =
|
|
939
|
+
let current = _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _head);
|
|
934
940
|
while (current) {
|
|
935
941
|
yield current.value;
|
|
936
942
|
current = current.next;
|
|
@@ -1081,14 +1087,14 @@ function locatePathSync(paths, {
|
|
|
1081
1087
|
}
|
|
1082
1088
|
|
|
1083
1089
|
// ../../node_modules/.pnpm/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
|
|
1084
|
-
|
|
1090
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
1085
1091
|
|
|
1086
1092
|
function toPath2(urlOrPath) {
|
|
1087
1093
|
return urlOrPath instanceof URL ? _url.fileURLToPath.call(void 0, urlOrPath) : urlOrPath;
|
|
1088
1094
|
}
|
|
1089
1095
|
|
|
1090
1096
|
// ../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js
|
|
1091
|
-
|
|
1097
|
+
_chunkJ3MTBQSYcjs.init_cjs_shims.call(void 0, );
|
|
1092
1098
|
|
|
1093
1099
|
|
|
1094
1100
|
// ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
|
|
@@ -1172,30 +1178,30 @@ var _semver = require('semver');
|
|
|
1172
1178
|
var _cache, _cwd, _SLASHES, _PackageManager_instances, match_fn;
|
|
1173
1179
|
var _PackageManager = class _PackageManager {
|
|
1174
1180
|
constructor(workspace) {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1181
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _PackageManager_instances);
|
|
1182
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _cwd);
|
|
1183
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
|
|
1178
1184
|
if (workspace) {
|
|
1179
|
-
|
|
1185
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _cwd, workspace);
|
|
1180
1186
|
}
|
|
1181
1187
|
return this;
|
|
1182
1188
|
}
|
|
1183
1189
|
set workspace(workspace) {
|
|
1184
|
-
|
|
1190
|
+
_chunkJ3MTBQSYcjs.__privateSet.call(void 0, this, _cwd, workspace);
|
|
1185
1191
|
}
|
|
1186
1192
|
get workspace() {
|
|
1187
|
-
return
|
|
1193
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _cwd);
|
|
1188
1194
|
}
|
|
1189
1195
|
normalizeDirectory(directory) {
|
|
1190
|
-
if (!
|
|
1196
|
+
if (!_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
|
|
1191
1197
|
return `${directory}/`;
|
|
1192
1198
|
}
|
|
1193
1199
|
return directory;
|
|
1194
1200
|
}
|
|
1195
1201
|
getLocation(path4) {
|
|
1196
1202
|
let location = path4;
|
|
1197
|
-
if (
|
|
1198
|
-
const require2 = _module2.default.createRequire(this.normalizeDirectory(
|
|
1203
|
+
if (_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _cwd)) {
|
|
1204
|
+
const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _cwd)));
|
|
1199
1205
|
location = require2.resolve(path4);
|
|
1200
1206
|
}
|
|
1201
1207
|
return location;
|
|
@@ -1215,7 +1221,7 @@ var _PackageManager = class _PackageManager {
|
|
|
1215
1221
|
}
|
|
1216
1222
|
async getPackageJSON() {
|
|
1217
1223
|
const pkgPath = await findUp(["package.json"], {
|
|
1218
|
-
cwd:
|
|
1224
|
+
cwd: _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _cwd)
|
|
1219
1225
|
});
|
|
1220
1226
|
if (!pkgPath) {
|
|
1221
1227
|
return void 0;
|
|
@@ -1225,7 +1231,7 @@ var _PackageManager = class _PackageManager {
|
|
|
1225
1231
|
}
|
|
1226
1232
|
getPackageJSONSync() {
|
|
1227
1233
|
const pkgPath = findUpSync(["package.json"], {
|
|
1228
|
-
cwd:
|
|
1234
|
+
cwd: _chunkJ3MTBQSYcjs.__privateGet.call(void 0, this, _cwd)
|
|
1229
1235
|
});
|
|
1230
1236
|
if (!pkgPath) {
|
|
1231
1237
|
return void 0;
|
|
@@ -1234,27 +1240,27 @@ var _PackageManager = class _PackageManager {
|
|
|
1234
1240
|
return JSON.parse(json);
|
|
1235
1241
|
}
|
|
1236
1242
|
static setVersion(dependency, version) {
|
|
1237
|
-
|
|
1243
|
+
_chunkJ3MTBQSYcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency] = version;
|
|
1238
1244
|
}
|
|
1239
1245
|
async getVersion(dependency) {
|
|
1240
|
-
if (typeof dependency === "string" &&
|
|
1241
|
-
return
|
|
1246
|
+
if (typeof dependency === "string" && _chunkJ3MTBQSYcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
|
|
1247
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
|
|
1242
1248
|
}
|
|
1243
1249
|
const packageJSON = await this.getPackageJSON();
|
|
1244
1250
|
if (!packageJSON) {
|
|
1245
1251
|
return void 0;
|
|
1246
1252
|
}
|
|
1247
|
-
return
|
|
1253
|
+
return _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
|
|
1248
1254
|
}
|
|
1249
1255
|
getVersionSync(dependency) {
|
|
1250
|
-
if (typeof dependency === "string" &&
|
|
1251
|
-
return
|
|
1256
|
+
if (typeof dependency === "string" && _chunkJ3MTBQSYcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
|
|
1257
|
+
return _chunkJ3MTBQSYcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
|
|
1252
1258
|
}
|
|
1253
1259
|
const packageJSON = this.getPackageJSONSync();
|
|
1254
1260
|
if (!packageJSON) {
|
|
1255
1261
|
return void 0;
|
|
1256
1262
|
}
|
|
1257
|
-
return
|
|
1263
|
+
return _chunkJ3MTBQSYcjs.__privateMethod.call(void 0, this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
|
|
1258
1264
|
}
|
|
1259
1265
|
async isValid(dependency, version) {
|
|
1260
1266
|
const packageVersion = await this.getVersion(dependency);
|
|
@@ -1297,7 +1303,7 @@ match_fn = function(packageJSON, dependency) {
|
|
|
1297
1303
|
const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
|
|
1298
1304
|
return matchedDependency ? dependencies[matchedDependency] : void 0;
|
|
1299
1305
|
};
|
|
1300
|
-
|
|
1306
|
+
_chunkJ3MTBQSYcjs.__privateAdd.call(void 0, _PackageManager, _cache, {});
|
|
1301
1307
|
var PackageManager = _PackageManager;
|
|
1302
1308
|
|
|
1303
1309
|
|
|
@@ -1312,5 +1318,5 @@ var PackageManager = _PackageManager;
|
|
|
1312
1318
|
|
|
1313
1319
|
|
|
1314
1320
|
|
|
1315
|
-
exports.FileManager =
|
|
1321
|
+
exports.FileManager = _chunkRHNURFUQcjs.FileManager; exports.Generator = Generator; exports.PackageManager = PackageManager; exports.PluginManager = PluginManager; exports.PromiseManager = PromiseManager; exports.Warning = Warning; exports.build = build; exports.createPlugin = createPlugin; exports.default = build; exports.defineConfig = defineConfig; exports.isInputPath = isInputPath; exports.safeBuild = safeBuild;
|
|
1316
1322
|
//# sourceMappingURL=index.cjs.map
|