@kubb/core 2.22.0 → 2.22.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/dist/{chunk-WDFIWIMG.cjs → chunk-3XWGQXS2.cjs} +28 -28
- package/dist/{chunk-RHNURFUQ.cjs → chunk-77MRTLYK.cjs} +145 -145
- package/dist/{chunk-BYB3RZQZ.cjs → chunk-BCPMFQSQ.cjs} +18 -18
- package/dist/{chunk-ECFGQQEF.cjs → chunk-LTN3OPSZ.cjs} +5 -5
- package/dist/{chunk-PBM3LC6E.cjs → chunk-OTW7QXER.cjs} +12 -12
- package/dist/{chunk-J3MTBQSY.cjs → chunk-PVTGBA5T.cjs} +3 -3
- package/dist/{chunk-J3MTBQSY.cjs.map → chunk-PVTGBA5T.cjs.map} +1 -1
- package/dist/index.cjs +133 -139
- 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 +7 -7
- /package/dist/{chunk-WDFIWIMG.cjs.map → chunk-3XWGQXS2.cjs.map} +0 -0
- /package/dist/{chunk-RHNURFUQ.cjs.map → chunk-77MRTLYK.cjs.map} +0 -0
- /package/dist/{chunk-BYB3RZQZ.cjs.map → chunk-BCPMFQSQ.cjs.map} +0 -0
- /package/dist/{chunk-ECFGQQEF.cjs.map → chunk-LTN3OPSZ.cjs.map} +0 -0
- /package/dist/{chunk-PBM3LC6E.cjs.map → chunk-OTW7QXER.cjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOTW7QXERcjs = require('./chunk-OTW7QXER.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk77MRTLYKcjs = require('./chunk-77MRTLYK.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBCPMFQSQcjs = require('./chunk-BCPMFQSQ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunk3XWGQXS2cjs = require('./chunk-3XWGQXS2.cjs');
|
|
19
|
+
require('./chunk-LTN3OPSZ.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -25,24 +25,24 @@ require('./chunk-ECFGQQEF.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkPVTGBA5Tcjs = require('./chunk-PVTGBA5T.cjs');
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
|
|
31
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
32
32
|
|
|
33
33
|
// src/build.ts
|
|
34
|
-
|
|
34
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
35
35
|
var _fs = require('@kubb/fs');
|
|
36
36
|
|
|
37
37
|
// src/PluginManager.ts
|
|
38
|
-
|
|
38
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
// src/PromiseManager.ts
|
|
42
|
-
|
|
42
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
43
43
|
|
|
44
44
|
// src/utils/executeStrategies.ts
|
|
45
|
-
|
|
45
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _options, {});
|
|
84
|
+
_chunkPVTGBA5Tcjs.__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, _chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _PluginManager_instances);
|
|
205
|
+
this.events = new (0, _chunkOTW7QXERcjs.EventEmitter)();
|
|
206
206
|
this.executed = [];
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _core);
|
|
208
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
|
|
209
|
+
_chunkPVTGBA5Tcjs.__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 _chunkBCPMFQSQcjs.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 _chunkBCPMFQSQcjs.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, _chunk77MRTLYKcjs.PQueue)({ concurrency: 1 });
|
|
262
|
+
this.fileManager = new (0, _chunk77MRTLYKcjs.FileManager)({
|
|
263
263
|
task: options.task,
|
|
264
264
|
queue: this.queue
|
|
265
265
|
});
|
|
266
|
-
|
|
266
|
+
_chunkPVTGBA5Tcjs.__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: _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).bind(this)
|
|
278
278
|
});
|
|
279
|
-
|
|
280
|
-
this.plugins = [
|
|
281
|
-
return
|
|
279
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _core, _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, parse_fn).call(this, core, this, core.api.call(null)));
|
|
280
|
+
this.plugins = [_chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
|
|
281
|
+
return _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, parse_fn).call(this, plugin, this, _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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 = _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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: _chunkPVTGBA5Tcjs.__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 = _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this).map((plugin) => {
|
|
410
|
+
return () => _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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 = _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this)[index];
|
|
421
|
+
_chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this)) {
|
|
437
437
|
promise = promise.then((arg0) => {
|
|
438
|
-
const value =
|
|
438
|
+
const value = _chunkPVTGBA5Tcjs.__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(_chunkPVTGBA5Tcjs.__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 = _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PluginManager_instances, getSortedPlugins_fn).call(this).map((plugin) => {
|
|
454
|
+
return () => _chunkPVTGBA5Tcjs.__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 _chunkPVTGBA5Tcjs.__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 === _chunkOTW7QXERcjs.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({ ..._chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.__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({ ..._chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.__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 = _chunkPVTGBA5Tcjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
|
|
634
|
+
_chunk3XWGQXS2cjs.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
|
+
_chunkPVTGBA5Tcjs.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 = _chunkOTW7QXERcjs.createLogger.call(void 0, { logLevel: _chunkOTW7QXERcjs.LogLevel.silent }) } = options;
|
|
670
670
|
let count = 0;
|
|
671
671
|
try {
|
|
672
|
-
if (isInputPath(config) && !new (0,
|
|
672
|
+
if (isInputPath(config) && !new (0, _chunk3XWGQXS2cjs.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 ${_chunkOTW7QXERcjs.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 _chunk77MRTLYKcjs.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 ${_chunkOTW7QXERcjs.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 !== _chunkOTW7QXERcjs.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 !== _chunkOTW7QXERcjs.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 = _chunkOTW7QXERcjs.p.dim(text);
|
|
752
752
|
}
|
|
753
753
|
++count;
|
|
754
754
|
});
|
|
755
755
|
pluginManager.queue.on("completed", () => {
|
|
756
|
-
if (logger.logLevel !==
|
|
756
|
+
if (logger.logLevel !== _chunkOTW7QXERcjs.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 = _chunkOTW7QXERcjs.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
|
+
`${_chunkOTW7QXERcjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
|
|
768
|
+
parameters && `${_chunkOTW7QXERcjs.p.bgWhite("Parameters")} ${_chunkOTW7QXERcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
|
|
769
769
|
JSON.stringify(parameters, void 0, 2),
|
|
770
|
-
output && `${
|
|
770
|
+
output && `${_chunkOTW7QXERcjs.p.bgWhite("Output")} ${_chunkOTW7QXERcjs.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 === _chunkOTW7QXERcjs.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 _chunk77MRTLYKcjs.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 === _chunkOTW7QXERcjs.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 _chunk77MRTLYKcjs.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 _chunk77MRTLYKcjs.FileManager.getSource(file)
|
|
828
828
|
}))
|
|
829
829
|
);
|
|
830
830
|
return {
|
|
@@ -834,109 +834,103 @@ async function safeBuild(options) {
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
// src/Generator.ts
|
|
837
|
-
|
|
837
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
838
838
|
var _options2, _context;
|
|
839
839
|
var Generator = class {
|
|
840
840
|
constructor(options, context) {
|
|
841
|
-
|
|
842
|
-
|
|
841
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _options2, {});
|
|
842
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _context, {});
|
|
843
843
|
if (context) {
|
|
844
|
-
|
|
844
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _context, context);
|
|
845
845
|
}
|
|
846
846
|
if (options) {
|
|
847
|
-
|
|
847
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _options2, options);
|
|
848
848
|
}
|
|
849
849
|
return this;
|
|
850
850
|
}
|
|
851
851
|
get options() {
|
|
852
|
-
return
|
|
852
|
+
return _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _options2);
|
|
853
853
|
}
|
|
854
854
|
get context() {
|
|
855
|
-
return
|
|
855
|
+
return _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _context);
|
|
856
856
|
}
|
|
857
857
|
set options(options) {
|
|
858
|
-
|
|
858
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _options2, { ..._chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.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
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
886
886
|
|
|
887
|
-
// ../../node_modules/.pnpm/yocto-queue@1.
|
|
888
|
-
|
|
887
|
+
// ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
|
|
888
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
889
889
|
var Node = class {
|
|
890
890
|
constructor(value) {
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
_chunkPVTGBA5Tcjs.__publicField.call(void 0, this, "value");
|
|
892
|
+
_chunkPVTGBA5Tcjs.__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
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _head);
|
|
900
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _tail);
|
|
901
|
+
_chunkPVTGBA5Tcjs.__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 (_chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _head)) {
|
|
907
|
+
_chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _tail).next = node;
|
|
908
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _tail, node);
|
|
909
909
|
} else {
|
|
910
|
-
|
|
911
|
-
|
|
910
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _head, node);
|
|
911
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _tail, node);
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
_chunkPVTGBA5Tcjs.__privateWrapper.call(void 0, this, _size)._++;
|
|
914
914
|
}
|
|
915
915
|
dequeue() {
|
|
916
|
-
const current =
|
|
916
|
+
const current = _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _head);
|
|
917
917
|
if (!current) {
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _head, _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _head).next);
|
|
921
|
+
_chunkPVTGBA5Tcjs.__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
|
-
}
|
|
930
924
|
clear() {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
925
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _head, void 0);
|
|
926
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _tail, void 0);
|
|
927
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _size, 0);
|
|
934
928
|
}
|
|
935
929
|
get size() {
|
|
936
|
-
return
|
|
930
|
+
return _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _size);
|
|
937
931
|
}
|
|
938
932
|
*[Symbol.iterator]() {
|
|
939
|
-
let current =
|
|
933
|
+
let current = _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _head);
|
|
940
934
|
while (current) {
|
|
941
935
|
yield current.value;
|
|
942
936
|
current = current.next;
|
|
@@ -1087,14 +1081,14 @@ function locatePathSync(paths, {
|
|
|
1087
1081
|
}
|
|
1088
1082
|
|
|
1089
1083
|
// ../../node_modules/.pnpm/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
|
|
1090
|
-
|
|
1084
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
1091
1085
|
|
|
1092
1086
|
function toPath2(urlOrPath) {
|
|
1093
1087
|
return urlOrPath instanceof URL ? _url.fileURLToPath.call(void 0, urlOrPath) : urlOrPath;
|
|
1094
1088
|
}
|
|
1095
1089
|
|
|
1096
1090
|
// ../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js
|
|
1097
|
-
|
|
1091
|
+
_chunkPVTGBA5Tcjs.init_cjs_shims.call(void 0, );
|
|
1098
1092
|
|
|
1099
1093
|
|
|
1100
1094
|
// ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
|
|
@@ -1178,30 +1172,30 @@ var _semver = require('semver');
|
|
|
1178
1172
|
var _cache, _cwd, _SLASHES, _PackageManager_instances, match_fn;
|
|
1179
1173
|
var _PackageManager = class _PackageManager {
|
|
1180
1174
|
constructor(workspace) {
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1175
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _PackageManager_instances);
|
|
1176
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _cwd);
|
|
1177
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
|
|
1184
1178
|
if (workspace) {
|
|
1185
|
-
|
|
1179
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _cwd, workspace);
|
|
1186
1180
|
}
|
|
1187
1181
|
return this;
|
|
1188
1182
|
}
|
|
1189
1183
|
set workspace(workspace) {
|
|
1190
|
-
|
|
1184
|
+
_chunkPVTGBA5Tcjs.__privateSet.call(void 0, this, _cwd, workspace);
|
|
1191
1185
|
}
|
|
1192
1186
|
get workspace() {
|
|
1193
|
-
return
|
|
1187
|
+
return _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _cwd);
|
|
1194
1188
|
}
|
|
1195
1189
|
normalizeDirectory(directory) {
|
|
1196
|
-
if (!
|
|
1190
|
+
if (!_chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
|
|
1197
1191
|
return `${directory}/`;
|
|
1198
1192
|
}
|
|
1199
1193
|
return directory;
|
|
1200
1194
|
}
|
|
1201
1195
|
getLocation(path4) {
|
|
1202
1196
|
let location = path4;
|
|
1203
|
-
if (
|
|
1204
|
-
const require2 = _module2.default.createRequire(this.normalizeDirectory(
|
|
1197
|
+
if (_chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _cwd)) {
|
|
1198
|
+
const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _cwd)));
|
|
1205
1199
|
location = require2.resolve(path4);
|
|
1206
1200
|
}
|
|
1207
1201
|
return location;
|
|
@@ -1221,7 +1215,7 @@ var _PackageManager = class _PackageManager {
|
|
|
1221
1215
|
}
|
|
1222
1216
|
async getPackageJSON() {
|
|
1223
1217
|
const pkgPath = await findUp(["package.json"], {
|
|
1224
|
-
cwd:
|
|
1218
|
+
cwd: _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _cwd)
|
|
1225
1219
|
});
|
|
1226
1220
|
if (!pkgPath) {
|
|
1227
1221
|
return void 0;
|
|
@@ -1231,7 +1225,7 @@ var _PackageManager = class _PackageManager {
|
|
|
1231
1225
|
}
|
|
1232
1226
|
getPackageJSONSync() {
|
|
1233
1227
|
const pkgPath = findUpSync(["package.json"], {
|
|
1234
|
-
cwd:
|
|
1228
|
+
cwd: _chunkPVTGBA5Tcjs.__privateGet.call(void 0, this, _cwd)
|
|
1235
1229
|
});
|
|
1236
1230
|
if (!pkgPath) {
|
|
1237
1231
|
return void 0;
|
|
@@ -1240,27 +1234,27 @@ var _PackageManager = class _PackageManager {
|
|
|
1240
1234
|
return JSON.parse(json);
|
|
1241
1235
|
}
|
|
1242
1236
|
static setVersion(dependency, version) {
|
|
1243
|
-
|
|
1237
|
+
_chunkPVTGBA5Tcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency] = version;
|
|
1244
1238
|
}
|
|
1245
1239
|
async getVersion(dependency) {
|
|
1246
|
-
if (typeof dependency === "string" &&
|
|
1247
|
-
return
|
|
1240
|
+
if (typeof dependency === "string" && _chunkPVTGBA5Tcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
|
|
1241
|
+
return _chunkPVTGBA5Tcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
|
|
1248
1242
|
}
|
|
1249
1243
|
const packageJSON = await this.getPackageJSON();
|
|
1250
1244
|
if (!packageJSON) {
|
|
1251
1245
|
return void 0;
|
|
1252
1246
|
}
|
|
1253
|
-
return
|
|
1247
|
+
return _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
|
|
1254
1248
|
}
|
|
1255
1249
|
getVersionSync(dependency) {
|
|
1256
|
-
if (typeof dependency === "string" &&
|
|
1257
|
-
return
|
|
1250
|
+
if (typeof dependency === "string" && _chunkPVTGBA5Tcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency]) {
|
|
1251
|
+
return _chunkPVTGBA5Tcjs.__privateGet.call(void 0, _PackageManager, _cache)[dependency];
|
|
1258
1252
|
}
|
|
1259
1253
|
const packageJSON = this.getPackageJSONSync();
|
|
1260
1254
|
if (!packageJSON) {
|
|
1261
1255
|
return void 0;
|
|
1262
1256
|
}
|
|
1263
|
-
return
|
|
1257
|
+
return _chunkPVTGBA5Tcjs.__privateMethod.call(void 0, this, _PackageManager_instances, match_fn).call(this, packageJSON, dependency);
|
|
1264
1258
|
}
|
|
1265
1259
|
async isValid(dependency, version) {
|
|
1266
1260
|
const packageVersion = await this.getVersion(dependency);
|
|
@@ -1303,7 +1297,7 @@ match_fn = function(packageJSON, dependency) {
|
|
|
1303
1297
|
const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
|
|
1304
1298
|
return matchedDependency ? dependencies[matchedDependency] : void 0;
|
|
1305
1299
|
};
|
|
1306
|
-
|
|
1300
|
+
_chunkPVTGBA5Tcjs.__privateAdd.call(void 0, _PackageManager, _cache, {});
|
|
1307
1301
|
var PackageManager = _PackageManager;
|
|
1308
1302
|
|
|
1309
1303
|
|
|
@@ -1318,5 +1312,5 @@ var PackageManager = _PackageManager;
|
|
|
1318
1312
|
|
|
1319
1313
|
|
|
1320
1314
|
|
|
1321
|
-
exports.FileManager =
|
|
1315
|
+
exports.FileManager = _chunk77MRTLYKcjs.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;
|
|
1322
1316
|
//# sourceMappingURL=index.cjs.map
|