powerlines 0.34.9 → 0.35.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/{api-64F6GdFq.d.cts → api-Ch19bYX6.d.cts} +1 -1
- package/dist/{api-C8dgNF9j.d.ts → api-DJoWdEeA.d.ts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +2 -2
- package/dist/astro.d.ts +2 -2
- package/dist/astro.js +3 -3
- package/dist/chunk-24F67D36.cjs +12 -0
- package/dist/{chunk-WLBT35SV.cjs → chunk-3TJ77HBR.cjs} +5 -5
- package/dist/{chunk-3HMEVUF3.js → chunk-4JTXARCZ.js} +3 -3
- package/dist/{chunk-JZA7N2M4.js → chunk-4ZM66B4T.js} +3 -3
- package/dist/{chunk-MLAI362G.js → chunk-52UMGJQJ.js} +3 -3
- package/dist/{chunk-AMPAP7VJ.js → chunk-7GLQATKT.js} +3 -3
- package/dist/{chunk-O5QCLZXU.cjs → chunk-AFSF26JE.cjs} +4 -4
- package/dist/{chunk-IWD7XNVY.js → chunk-EJZVAP3T.js} +2 -2
- package/dist/{chunk-RFPNTMLX.js → chunk-GIOACISS.js} +2 -2
- package/dist/{chunk-NJRZDDTZ.cjs → chunk-IJXEMXLH.cjs} +2 -2
- package/dist/{chunk-BY2N3ZJV.js → chunk-JEP7MDIY.js} +67 -32
- package/dist/{chunk-MBPLCGMU.js → chunk-LUTJ2RSQ.js} +3 -3
- package/dist/{chunk-V64P3LPH.cjs → chunk-OOZPDTJM.cjs} +67 -32
- package/dist/{chunk-IMRQNWR4.cjs → chunk-QMYQNHIP.cjs} +4 -4
- package/dist/chunk-S6KFRQYJ.cjs +12 -0
- package/dist/{chunk-BCF2FSIU.cjs → chunk-UMU2MF3G.cjs} +2 -2
- package/dist/{context-CD3z3bug.d.ts → context-CWyF5B_6.d.ts} +18 -14
- package/dist/{context-CybU4gzB.d.cts → context-HIW4qjIs.d.cts} +18 -14
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +2 -2
- package/dist/farm.d.ts +2 -2
- package/dist/farm.js +2 -2
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/lib/{api-WGXMngpt.d.ts → api-B8aBolnU.d.ts} +1 -1
- package/dist/lib/{api-C-muqDwC.d.cts → api-C6p2jxI9.d.cts} +1 -1
- package/dist/lib/build/esbuild.d.cts +2 -2
- package/dist/lib/build/esbuild.d.ts +2 -2
- package/dist/lib/build/index.d.cts +4 -4
- package/dist/lib/build/index.d.ts +4 -4
- package/dist/lib/build/rolldown.d.cts +2 -2
- package/dist/lib/build/rolldown.d.ts +2 -2
- package/dist/lib/build/rollup.d.cts +2 -2
- package/dist/lib/build/rollup.d.ts +2 -2
- package/dist/lib/build/rspack.d.cts +2 -2
- package/dist/lib/build/rspack.d.ts +2 -2
- package/dist/lib/build/tsdown.d.cts +2 -2
- package/dist/lib/build/tsdown.d.ts +2 -2
- package/dist/lib/build/tsup.d.cts +2 -2
- package/dist/lib/build/tsup.d.ts +2 -2
- package/dist/lib/build/unbuild.d.cts +4 -4
- package/dist/lib/build/unbuild.d.ts +4 -4
- package/dist/lib/build/vite.d.cts +2 -2
- package/dist/lib/build/vite.d.ts +2 -2
- package/dist/lib/build/webpack.d.cts +2 -2
- package/dist/lib/build/webpack.d.ts +2 -2
- package/dist/lib/{chunk-2KYZLGIZ.js → chunk-25C6FCLA.js} +4 -4
- package/dist/lib/{chunk-2KYZLGIZ.js.map → chunk-25C6FCLA.js.map} +1 -1
- package/dist/lib/{chunk-VPZU5BTK.js → chunk-3BXSIJGU.js} +17 -6
- package/dist/lib/chunk-3BXSIJGU.js.map +1 -0
- package/dist/lib/{chunk-UWOD2XLX.cjs → chunk-53LK7IG5.cjs} +17 -3
- package/dist/lib/chunk-53LK7IG5.cjs.map +1 -0
- package/dist/lib/{chunk-RRPFZDGI.cjs → chunk-7XTQMSUB.cjs} +6 -6
- package/dist/lib/{chunk-RRPFZDGI.cjs.map → chunk-7XTQMSUB.cjs.map} +1 -1
- package/dist/lib/{chunk-HVL3SPVN.js → chunk-FM7R4KTA.js} +40 -30
- package/dist/lib/chunk-FM7R4KTA.js.map +1 -0
- package/dist/lib/{chunk-VM6LBJ3L.cjs → chunk-NOABJWDK.cjs} +45 -35
- package/dist/lib/chunk-NOABJWDK.cjs.map +1 -0
- package/dist/lib/{chunk-MBGLVIJD.js → chunk-Q7KX7QCP.js} +3 -3
- package/dist/lib/{chunk-MBGLVIJD.js.map → chunk-Q7KX7QCP.js.map} +1 -1
- package/dist/lib/{chunk-NXUMUI2Z.js → chunk-TB2ZWKZN.js} +17 -3
- package/dist/lib/chunk-TB2ZWKZN.js.map +1 -0
- package/dist/lib/{chunk-UZSTEOLF.cjs → chunk-VAIDDF5X.cjs} +19 -8
- package/dist/lib/chunk-VAIDDF5X.cjs.map +1 -0
- package/dist/lib/{chunk-XXQREHLK.cjs → chunk-VMWMBMXG.cjs} +13 -13
- package/dist/lib/{chunk-XXQREHLK.cjs.map → chunk-VMWMBMXG.cjs.map} +1 -1
- package/dist/lib/{config-ba1qwxTg.d.ts → config-CGGo9KcK.d.ts} +17 -13
- package/dist/lib/{config-Lr7p1CKw.d.cts → config-CYz6Kd4L.d.cts} +17 -13
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +4 -4
- package/dist/lib/contexts/api-context.d.ts +4 -4
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +4 -4
- package/dist/lib/contexts/context.d.ts +4 -4
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +4 -4
- package/dist/lib/contexts/environment-context.d.ts +4 -4
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +4 -4
- package/dist/lib/contexts/plugin-context.d.ts +4 -4
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.d.cts +2 -2
- package/dist/lib/fs/index.d.ts +2 -2
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/storage/base.d.cts +1 -1
- package/dist/lib/fs/storage/base.d.ts +1 -1
- package/dist/lib/fs/storage/file-system.d.cts +1 -1
- package/dist/lib/fs/storage/file-system.d.ts +1 -1
- package/dist/lib/fs/storage/index.d.cts +1 -1
- package/dist/lib/fs/storage/index.d.ts +1 -1
- package/dist/lib/fs/storage/virtual.d.cts +1 -1
- package/dist/lib/fs/storage/virtual.d.ts +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/{fs-BkpNEsxT.d.ts → fs-Mx46r7JY.d.cts} +2 -2
- package/dist/lib/{fs-BkpNEsxT.d.cts → fs-Mx46r7JY.d.ts} +2 -2
- package/dist/lib/index.cjs +10 -10
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-Cy15nTJD.d.ts → internal-DoGteMoK.d.ts} +2 -2
- package/dist/lib/{internal-CSgMKSqU.d.cts → internal-YI5K6rmd.d.cts} +2 -2
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.ts +2 -2
- package/dist/lib/typescript/ts-morph.d.cts +2 -2
- package/dist/lib/typescript/ts-morph.d.ts +2 -2
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/{unplugin-C1FUzEE1.d.ts → unplugin-DYkHIqSU.d.ts} +2 -2
- package/dist/lib/{unplugin-DQ_UxGcQ.d.cts → unplugin-Dx_uD4rQ.d.cts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/cache.d.cts +2 -2
- package/dist/lib/utilities/cache.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/source-file.d.cts +2 -2
- package/dist/lib/utilities/source-file.d.ts +2 -2
- package/dist/lib/utilities/source-map.d.cts +2 -2
- package/dist/lib/utilities/source-map.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{chunk-X4BI25Z5.js → chunk-CTG3PTA6.js} +3 -3
- package/dist/plugin-utils/chunk-CTG3PTA6.js.map +1 -0
- package/dist/plugin-utils/chunk-DO3S34NW.cjs +33 -0
- package/dist/plugin-utils/chunk-DO3S34NW.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-QQ63YK2G.js → chunk-DYCWCPQP.js} +3 -3
- package/dist/plugin-utils/{chunk-QQ63YK2G.js.map → chunk-DYCWCPQP.js.map} +1 -1
- package/dist/plugin-utils/{chunk-UXLKUCEY.cjs → chunk-FINF3V34.cjs} +6 -6
- package/dist/plugin-utils/{chunk-UXLKUCEY.cjs.map → chunk-FINF3V34.cjs.map} +1 -1
- package/dist/plugin-utils/{chunk-VJGI676W.cjs → chunk-IZMPXMCN.cjs} +3 -3
- package/dist/plugin-utils/chunk-IZMPXMCN.cjs.map +1 -0
- package/dist/plugin-utils/chunk-LRSYWPP2.js +31 -0
- package/dist/plugin-utils/chunk-LRSYWPP2.js.map +1 -0
- package/dist/plugin-utils/chunk-ORSVDVXT.js +25 -0
- package/dist/plugin-utils/chunk-ORSVDVXT.js.map +1 -0
- package/dist/plugin-utils/chunk-VW6I3FEY.cjs +27 -0
- package/dist/plugin-utils/chunk-VW6I3FEY.cjs.map +1 -0
- package/dist/plugin-utils/{context-D7SEhuVP.d.ts → context-BY72cezC.d.cts} +21 -17
- package/dist/plugin-utils/{context-D7SEhuVP.d.cts → context-BY72cezC.d.ts} +21 -17
- package/dist/plugin-utils/context-helpers.d.cts +2 -2
- package/dist/plugin-utils/context-helpers.d.ts +2 -2
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +4 -3
- package/dist/plugin-utils/enforce.d.ts +4 -3
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +6 -3
- package/dist/plugin-utils/extend.d.ts +6 -3
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.d.cts +2 -2
- package/dist/plugin-utils/get-config-path.d.ts +2 -2
- package/dist/plugin-utils/helpers.cjs +14 -14
- package/dist/plugin-utils/helpers.d.cts +2 -2
- package/dist/plugin-utils/helpers.d.ts +2 -2
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +20 -20
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.ts +2 -2
- package/dist/plugin-utils/index.js +4 -4
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +2 -2
- package/dist/plugin-utils/merge.d.ts +2 -2
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.d.cts +2 -2
- package/dist/plugin-utils/paths.d.ts +2 -2
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.ts +2 -2
- 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/api.d.cts +3 -3
- package/dist/types/api.d.ts +3 -3
- package/dist/types/babel.d.cts +2 -2
- package/dist/types/babel.d.ts +2 -2
- package/dist/types/commands.d.cts +2 -2
- package/dist/types/commands.d.ts +2 -2
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +2 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/context.js +1 -1
- package/dist/types/fs.cjs +3 -3
- package/dist/types/fs.d.cts +2 -2
- package/dist/types/fs.d.ts +2 -2
- package/dist/types/fs.js +1 -1
- package/dist/types/hooks.d.cts +2 -2
- package/dist/types/hooks.d.ts +2 -2
- package/dist/types/index.cjs +5 -5
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +3 -3
- package/dist/types/internal.d.ts +3 -3
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +3 -3
- package/dist/types/unplugin.d.ts +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +2 -2
- package/dist/unloader.d.ts +2 -2
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +5 -5
- package/dist/unplugin.d.cts +3 -3
- package/dist/unplugin.d.ts +3 -3
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-2GKVCE3E.cjs +0 -12
- package/dist/chunk-JTZS2TSQ.cjs +0 -12
- package/dist/lib/chunk-HVL3SPVN.js.map +0 -1
- package/dist/lib/chunk-NXUMUI2Z.js.map +0 -1
- package/dist/lib/chunk-UWOD2XLX.cjs.map +0 -1
- package/dist/lib/chunk-UZSTEOLF.cjs.map +0 -1
- package/dist/lib/chunk-VM6LBJ3L.cjs.map +0 -1
- package/dist/lib/chunk-VPZU5BTK.js.map +0 -1
- package/dist/plugin-utils/chunk-36OM2X4L.js +0 -30
- package/dist/plugin-utils/chunk-36OM2X4L.js.map +0 -1
- package/dist/plugin-utils/chunk-DQDBFO67.js +0 -23
- package/dist/plugin-utils/chunk-DQDBFO67.js.map +0 -1
- package/dist/plugin-utils/chunk-EWPAHNGW.cjs +0 -25
- package/dist/plugin-utils/chunk-EWPAHNGW.cjs.map +0 -1
- package/dist/plugin-utils/chunk-ID47RJFS.cjs +0 -32
- package/dist/plugin-utils/chunk-ID47RJFS.cjs.map +0 -1
- package/dist/plugin-utils/chunk-VJGI676W.cjs.map +0 -1
- package/dist/plugin-utils/chunk-X4BI25Z5.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-HIW4qjIs.cjs';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
2
|
+
import { b0 as SelectHooksOptions, ct as ResolvedConfig, b7 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-CWyF5B_6.js';
|
|
3
3
|
|
|
4
4
|
type CallHookOptions = SelectHooksOptions & (({
|
|
5
5
|
/**
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOOZPDTJM_cjs = require('./chunk-OOZPDTJM.cjs');
|
|
4
4
|
require('./chunk-VFXZVCGG.cjs');
|
|
5
5
|
require('./chunk-Z6ARQDHR.cjs');
|
|
6
6
|
require('./chunk-PK6SKIKE.cjs');
|
|
@@ -9,7 +9,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkOOZPDTJM_cjs.PowerlinesAPI; }
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=api.cjs.map
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-Ch19bYX6.cjs';
|
|
2
|
+
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-HIW4qjIs.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-DJoWdEeA.js';
|
|
2
|
+
import { ct as ResolvedConfig, b7 as APIContext, a4 as InitialUserConfig, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bC as HookKeys, bb as PluginContext, ba as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './context-CWyF5B_6.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
5
|
import '@stryke/http/fetch';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
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 chunkAFSF26JE_cjs = require('./chunk-AFSF26JE.cjs');
|
|
6
6
|
require('./chunk-QHEKB7RW.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-3TJ77HBR.cjs');
|
|
8
|
+
require('./chunk-OOZPDTJM.cjs');
|
|
9
9
|
require('./chunk-VFXZVCGG.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
@@ -14,7 +14,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
15
15
|
vite: {
|
|
16
16
|
plugins: [
|
|
17
|
-
|
|
17
|
+
chunkAFSF26JE_cjs.vite_default(config)
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cu as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cu as ViteResolvedConfig } from './context-HIW4qjIs.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cu as ViteResolvedConfig } from './context-
|
|
2
|
+
import { cu as ViteResolvedConfig } from './context-CWyF5B_6.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/configuration';
|
|
7
6
|
import '@stryke/types/package-json';
|
|
8
7
|
import 'jest-worker';
|
|
9
8
|
import 'jiti';
|
|
@@ -18,6 +17,7 @@ import '@babel/core';
|
|
|
18
17
|
import '@storm-software/build-tools/types';
|
|
19
18
|
import '@storm-software/config-tools/types';
|
|
20
19
|
import '@storm-software/config/types';
|
|
20
|
+
import '@stryke/types/configuration';
|
|
21
21
|
import '@stryke/types/file';
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'vite';
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-52UMGJQJ.js';
|
|
2
2
|
import './chunk-YJWTNJQF.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-4ZM66B4T.js';
|
|
4
|
+
import './chunk-JEP7MDIY.js';
|
|
5
5
|
import './chunk-JGSCIWFQ.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
|
7
7
|
import { __name } from './chunk-7QVYU63E.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3TJ77HBR_cjs = require('./chunk-3TJ77HBR.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk3TJ77HBR_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-24F67D36.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-24F67D36.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOOZPDTJM_cjs = require('./chunk-OOZPDTJM.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 = chunkOOZPDTJM_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 chunkOOZPDTJM_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({
|
|
@@ -132,5 +132,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
132
132
|
|
|
133
133
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
134
134
|
exports.getString = getString;
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
136
|
-
//# sourceMappingURL=chunk-
|
|
135
|
+
//# sourceMappingURL=chunk-3TJ77HBR.cjs.map
|
|
136
|
+
//# sourceMappingURL=chunk-3TJ77HBR.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-4ZM66B4T.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-4JTXARCZ.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-4JTXARCZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-JEP7MDIY.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';
|
|
@@ -129,5 +129,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
129
129
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
130
130
|
|
|
131
131
|
export { createUnpluginFactory, getString };
|
|
132
|
-
//# sourceMappingURL=chunk-
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
132
|
+
//# sourceMappingURL=chunk-4ZM66B4T.js.map
|
|
133
|
+
//# sourceMappingURL=chunk-4ZM66B4T.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-YJWTNJQF.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-4ZM66B4T.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
151
151
|
var vite_default = vite;
|
|
152
152
|
|
|
153
153
|
export { vite, vite_default };
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-52UMGJQJ.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-52UMGJQJ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-4ZM66B4T.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-7GLQATKT.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-7GLQATKT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQHEKB7RW_cjs = require('./chunk-QHEKB7RW.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk3TJ77HBR_cjs = require('./chunk-3TJ77HBR.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
97
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
98
98
|
|
|
99
99
|
// src/vite.ts
|
|
100
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunk3TJ77HBR_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
101
101
|
return {
|
|
102
102
|
...plugin,
|
|
103
103
|
vite: {
|
|
@@ -158,5 +158,5 @@ var vite_default = vite;
|
|
|
158
158
|
|
|
159
159
|
exports.vite = vite;
|
|
160
160
|
exports.vite_default = vite_default;
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-AFSF26JE.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-AFSF26JE.cjs.map
|
|
@@ -3,5 +3,5 @@ var __VFS_PATCH__ = "__VFS_PATCH__";
|
|
|
3
3
|
var __VFS_REVERT__ = "__VFS_REVERT__";
|
|
4
4
|
|
|
5
5
|
export { __VFS_PATCH__, __VFS_REVERT__ };
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
//# sourceMappingURL=chunk-EJZVAP3T.js.map
|
|
7
|
+
//# sourceMappingURL=chunk-EJZVAP3T.js.map
|
|
@@ -811,7 +811,7 @@ function isPluginConfigTuple(value) {
|
|
|
811
811
|
}
|
|
812
812
|
__name(isPluginConfigTuple, "isPluginConfigTuple");
|
|
813
813
|
function isPluginConfig(value) {
|
|
814
|
-
return isSetString(value) || isFunction(value) || isPlugin(value) || isPluginConfigObject(value) || isPluginConfigTuple(value);
|
|
814
|
+
return isSetString(value) || isFunction(value) || isPlugin(value) || Array.isArray(value) && value.every((item) => isPlugin(item)) || isPluginConfigObject(value) || isPluginConfigTuple(value);
|
|
815
815
|
}
|
|
816
816
|
__name(isPluginConfig, "isPluginConfig");
|
|
817
817
|
function isPluginHookFunction(value) {
|
|
@@ -1873,6 +1873,20 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1873
1873
|
};
|
|
1874
1874
|
return ret;
|
|
1875
1875
|
}, {});
|
|
1876
|
+
if (context.config.skipCache !== true) {
|
|
1877
|
+
Object.entries(this.#metadata).filter(([, value]) => value.type === "entry").forEach(([id, value]) => {
|
|
1878
|
+
this.#context.entry ??= [];
|
|
1879
|
+
this.#context.entry.push({
|
|
1880
|
+
file: id,
|
|
1881
|
+
name: value.properties.name,
|
|
1882
|
+
output: value.properties.output,
|
|
1883
|
+
input: value.properties["input.file"] ? {
|
|
1884
|
+
file: value.properties["input.file"],
|
|
1885
|
+
name: value.properties["input.name"]
|
|
1886
|
+
} : void 0
|
|
1887
|
+
});
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1876
1890
|
}
|
|
1877
1891
|
this.#ids = {};
|
|
1878
1892
|
this.#paths = {};
|
|
@@ -2475,7 +2489,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2475
2489
|
fileMetadata.timestamp = value.timestamp ?? BigInt(Date.now());
|
|
2476
2490
|
if (value.properties) {
|
|
2477
2491
|
const props = fileMetadata._initProperties(Object.keys(value.properties).length);
|
|
2478
|
-
Object.entries(value.properties).forEach(([key, val], index2) => {
|
|
2492
|
+
Object.entries(value.properties).filter(([, val]) => isSetString(val)).forEach(([key, val], index2) => {
|
|
2479
2493
|
const prop = props.get(index2);
|
|
2480
2494
|
prop.key = key;
|
|
2481
2495
|
prop.value = val;
|
|
@@ -3087,13 +3101,24 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3087
3101
|
* @param options - Optional write file options
|
|
3088
3102
|
*/
|
|
3089
3103
|
async emitEntry(code, path, options = {}) {
|
|
3090
|
-
|
|
3104
|
+
const entryPath = isAbsolute(path) ? path : appendPath(path, this.entryPath);
|
|
3105
|
+
this.entry ??= [];
|
|
3106
|
+
this.entry.push({
|
|
3107
|
+
name: options.name,
|
|
3108
|
+
file: entryPath,
|
|
3109
|
+
input: options.input,
|
|
3110
|
+
output: options.output
|
|
3111
|
+
});
|
|
3112
|
+
return this.fs.write(entryPath, code, defu7(omit(options, [
|
|
3091
3113
|
"name"
|
|
3092
3114
|
]), {
|
|
3093
3115
|
meta: {
|
|
3094
3116
|
type: "entry",
|
|
3095
3117
|
properties: {
|
|
3096
|
-
name: options.name
|
|
3118
|
+
name: options.name,
|
|
3119
|
+
output: options.output,
|
|
3120
|
+
"input.file": options.input?.file,
|
|
3121
|
+
"input.name": options.input?.name
|
|
3097
3122
|
}
|
|
3098
3123
|
}
|
|
3099
3124
|
}));
|
|
@@ -4005,7 +4030,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4005
4030
|
order: "normal"
|
|
4006
4031
|
});
|
|
4007
4032
|
context.log(LogLevelLabel.DEBUG, `The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4008
|
-
${context.entry.map((entry) => `- ${entry.
|
|
4033
|
+
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}.`);
|
|
4009
4034
|
await resolveTsconfig(context);
|
|
4010
4035
|
await installDependencies(context);
|
|
4011
4036
|
await this.callHook("configResolved", {
|
|
@@ -4444,17 +4469,19 @@ ${formatTypes(types)}
|
|
|
4444
4469
|
*/
|
|
4445
4470
|
async #addPlugin(config) {
|
|
4446
4471
|
if (config) {
|
|
4447
|
-
const
|
|
4448
|
-
if (!
|
|
4472
|
+
const result = await this.#initPlugin(config);
|
|
4473
|
+
if (!result) {
|
|
4449
4474
|
return;
|
|
4450
4475
|
}
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4476
|
+
for (const plugin of result) {
|
|
4477
|
+
if (plugin.dependsOn) {
|
|
4478
|
+
for (const required of plugin.dependsOn) {
|
|
4479
|
+
await this.#addPlugin(required);
|
|
4480
|
+
}
|
|
4454
4481
|
}
|
|
4482
|
+
this.context.log(LogLevelLabel.DEBUG, `Successfully initialized the ${chalk5.bold.cyanBright(plugin.name)} plugin`);
|
|
4483
|
+
await this.context.addPlugin(plugin);
|
|
4455
4484
|
}
|
|
4456
|
-
this.context.log(LogLevelLabel.DEBUG, `Successfully initialized the ${chalk5.bold.cyanBright(plugin.name)} plugin`);
|
|
4457
|
-
await this.context.addPlugin(plugin);
|
|
4458
4485
|
}
|
|
4459
4486
|
}
|
|
4460
4487
|
/**
|
|
@@ -4472,17 +4499,21 @@ ${formatTypes(types)}
|
|
|
4472
4499
|
if (!isPluginConfig(awaited)) {
|
|
4473
4500
|
throw new Error(`Invalid plugin specified in the configuration - ${JSON.stringify(awaited)}. Please ensure the value is a plugin name, an object with the \`plugin\` and \`props\` properties, or an instance of \`Plugin\`.`);
|
|
4474
4501
|
}
|
|
4475
|
-
let
|
|
4476
|
-
if (
|
|
4477
|
-
|
|
4502
|
+
let result;
|
|
4503
|
+
if (Array.isArray(awaited) && awaited.every(isPlugin)) {
|
|
4504
|
+
result = awaited;
|
|
4505
|
+
} else if (isPlugin(awaited)) {
|
|
4506
|
+
result = [
|
|
4507
|
+
awaited
|
|
4508
|
+
];
|
|
4478
4509
|
} else if (isFunction(awaited)) {
|
|
4479
|
-
|
|
4510
|
+
result = toArray(await Promise.resolve(awaited()));
|
|
4480
4511
|
} else if (isSetString(awaited)) {
|
|
4481
4512
|
const resolved = await this.#resolvePlugin(awaited);
|
|
4482
4513
|
if (isFunction(resolved)) {
|
|
4483
|
-
|
|
4514
|
+
result = toArray(await Promise.resolve(resolved()));
|
|
4484
4515
|
} else {
|
|
4485
|
-
|
|
4516
|
+
result = toArray(resolved);
|
|
4486
4517
|
}
|
|
4487
4518
|
} else if (isPluginConfigTuple(awaited) || isPluginConfigObject(awaited)) {
|
|
4488
4519
|
let pluginConfig;
|
|
@@ -4497,28 +4528,32 @@ ${formatTypes(types)}
|
|
|
4497
4528
|
if (isSetString(pluginConfig)) {
|
|
4498
4529
|
const resolved = await this.#resolvePlugin(pluginConfig);
|
|
4499
4530
|
if (isFunction(resolved)) {
|
|
4500
|
-
|
|
4531
|
+
result = toArray(await Promise.resolve(pluginOptions ? resolved(pluginOptions) : resolved()));
|
|
4501
4532
|
} else {
|
|
4502
|
-
|
|
4533
|
+
result = toArray(resolved);
|
|
4503
4534
|
}
|
|
4504
4535
|
} else if (isFunction(pluginConfig)) {
|
|
4505
|
-
|
|
4536
|
+
result = toArray(await Promise.resolve(pluginConfig(pluginOptions)));
|
|
4537
|
+
} else if (Array.isArray(pluginConfig) && pluginConfig.every(isPlugin)) {
|
|
4538
|
+
result = pluginConfig;
|
|
4506
4539
|
} else if (isPlugin(pluginConfig)) {
|
|
4507
|
-
|
|
4540
|
+
result = toArray(pluginConfig);
|
|
4508
4541
|
}
|
|
4509
4542
|
}
|
|
4510
|
-
if (!
|
|
4543
|
+
if (!result) {
|
|
4511
4544
|
throw new Error(`The plugin configuration ${JSON.stringify(awaited)} is invalid. This configuration must point to a valid Powerlines plugin module.`);
|
|
4512
4545
|
}
|
|
4513
|
-
if (!isPlugin
|
|
4514
|
-
throw new Error(`The plugin option ${JSON.stringify(
|
|
4546
|
+
if (result.length > 0 && !result.every(isPlugin)) {
|
|
4547
|
+
throw new Error(`The plugin option ${JSON.stringify(result)} does not export a valid module. This configuration must point to a valid Powerlines plugin module.`);
|
|
4515
4548
|
}
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4549
|
+
for (const plugin of result) {
|
|
4550
|
+
if (checkDedupe(plugin, this.context.plugins)) {
|
|
4551
|
+
this.context.log(LogLevelLabel.TRACE, `Duplicate ${chalk5.bold.cyanBright(plugin.name)} plugin dependency detected - Skipping initialization.`);
|
|
4552
|
+
return null;
|
|
4553
|
+
}
|
|
4554
|
+
this.context.log(LogLevelLabel.TRACE, `Initializing the ${chalk5.bold.cyanBright(plugin.name)} plugin...`);
|
|
4519
4555
|
}
|
|
4520
|
-
|
|
4521
|
-
return plugin;
|
|
4556
|
+
return result;
|
|
4522
4557
|
}
|
|
4523
4558
|
async #resolvePlugin(pluginPath) {
|
|
4524
4559
|
if (pluginPath.startsWith("@") && pluginPath.split("/").filter(Boolean).length > 2) {
|
|
@@ -4571,5 +4606,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4571
4606
|
};
|
|
4572
4607
|
|
|
4573
4608
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, createLog, extendLog };
|
|
4574
|
-
//# sourceMappingURL=chunk-
|
|
4575
|
-
//# sourceMappingURL=chunk-
|
|
4609
|
+
//# sourceMappingURL=chunk-JEP7MDIY.js.map
|
|
4610
|
+
//# sourceMappingURL=chunk-JEP7MDIY.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-4ZM66B4T.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-LUTJ2RSQ.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-LUTJ2RSQ.js.map
|