powerlines 0.38.52 → 0.38.54
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/{api-pY4xC1kY.d.ts → api-D0szZdwQ.d.ts} +29 -5
- package/dist/{api-B9F8otcd.d.cts → api-DIfShYUW.d.cts} +29 -5
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +3 -3
- package/dist/{chunk-LO2E2YGE.js → chunk-2UIGAU7H.js} +152 -124
- package/dist/chunk-BXOLROGM.cjs +12 -0
- package/dist/{chunk-J6BCOCLJ.cjs → chunk-BZDPWW5V.cjs} +5 -5
- package/dist/{chunk-O3T4N5K7.js → chunk-C5KPJ3PS.js} +3 -3
- package/dist/{chunk-IYAW6TSC.cjs → chunk-EUA6Q552.cjs} +152 -124
- package/dist/{chunk-A5YHAA2Y.js → chunk-JFVLXOH5.js} +3 -3
- package/dist/chunk-JPO6Y4NI.cjs +12 -0
- package/dist/{chunk-2KSBRUK7.js → chunk-LF24LTX2.js} +3 -3
- package/dist/{chunk-HI4BRGAN.js → chunk-Q2R5QTOX.js} +3 -3
- package/dist/{chunk-YX6ADSRU.js → chunk-UMBPXUWE.js} +3 -3
- package/dist/{chunk-GSEXDQCS.cjs → chunk-WGJ7IAE4.cjs} +4 -4
- package/dist/{chunk-LENS4BB4.cjs → chunk-Y2RZW3XB.cjs} +4 -4
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/{_internal-C478E5pJ.d.cts → _internal-C4O8ecKP.d.cts} +1 -1
- package/dist/lib/{_internal-Clqz2Zt2.d.ts → _internal-tx775lUH.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/helpers.d.cts +1 -1
- package/dist/lib/build/helpers.d.ts +1 -1
- package/dist/lib/build/index.d.cts +2 -2
- package/dist/lib/build/index.d.ts +2 -2
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsdown.d.cts +1 -1
- package/dist/lib/build/tsdown.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +2 -2
- package/dist/lib/build/unbuild.d.ts +2 -2
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-N446TW6O.cjs → chunk-4BQNZQ6C.cjs} +6 -6
- package/dist/lib/{chunk-N446TW6O.cjs.map → chunk-4BQNZQ6C.cjs.map} +1 -1
- package/dist/lib/{chunk-SLZBQXMM.js → chunk-ABM54IEQ.js} +41 -17
- package/dist/lib/chunk-ABM54IEQ.js.map +1 -0
- package/dist/lib/{chunk-ZCILAGEF.cjs → chunk-AMGITL5P.cjs} +3 -2
- package/dist/lib/chunk-AMGITL5P.cjs.map +1 -0
- package/dist/lib/{chunk-UVC3RFV3.js → chunk-DCNYWKDV.js} +3 -3
- package/dist/lib/chunk-DCNYWKDV.js.map +1 -0
- package/dist/lib/{chunk-YQKE32YK.cjs → chunk-DSZ6ZYVV.cjs} +53 -29
- package/dist/lib/chunk-DSZ6ZYVV.cjs.map +1 -0
- package/dist/lib/{chunk-XSDFLM7Y.js → chunk-FCE7LGKK.js} +3 -3
- package/dist/lib/{chunk-XSDFLM7Y.js.map → chunk-FCE7LGKK.js.map} +1 -1
- package/dist/lib/{chunk-3KYCTIPP.cjs → chunk-RBGSWM26.cjs} +19 -19
- package/dist/lib/{chunk-3KYCTIPP.cjs.map → chunk-RBGSWM26.cjs.map} +1 -1
- package/dist/lib/{chunk-EQ6JHSAH.js → chunk-W6CORB6V.js} +4 -4
- package/dist/lib/{chunk-EQ6JHSAH.js.map → chunk-W6CORB6V.js.map} +1 -1
- package/dist/lib/{config-CvHQTIoy.d.cts → config-CFQMbCmn.d.cts} +29 -5
- package/dist/lib/{config-DjPzvG5_.d.ts → config-C_5yW6v1.d.ts} +29 -5
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/contexts/api-context.cjs +4 -4
- package/dist/lib/contexts/api-context.d.cts +2 -2
- package/dist/lib/contexts/api-context.d.ts +2 -2
- package/dist/lib/contexts/api-context.js +3 -3
- package/dist/lib/contexts/context.cjs +2 -2
- package/dist/lib/contexts/context.d.cts +2 -2
- package/dist/lib/contexts/context.d.ts +2 -2
- package/dist/lib/contexts/context.js +1 -1
- package/dist/lib/contexts/environment-context.cjs +3 -3
- package/dist/lib/contexts/environment-context.d.cts +2 -2
- package/dist/lib/contexts/environment-context.d.ts +2 -2
- package/dist/lib/contexts/environment-context.js +2 -2
- package/dist/lib/contexts/index.cjs +6 -6
- package/dist/lib/contexts/index.d.cts +2 -2
- package/dist/lib/contexts/index.d.ts +2 -2
- package/dist/lib/contexts/index.js +3 -3
- package/dist/lib/contexts/plugin-context.d.cts +2 -2
- package/dist/lib/contexts/plugin-context.d.ts +2 -2
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/fs/index.d.cts +1 -1
- package/dist/lib/fs/index.d.ts +1 -1
- package/dist/lib/fs/vfs.d.cts +1 -1
- package/dist/lib/fs/vfs.d.ts +1 -1
- package/dist/lib/index.cjs +8 -8
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +4 -4
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +5 -5
- package/dist/lib/unplugin/factory.d.cts +1 -1
- package/dist/lib/unplugin/factory.d.ts +1 -1
- package/dist/lib/unplugin/factory.js +4 -4
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +5 -5
- package/dist/lib/unplugin/index.d.cts +1 -1
- package/dist/lib/unplugin/index.d.ts +1 -1
- package/dist/lib/unplugin/index.js +4 -4
- package/dist/lib/unplugin/module-resolution.d.cts +1 -1
- package/dist/lib/unplugin/module-resolution.d.ts +1 -1
- package/dist/lib/unplugin/plugin.d.cts +1 -1
- package/dist/lib/unplugin/plugin.d.ts +1 -1
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/format.d.cts +1 -1
- package/dist/lib/utilities/format.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +4 -4
- package/dist/plugin-utils/{context-D_yUrf_Y.d.cts → context-CpILh0n7.d.cts} +29 -5
- package/dist/plugin-utils/{context-D_yUrf_Y.d.ts → context-CpILh0n7.d.ts} +29 -5
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +3 -3
- package/dist/plugin-utils/helpers.d.ts +3 -3
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/modules.d.cts +1 -1
- package/dist/plugin-utils/modules.d.ts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/_internal.d.cts +1 -1
- package/dist/types/_internal.d.ts +1 -1
- package/dist/types/api.d.cts +1 -1
- package/dist/types/api.d.ts +1 -1
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +9 -9
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.ts +1 -1
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +13 -13
- package/dist/chunk-AYZMJZI7.cjs +0 -12
- package/dist/chunk-QRKEIFAT.cjs +0 -12
- package/dist/lib/chunk-SLZBQXMM.js.map +0 -1
- package/dist/lib/chunk-UVC3RFV3.js.map +0 -1
- package/dist/lib/chunk-YQKE32YK.cjs.map +0 -1
- package/dist/lib/chunk-ZCILAGEF.cjs.map +0 -1
|
@@ -1563,7 +1563,12 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
1563
1563
|
* @defaultValue "merge"
|
|
1564
1564
|
*/
|
|
1565
1565
|
result: "first";
|
|
1566
|
-
} | {
|
|
1566
|
+
} | ({
|
|
1567
|
+
/**
|
|
1568
|
+
* An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
|
|
1569
|
+
*/
|
|
1570
|
+
asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
|
|
1571
|
+
} & ({
|
|
1567
1572
|
/**
|
|
1568
1573
|
* How to handle multiple return values from hooks.
|
|
1569
1574
|
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
@@ -1574,12 +1579,31 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
1574
1579
|
*
|
|
1575
1580
|
* @defaultValue "merge"
|
|
1576
1581
|
*/
|
|
1577
|
-
result?: "merge"
|
|
1582
|
+
result?: "merge";
|
|
1578
1583
|
/**
|
|
1579
|
-
*
|
|
1584
|
+
* A custom function to merge multiple return values from hooks.
|
|
1585
|
+
*
|
|
1586
|
+
* @remarks
|
|
1587
|
+
* If not provided, the {@link mergeResults} function will be used by default, which merges string results by concatenation and object results by deep merging.
|
|
1588
|
+
*
|
|
1589
|
+
* @param currentResult - The current hook result to merge with the previous results.
|
|
1590
|
+
* @param previousResults - The previous hook results to merge with the current result.
|
|
1591
|
+
* @returns The merged result.
|
|
1580
1592
|
*/
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1593
|
+
merge?: <T>(currentResult: T, previousResults: T[]) => T[];
|
|
1594
|
+
} | {
|
|
1595
|
+
/**
|
|
1596
|
+
* How to handle multiple return values from hooks.
|
|
1597
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
1598
|
+
* - "first": Return the first non-undefined value.
|
|
1599
|
+
*
|
|
1600
|
+
* @remarks
|
|
1601
|
+
* Merging only works if the return values are objects.
|
|
1602
|
+
*
|
|
1603
|
+
* @defaultValue "merge"
|
|
1604
|
+
*/
|
|
1605
|
+
result?: "last";
|
|
1606
|
+
})))) | {
|
|
1583
1607
|
/**
|
|
1584
1608
|
* Whether to call the hooks sequentially or in parallel.
|
|
1585
1609
|
*/
|
|
@@ -1563,7 +1563,12 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
1563
1563
|
* @defaultValue "merge"
|
|
1564
1564
|
*/
|
|
1565
1565
|
result: "first";
|
|
1566
|
-
} | {
|
|
1566
|
+
} | ({
|
|
1567
|
+
/**
|
|
1568
|
+
* An indicator specifying if the results of the previous hook should be provided as the **first** parameter of the next hook function, or a function to process the result of the previous hook function and pass the returned value as the next hook's **first** parameter
|
|
1569
|
+
*/
|
|
1570
|
+
asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
|
|
1571
|
+
} & ({
|
|
1567
1572
|
/**
|
|
1568
1573
|
* How to handle multiple return values from hooks.
|
|
1569
1574
|
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
@@ -1574,12 +1579,31 @@ type CallHookOptions = SelectHooksOptions & (({
|
|
|
1574
1579
|
*
|
|
1575
1580
|
* @defaultValue "merge"
|
|
1576
1581
|
*/
|
|
1577
|
-
result?: "merge"
|
|
1582
|
+
result?: "merge";
|
|
1578
1583
|
/**
|
|
1579
|
-
*
|
|
1584
|
+
* A custom function to merge multiple return values from hooks.
|
|
1585
|
+
*
|
|
1586
|
+
* @remarks
|
|
1587
|
+
* If not provided, the {@link mergeResults} function will be used by default, which merges string results by concatenation and object results by deep merging.
|
|
1588
|
+
*
|
|
1589
|
+
* @param currentResult - The current hook result to merge with the previous results.
|
|
1590
|
+
* @param previousResults - The previous hook results to merge with the current result.
|
|
1591
|
+
* @returns The merged result.
|
|
1580
1592
|
*/
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1593
|
+
merge?: <T>(currentResult: T, previousResults: T[]) => T[];
|
|
1594
|
+
} | {
|
|
1595
|
+
/**
|
|
1596
|
+
* How to handle multiple return values from hooks.
|
|
1597
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
1598
|
+
* - "first": Return the first non-undefined value.
|
|
1599
|
+
*
|
|
1600
|
+
* @remarks
|
|
1601
|
+
* Merging only works if the return values are objects.
|
|
1602
|
+
*
|
|
1603
|
+
* @defaultValue "merge"
|
|
1604
|
+
*/
|
|
1605
|
+
result?: "last";
|
|
1606
|
+
})))) | {
|
|
1583
1607
|
/**
|
|
1584
1608
|
* Whether to call the hooks sequentially or in parallel.
|
|
1585
1609
|
*/
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEUA6Q552_cjs = require('./chunk-EUA6Q552.cjs');
|
|
4
4
|
require('./chunk-B6DVCLP5.cjs');
|
|
5
5
|
require('./chunk-V5WOGN7O.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEUA6Q552_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { az as ResolvedConfig, A as API, a as APIContext, _ as InitialUserConfig, av as PrepareInlineConfig, a6 as NewInlineConfig, C as CleanInlineConfig, l as BuildInlineConfig, a1 as LintInlineConfig, v as DocsInlineConfig, u as DeployInlineConfig, d7 as CallHookOptions, F as EnvironmentContext, S as InferHookParameters, aj as PluginContext, R as InferHookFunction } from './api-
|
|
1
|
+
import { az as ResolvedConfig, A as API, a as APIContext, _ as InitialUserConfig, av as PrepareInlineConfig, a6 as NewInlineConfig, C as CleanInlineConfig, l as BuildInlineConfig, a1 as LintInlineConfig, v as DocsInlineConfig, u as DeployInlineConfig, d7 as CallHookOptions, F as EnvironmentContext, S as InferHookParameters, aj as PluginContext, R as InferHookFunction } from './api-DIfShYUW.cjs';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { az as ResolvedConfig, A as API, a as APIContext, _ as InitialUserConfig, av as PrepareInlineConfig, a6 as NewInlineConfig, C as CleanInlineConfig, l as BuildInlineConfig, a1 as LintInlineConfig, v as DocsInlineConfig, u as DeployInlineConfig, d7 as CallHookOptions, F as EnvironmentContext, S as InferHookParameters, aj as PluginContext, R as InferHookFunction } from './api-
|
|
1
|
+
import { az as ResolvedConfig, A as API, a as APIContext, _ as InitialUserConfig, av as PrepareInlineConfig, a6 as NewInlineConfig, C as CleanInlineConfig, l as BuildInlineConfig, a1 as LintInlineConfig, v as DocsInlineConfig, u as DeployInlineConfig, d7 as CallHookOptions, F as EnvironmentContext, S as InferHookParameters, aj as PluginContext, R as InferHookFunction } from './api-D0szZdwQ.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkWGJ7IAE4_cjs = require('./chunk-WGJ7IAE4.cjs');
|
|
6
6
|
require('./chunk-HDHABS4U.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-BZDPWW5V.cjs');
|
|
8
|
+
require('./chunk-EUA6Q552.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkWGJ7IAE4_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { b4 as ViteResolvedConfig } from './api-
|
|
2
|
+
import { b4 as ViteResolvedConfig } from './api-DIfShYUW.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
package/dist/astro.d.ts
CHANGED
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-Q2R5QTOX.js';
|
|
2
2
|
import './chunk-HLCQIZKK.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-C5KPJ3PS.js';
|
|
4
|
+
import './chunk-2UIGAU7H.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -28,6 +28,7 @@ import { isParentPath } from '@stryke/path/is-parent-path';
|
|
|
28
28
|
import { prettyBytes } from '@stryke/string-format/pretty-bytes';
|
|
29
29
|
import { InMemoryFileSystemHost, Project, DiagnosticCategory } from 'ts-morph';
|
|
30
30
|
import defu8, { createDefu, defu } from 'defu';
|
|
31
|
+
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
31
32
|
import { getPackageName, hasPackageVersion, getPackageVersion } from '@stryke/string-format/package';
|
|
32
33
|
import { getObjectDiff } from '@donedeal0/superdiff';
|
|
33
34
|
import { readJsonFile, readJsonFileSync } from '@stryke/fs/json';
|
|
@@ -53,7 +54,6 @@ import { create } from 'flat-cache';
|
|
|
53
54
|
import { parse } from 'oxc-parser';
|
|
54
55
|
import { Agent, setGlobalDispatcher, interceptors, Response } from 'undici';
|
|
55
56
|
import { createJiti } from 'jiti';
|
|
56
|
-
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
57
57
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
58
58
|
import { isAbsolutePath } from '@stryke/path/is-type';
|
|
59
59
|
import * as $ from '@stryke/capnp';
|
|
@@ -79,7 +79,7 @@ import '@stryke/fs/remove-file';
|
|
|
79
79
|
|
|
80
80
|
// package.json
|
|
81
81
|
var name = "powerlines";
|
|
82
|
-
var version = "0.38.
|
|
82
|
+
var version = "0.38.53";
|
|
83
83
|
var package_default = {
|
|
84
84
|
version};
|
|
85
85
|
var VirtualFileSystemHost = class extends InMemoryFileSystemHost {
|
|
@@ -258,7 +258,119 @@ declare module "${moduleId}" {
|
|
|
258
258
|
return builtinModules;
|
|
259
259
|
}
|
|
260
260
|
__name(emitBuiltinTypes, "emitBuiltinTypes");
|
|
261
|
-
|
|
261
|
+
function isPlugin(value) {
|
|
262
|
+
return isSetObject(value) && "name" in value && isSetString(value.name) && (isUndefined(value.api) || "api" in value && isSetObject(value.api)) && (isUndefined(value.applyToEnvironment) || "applyToEnvironment" in value && isFunction(value.applyToEnvironment)) && (isUndefined(value.dedupe) || "dedupe" in value && isFunction(value.dedupe)) && PLUGIN_HOOKS_FIELDS.every((hook) => isUndefined(value[hook]) || hook in value && (isPluginHookFunction(value[hook]) || hook === "config" && isSetObject(value[hook]))) && BUILDER_VARIANTS.every((variant) => isUndefined(value[variant]) || variant in value && isSetObject(value[variant]));
|
|
263
|
+
}
|
|
264
|
+
__name(isPlugin, "isPlugin");
|
|
265
|
+
function isPluginConfigObject(value) {
|
|
266
|
+
return isSetObject(value) && "plugin" in value && ((isSetString(value.plugin) || isFunction(value.plugin)) && "options" in value && isSetObject(value.options) || isPlugin(value.plugin));
|
|
267
|
+
}
|
|
268
|
+
__name(isPluginConfigObject, "isPluginConfigObject");
|
|
269
|
+
function isPluginConfigTuple(value) {
|
|
270
|
+
return Array.isArray(value) && (value.length === 1 || value.length === 2) && ((isSetString(value[0]) || isFunction(value[0])) && value.length > 1 && isSetObject(value[1]) || isPlugin(value[0]));
|
|
271
|
+
}
|
|
272
|
+
__name(isPluginConfigTuple, "isPluginConfigTuple");
|
|
273
|
+
function isPluginConfig(value) {
|
|
274
|
+
return isSetString(value) || isFunction(value) || isPlugin(value) || isPluginConfigObject(value) || isPluginConfigTuple(value) || Array.isArray(value) && value.every((item) => isPluginConfig(item));
|
|
275
|
+
}
|
|
276
|
+
__name(isPluginConfig, "isPluginConfig");
|
|
277
|
+
function isPluginHookObject(value) {
|
|
278
|
+
return isSetObject(value) && "handler" in value && isFunction(value.handler);
|
|
279
|
+
}
|
|
280
|
+
__name(isPluginHookObject, "isPluginHookObject");
|
|
281
|
+
function isPluginHookFunction(value) {
|
|
282
|
+
return isFunction(value) || isPluginHookObject(value);
|
|
283
|
+
}
|
|
284
|
+
__name(isPluginHookFunction, "isPluginHookFunction");
|
|
285
|
+
function isPluginHook(value) {
|
|
286
|
+
return isPluginHookFunction(value) || isPluginHookObject(value);
|
|
287
|
+
}
|
|
288
|
+
__name(isPluginHook, "isPluginHook");
|
|
289
|
+
function getHookHandler(pluginHook) {
|
|
290
|
+
return isFunction(pluginHook) ? pluginHook : pluginHook.handler;
|
|
291
|
+
}
|
|
292
|
+
__name(getHookHandler, "getHookHandler");
|
|
293
|
+
function isUnpluginHookKey(keys) {
|
|
294
|
+
return UNPLUGIN_BUILDER_VARIANTS.some((variant) => keys.startsWith(`${variant}:`));
|
|
295
|
+
}
|
|
296
|
+
__name(isUnpluginHookKey, "isUnpluginHookKey");
|
|
297
|
+
function isPluginHookField(keys) {
|
|
298
|
+
return !isUnpluginHookKey(keys) && PLUGIN_HOOKS_FIELDS.includes(keys);
|
|
299
|
+
}
|
|
300
|
+
__name(isPluginHookField, "isPluginHookField");
|
|
301
|
+
function isUnpluginHookField(field) {
|
|
302
|
+
return !isPluginHookField(field) && UNPLUGIN_BUILDER_VARIANTS.includes(field);
|
|
303
|
+
}
|
|
304
|
+
__name(isUnpluginHookField, "isUnpluginHookField");
|
|
305
|
+
function checkDedupe(plugin, plugins) {
|
|
306
|
+
return plugin.dedupe === false || plugins.some((p) => p.dedupe !== false && (isFunction(p.dedupe) && p.dedupe(plugin) || p.name === plugin.name));
|
|
307
|
+
}
|
|
308
|
+
__name(checkDedupe, "checkDedupe");
|
|
309
|
+
function addPluginHook(context, plugin, pluginHook, hooksList) {
|
|
310
|
+
if (!checkDedupe(plugin, hooksList.map((hook) => hook.plugin).filter(Boolean))) {
|
|
311
|
+
const handler = /* @__PURE__ */ __name((...args) => getHookHandler(pluginHook).apply(context, args), "handler");
|
|
312
|
+
if (!handler) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
hooksList.push({
|
|
316
|
+
plugin,
|
|
317
|
+
handler
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
__name(addPluginHook, "addPluginHook");
|
|
322
|
+
function findInvalidPluginConfig(config) {
|
|
323
|
+
if (isPluginConfig(config)) {
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
if (Array.isArray(config)) {
|
|
327
|
+
const invalidItems = [];
|
|
328
|
+
config.forEach((item) => {
|
|
329
|
+
const invalid = findInvalidPluginConfig(item);
|
|
330
|
+
if (invalid) {
|
|
331
|
+
invalidItems.push(...invalid.map((i) => JSON.stringify(i, null, 2)));
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
return invalidItems.length > 0 ? invalidItems : null;
|
|
335
|
+
}
|
|
336
|
+
return [
|
|
337
|
+
JSON.stringify(config, null, 2)
|
|
338
|
+
];
|
|
339
|
+
}
|
|
340
|
+
__name(findInvalidPluginConfig, "findInvalidPluginConfig");
|
|
341
|
+
|
|
342
|
+
// src/plugin-utils/merge.ts
|
|
343
|
+
createDefu((obj, key, value) => {
|
|
344
|
+
if (isPluginHook(obj[key]) && isPluginHook(value)) {
|
|
345
|
+
obj[key] = {
|
|
346
|
+
...obj[key],
|
|
347
|
+
...value,
|
|
348
|
+
handler: /* @__PURE__ */ __name(async (...params) => {
|
|
349
|
+
const [resultA, resultB] = await Promise.all([
|
|
350
|
+
// eslint-disable-next-line ts/no-unsafe-call
|
|
351
|
+
getHookHandler(obj[key])(...params),
|
|
352
|
+
// eslint-disable-next-line ts/no-unsafe-call
|
|
353
|
+
getHookHandler(value)(...params)
|
|
354
|
+
]);
|
|
355
|
+
return resultB && resultA ? defu8(resultA, resultB) : resultA || resultB;
|
|
356
|
+
}, "handler")
|
|
357
|
+
};
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
return false;
|
|
361
|
+
});
|
|
362
|
+
var mergeConfig = createDefu((obj, key, value) => {
|
|
363
|
+
if (isString(obj[key]) && isString(value)) {
|
|
364
|
+
if (isSetString(value)) {
|
|
365
|
+
obj[key] = value;
|
|
366
|
+
}
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
369
|
+
return false;
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
// src/internal/helpers/hooks.ts
|
|
373
|
+
var mergeResultObjects = createDefu((obj, key, value) => {
|
|
262
374
|
if (isString(obj[key]) && isString(value)) {
|
|
263
375
|
obj[key] = `${obj[key] || ""}
|
|
264
376
|
${value || ""}`.trim();
|
|
@@ -266,6 +378,34 @@ ${value || ""}`.trim();
|
|
|
266
378
|
}
|
|
267
379
|
return false;
|
|
268
380
|
});
|
|
381
|
+
function mergeResults(currentResult, previousResults) {
|
|
382
|
+
if (isString(currentResult)) {
|
|
383
|
+
previousResults = [
|
|
384
|
+
`${isString(previousResults[0]) ? previousResults[0] || "" : ""}
|
|
385
|
+
${currentResult || ""}`.trim()
|
|
386
|
+
];
|
|
387
|
+
} else if (isObject(currentResult)) {
|
|
388
|
+
previousResults = [
|
|
389
|
+
mergeResultObjects(currentResult, previousResults[0] ?? {})
|
|
390
|
+
];
|
|
391
|
+
}
|
|
392
|
+
return previousResults;
|
|
393
|
+
}
|
|
394
|
+
__name(mergeResults, "mergeResults");
|
|
395
|
+
function mergeConfigs(currentResult, previousResults) {
|
|
396
|
+
if (isString(currentResult)) {
|
|
397
|
+
previousResults = [
|
|
398
|
+
`${isString(previousResults[0]) ? previousResults[0] || "" : ""}
|
|
399
|
+
${currentResult || ""}`.trim()
|
|
400
|
+
];
|
|
401
|
+
} else if (isObject(currentResult)) {
|
|
402
|
+
previousResults = [
|
|
403
|
+
mergeConfig(currentResult, previousResults[0] ?? {})
|
|
404
|
+
];
|
|
405
|
+
}
|
|
406
|
+
return previousResults;
|
|
407
|
+
}
|
|
408
|
+
__name(mergeConfigs, "mergeConfigs");
|
|
269
409
|
async function callHook(context, key, options, ...args) {
|
|
270
410
|
const hooks = context.selectHooks(key, options);
|
|
271
411
|
if (hooks.length > 0) {
|
|
@@ -306,19 +446,14 @@ async function callHook(context, key, options, ...args) {
|
|
|
306
446
|
...sequenceArgs
|
|
307
447
|
]));
|
|
308
448
|
if (result) {
|
|
309
|
-
if (options
|
|
449
|
+
if (options.result === "last") {
|
|
310
450
|
results = [
|
|
311
451
|
result
|
|
312
452
|
];
|
|
313
|
-
} else if (
|
|
314
|
-
results =
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
];
|
|
318
|
-
} else if (isObject(result)) {
|
|
319
|
-
results = [
|
|
320
|
-
mergeResults(result, results[0] ?? {})
|
|
321
|
-
];
|
|
453
|
+
} else if (options.result === "merge" && options.merge) {
|
|
454
|
+
results = options.merge(result, results);
|
|
455
|
+
} else {
|
|
456
|
+
results = mergeResults(result, results);
|
|
322
457
|
}
|
|
323
458
|
}
|
|
324
459
|
}
|
|
@@ -722,114 +857,6 @@ function createResolver(options) {
|
|
|
722
857
|
return baseResolver;
|
|
723
858
|
}
|
|
724
859
|
__name(createResolver, "createResolver");
|
|
725
|
-
function isPlugin(value) {
|
|
726
|
-
return isSetObject(value) && "name" in value && isSetString(value.name) && (isUndefined(value.api) || "api" in value && isSetObject(value.api)) && (isUndefined(value.applyToEnvironment) || "applyToEnvironment" in value && isFunction(value.applyToEnvironment)) && (isUndefined(value.dedupe) || "dedupe" in value && isFunction(value.dedupe)) && PLUGIN_HOOKS_FIELDS.every((hook) => isUndefined(value[hook]) || hook in value && (isPluginHookFunction(value[hook]) || hook === "config" && isSetObject(value[hook]))) && BUILDER_VARIANTS.every((variant) => isUndefined(value[variant]) || variant in value && isSetObject(value[variant]));
|
|
727
|
-
}
|
|
728
|
-
__name(isPlugin, "isPlugin");
|
|
729
|
-
function isPluginConfigObject(value) {
|
|
730
|
-
return isSetObject(value) && "plugin" in value && ((isSetString(value.plugin) || isFunction(value.plugin)) && "options" in value && isSetObject(value.options) || isPlugin(value.plugin));
|
|
731
|
-
}
|
|
732
|
-
__name(isPluginConfigObject, "isPluginConfigObject");
|
|
733
|
-
function isPluginConfigTuple(value) {
|
|
734
|
-
return Array.isArray(value) && (value.length === 1 || value.length === 2) && ((isSetString(value[0]) || isFunction(value[0])) && value.length > 1 && isSetObject(value[1]) || isPlugin(value[0]));
|
|
735
|
-
}
|
|
736
|
-
__name(isPluginConfigTuple, "isPluginConfigTuple");
|
|
737
|
-
function isPluginConfig(value) {
|
|
738
|
-
return isSetString(value) || isFunction(value) || isPlugin(value) || isPluginConfigObject(value) || isPluginConfigTuple(value) || Array.isArray(value) && value.every((item) => isPluginConfig(item));
|
|
739
|
-
}
|
|
740
|
-
__name(isPluginConfig, "isPluginConfig");
|
|
741
|
-
function isPluginHookObject(value) {
|
|
742
|
-
return isSetObject(value) && "handler" in value && isFunction(value.handler);
|
|
743
|
-
}
|
|
744
|
-
__name(isPluginHookObject, "isPluginHookObject");
|
|
745
|
-
function isPluginHookFunction(value) {
|
|
746
|
-
return isFunction(value) || isPluginHookObject(value);
|
|
747
|
-
}
|
|
748
|
-
__name(isPluginHookFunction, "isPluginHookFunction");
|
|
749
|
-
function isPluginHook(value) {
|
|
750
|
-
return isPluginHookFunction(value) || isPluginHookObject(value);
|
|
751
|
-
}
|
|
752
|
-
__name(isPluginHook, "isPluginHook");
|
|
753
|
-
function getHookHandler(pluginHook) {
|
|
754
|
-
return isFunction(pluginHook) ? pluginHook : pluginHook.handler;
|
|
755
|
-
}
|
|
756
|
-
__name(getHookHandler, "getHookHandler");
|
|
757
|
-
function isUnpluginHookKey(keys) {
|
|
758
|
-
return UNPLUGIN_BUILDER_VARIANTS.some((variant) => keys.startsWith(`${variant}:`));
|
|
759
|
-
}
|
|
760
|
-
__name(isUnpluginHookKey, "isUnpluginHookKey");
|
|
761
|
-
function isPluginHookField(keys) {
|
|
762
|
-
return !isUnpluginHookKey(keys) && PLUGIN_HOOKS_FIELDS.includes(keys);
|
|
763
|
-
}
|
|
764
|
-
__name(isPluginHookField, "isPluginHookField");
|
|
765
|
-
function isUnpluginHookField(field) {
|
|
766
|
-
return !isPluginHookField(field) && UNPLUGIN_BUILDER_VARIANTS.includes(field);
|
|
767
|
-
}
|
|
768
|
-
__name(isUnpluginHookField, "isUnpluginHookField");
|
|
769
|
-
function checkDedupe(plugin, plugins) {
|
|
770
|
-
return plugin.dedupe === false || plugins.some((p) => p.dedupe !== false && (isFunction(p.dedupe) && p.dedupe(plugin) || p.name === plugin.name));
|
|
771
|
-
}
|
|
772
|
-
__name(checkDedupe, "checkDedupe");
|
|
773
|
-
function addPluginHook(context, plugin, pluginHook, hooksList) {
|
|
774
|
-
if (!checkDedupe(plugin, hooksList.map((hook) => hook.plugin).filter(Boolean))) {
|
|
775
|
-
const handler = /* @__PURE__ */ __name((...args) => getHookHandler(pluginHook).apply(context, args), "handler");
|
|
776
|
-
if (!handler) {
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
hooksList.push({
|
|
780
|
-
plugin,
|
|
781
|
-
handler
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
__name(addPluginHook, "addPluginHook");
|
|
786
|
-
function findInvalidPluginConfig(config) {
|
|
787
|
-
if (isPluginConfig(config)) {
|
|
788
|
-
return null;
|
|
789
|
-
}
|
|
790
|
-
if (Array.isArray(config)) {
|
|
791
|
-
const invalidItems = [];
|
|
792
|
-
config.forEach((item) => {
|
|
793
|
-
const invalid = findInvalidPluginConfig(item);
|
|
794
|
-
if (invalid) {
|
|
795
|
-
invalidItems.push(...invalid.map((i) => JSON.stringify(i, null, 2)));
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
return invalidItems.length > 0 ? invalidItems : null;
|
|
799
|
-
}
|
|
800
|
-
return [
|
|
801
|
-
JSON.stringify(config, null, 2)
|
|
802
|
-
];
|
|
803
|
-
}
|
|
804
|
-
__name(findInvalidPluginConfig, "findInvalidPluginConfig");
|
|
805
|
-
createDefu((obj, key, value) => {
|
|
806
|
-
if (isPluginHook(obj[key]) && isPluginHook(value)) {
|
|
807
|
-
obj[key] = {
|
|
808
|
-
...obj[key],
|
|
809
|
-
...value,
|
|
810
|
-
handler: /* @__PURE__ */ __name(async (...params) => {
|
|
811
|
-
const [resultA, resultB] = await Promise.all([
|
|
812
|
-
// eslint-disable-next-line ts/no-unsafe-call
|
|
813
|
-
getHookHandler(obj[key])(...params),
|
|
814
|
-
// eslint-disable-next-line ts/no-unsafe-call
|
|
815
|
-
getHookHandler(value)(...params)
|
|
816
|
-
]);
|
|
817
|
-
return resultB && resultA ? defu8(resultA, resultB) : resultA || resultB;
|
|
818
|
-
}, "handler")
|
|
819
|
-
};
|
|
820
|
-
return true;
|
|
821
|
-
}
|
|
822
|
-
return false;
|
|
823
|
-
});
|
|
824
|
-
var mergeConfig = createDefu((obj, key, value) => {
|
|
825
|
-
if (isString(obj[key]) && isString(value)) {
|
|
826
|
-
if (isSetString(value)) {
|
|
827
|
-
obj[key] = value;
|
|
828
|
-
}
|
|
829
|
-
return true;
|
|
830
|
-
}
|
|
831
|
-
return false;
|
|
832
|
-
});
|
|
833
860
|
function replacePathTokens(context, path) {
|
|
834
861
|
if (!path) {
|
|
835
862
|
return path;
|
|
@@ -4388,7 +4415,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4388
4415
|
const pluginConfig = await api.callHook("config", {
|
|
4389
4416
|
environment: await api.context.getEnvironment(),
|
|
4390
4417
|
sequential: true,
|
|
4391
|
-
result: "merge"
|
|
4418
|
+
result: "merge",
|
|
4419
|
+
merge: mergeConfigs
|
|
4392
4420
|
});
|
|
4393
4421
|
await api.context.withUserConfig(pluginConfig, {
|
|
4394
4422
|
isHighPriority: false
|
|
@@ -4997,5 +5025,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4997
5025
|
};
|
|
4998
5026
|
|
|
4999
5027
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5000
|
-
//# sourceMappingURL=chunk-
|
|
5001
|
-
//# sourceMappingURL=chunk-
|
|
5028
|
+
//# sourceMappingURL=chunk-2UIGAU7H.js.map
|
|
5029
|
+
//# sourceMappingURL=chunk-2UIGAU7H.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkBZDPWW5V_cjs = require('./chunk-BZDPWW5V.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkBZDPWW5V_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-BXOLROGM.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-BXOLROGM.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEUA6Q552_cjs = require('./chunk-EUA6Q552.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
|
|
|
27
27
|
// src/lib/unplugin/factory.ts
|
|
28
28
|
function createUnpluginFactory(variant, decorate) {
|
|
29
29
|
return (config, meta) => {
|
|
30
|
-
const log =
|
|
30
|
+
const log = chunkEUA6Q552_cjs.createLog("unplugin", config);
|
|
31
31
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
32
32
|
try {
|
|
33
33
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
let api;
|
|
39
39
|
async function buildStart() {
|
|
40
40
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunkEUA6Q552_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
|
|
42
42
|
unplugin.setParseImpl(api.context.parse);
|
|
43
43
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
44
44
|
await api.prepare({
|
|
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
137
137
|
|
|
138
138
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
139
139
|
exports.getString = getString;
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-BZDPWW5V.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-BZDPWW5V.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-2UIGAU7H.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
134
134
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
135
135
|
|
|
136
136
|
export { createUnpluginFactory, getString };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-C5KPJ3PS.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-C5KPJ3PS.js.map
|