powerlines 0.36.28 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{context-DU4oqb6r.d.cts → api-CLQePK25.d.cts} +262 -127
- package/dist/{context-DmCNtNIs.d.ts → api-DClrDYWk.d.ts} +262 -127
- package/dist/api.cjs +4 -4
- package/dist/api.d.cts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.js +3 -3
- package/dist/astro.cjs +6 -6
- package/dist/astro.d.cts +6 -5
- package/dist/astro.d.ts +6 -5
- package/dist/astro.js +5 -5
- package/dist/{chunk-K4ZR45W7.cjs → chunk-2ZNVD64B.cjs} +4 -4
- package/dist/{chunk-7IDSUDJN.js → chunk-3JGCXWAM.js} +3 -3
- package/dist/chunk-42ZHOCZJ.cjs +14 -0
- package/dist/{chunk-PZZP3VX2.cjs → chunk-4PIVB3SY.cjs} +14 -9
- package/dist/{chunk-ZCMOAOQN.cjs → chunk-B6DVCLP5.cjs} +8 -7
- package/dist/chunk-CCJQBJKQ.js +12 -0
- package/dist/{chunk-VZMAJMBD.js → chunk-DVJEAUGP.js} +5 -5
- package/dist/{chunk-3CCAN6GY.cjs → chunk-E4QAO32M.cjs} +176 -128
- package/dist/chunk-FON7JDQF.cjs +12 -0
- package/dist/{chunk-NSHXFNIL.js → chunk-IBQ5USID.js} +12 -7
- package/dist/{chunk-TP4FRF4H.cjs → chunk-JQDMR7OP.cjs} +2 -2
- package/dist/{chunk-4VQBXIAH.js → chunk-MI5E6YZI.js} +3 -3
- package/dist/chunk-NITQ5IYP.js +22 -0
- package/dist/{chunk-JMX44J5R.js → chunk-NM3AFEVI.js} +174 -128
- package/dist/{chunk-AJPO5EP7.js → chunk-PQXP7XQK.js} +8 -7
- package/dist/{chunk-OCEXXVLR.cjs → chunk-TFRZZNXL.cjs} +6 -6
- package/dist/{chunk-JTK4RYSG.js → chunk-U5MNJ4XF.js} +3 -3
- package/dist/{chunk-EXY3RCJH.js → chunk-UNIWU6XL.js} +2 -2
- package/dist/chunk-V5WOGN7O.cjs +25 -0
- package/dist/chunk-XHOP5GXJ.cjs +12 -0
- package/dist/esbuild.cjs +8 -8
- package/dist/esbuild.d.cts +6 -5
- package/dist/esbuild.d.ts +6 -5
- package/dist/esbuild.js +5 -5
- package/dist/farm.cjs +5 -5
- package/dist/farm.d.cts +6 -5
- package/dist/farm.d.ts +6 -5
- package/dist/farm.js +4 -4
- package/dist/index.cjs +30 -22
- package/dist/index.d.cts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +6 -6
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.d.cts +2 -3
- package/dist/lib/build/index.d.ts +2 -3
- 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 -3
- package/dist/lib/build/unbuild.d.ts +2 -3
- 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-254IMO3A.js +17 -0
- package/dist/lib/chunk-254IMO3A.js.map +1 -0
- package/dist/lib/{chunk-T3VYM4BO.cjs → chunk-4QMQCXAG.cjs} +6 -6
- package/dist/lib/{chunk-T3VYM4BO.cjs.map → chunk-4QMQCXAG.cjs.map} +1 -1
- package/dist/lib/chunk-64R4MDJ7.cjs +25 -0
- package/dist/lib/chunk-64R4MDJ7.cjs.map +1 -0
- package/dist/lib/{chunk-HEMW2YZA.js → chunk-7PD2L3PS.js} +2 -2
- package/dist/lib/{chunk-HEMW2YZA.js.map → chunk-7PD2L3PS.js.map} +1 -1
- package/dist/lib/{chunk-PWKYZBQQ.js → chunk-FI4QUQV2.js} +4 -4
- package/dist/lib/{chunk-PWKYZBQQ.js.map → chunk-FI4QUQV2.js.map} +1 -1
- package/dist/lib/{chunk-3RTOKGVV.cjs → chunk-G3BXMS2V.cjs} +47 -48
- package/dist/lib/chunk-G3BXMS2V.cjs.map +1 -0
- package/dist/lib/chunk-GNEHIBN4.cjs +20 -0
- package/dist/lib/chunk-GNEHIBN4.cjs.map +1 -0
- package/dist/lib/{chunk-57WHQU5T.cjs → chunk-GZDE4GLY.cjs} +2 -2
- package/dist/lib/{chunk-57WHQU5T.cjs.map → chunk-GZDE4GLY.cjs.map} +1 -1
- package/dist/lib/chunk-HGE5DAZF.js +22 -0
- package/dist/lib/chunk-HGE5DAZF.js.map +1 -0
- package/dist/lib/{chunk-GUZKITBG.js → chunk-I7BLJZ4D.js} +5 -5
- package/dist/lib/chunk-I7BLJZ4D.js.map +1 -0
- package/dist/lib/{chunk-MZQFHBHY.cjs → chunk-QVDESIYV.cjs} +5 -5
- package/dist/lib/chunk-QVDESIYV.cjs.map +1 -0
- package/dist/lib/{chunk-POY47Z36.js → chunk-TO3SBSXL.js} +35 -36
- package/dist/lib/chunk-TO3SBSXL.js.map +1 -0
- package/dist/lib/{chunk-XAALLEOG.js → chunk-TWAVU346.js} +27 -29
- package/dist/lib/chunk-TWAVU346.js.map +1 -0
- package/dist/lib/{chunk-C7KNYLNP.cjs → chunk-UXLXQOJD.cjs} +29 -30
- package/dist/lib/chunk-UXLXQOJD.cjs.map +1 -0
- package/dist/lib/chunk-WAN5RBXY.cjs +234 -0
- package/dist/lib/chunk-WAN5RBXY.cjs.map +1 -0
- package/dist/lib/chunk-XDUEQVFC.js +232 -0
- package/dist/lib/chunk-XDUEQVFC.js.map +1 -0
- package/dist/lib/{config-BSQhtJCR.d.ts → config-BLfOgflT.d.ts} +230 -104
- package/dist/lib/{config-CP6f9ozu.d.cts → config-CmG_oSbS.d.cts} +230 -104
- 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 +7 -5
- package/dist/lib/contexts/api-context.d.cts +2 -3
- package/dist/lib/contexts/api-context.d.ts +2 -3
- package/dist/lib/contexts/api-context.js +6 -4
- package/dist/lib/contexts/context.cjs +3 -2
- package/dist/lib/contexts/context.d.cts +2 -3
- package/dist/lib/contexts/context.d.ts +2 -3
- package/dist/lib/contexts/context.js +2 -1
- package/dist/lib/contexts/environment-context.cjs +6 -4
- package/dist/lib/contexts/environment-context.d.cts +3 -4
- package/dist/lib/contexts/environment-context.d.ts +3 -4
- package/dist/lib/contexts/environment-context.js +5 -3
- package/dist/lib/contexts/index.cjs +10 -8
- package/dist/lib/contexts/index.d.cts +2 -3
- package/dist/lib/contexts/index.d.ts +2 -3
- package/dist/lib/contexts/index.js +6 -4
- package/dist/lib/contexts/plugin-context.cjs +2 -2
- package/dist/lib/contexts/plugin-context.d.cts +2 -3
- package/dist/lib/contexts/plugin-context.d.ts +2 -3
- package/dist/lib/contexts/plugin-context.js +1 -1
- 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 +22 -17
- package/dist/lib/index.d.cts +3 -5
- package/dist/lib/index.d.ts +3 -5
- package/dist/lib/index.js +8 -7
- package/dist/lib/{internal-BusfSz8D.d.ts → internal-BfGb9HLc.d.ts} +4 -3
- package/dist/lib/{internal-CPKLmt5v.d.cts → internal-CYMrNGHE.d.cts} +4 -3
- 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 +8 -6
- package/dist/lib/unplugin/factory.d.cts +4 -128
- package/dist/lib/unplugin/factory.d.ts +4 -128
- package/dist/lib/unplugin/factory.js +7 -5
- package/dist/lib/unplugin/helpers.cjs +7 -2
- package/dist/lib/unplugin/helpers.d.cts +9 -2
- package/dist/lib/unplugin/helpers.d.ts +9 -2
- package/dist/lib/unplugin/helpers.js +2 -1
- package/dist/lib/unplugin/index.cjs +15 -10
- package/dist/lib/unplugin/index.d.cts +4 -6
- package/dist/lib/unplugin/index.d.ts +4 -6
- package/dist/lib/unplugin/index.js +8 -7
- package/dist/lib/unplugin/plugin.cjs +4 -3
- package/dist/lib/unplugin/plugin.d.cts +2 -4
- package/dist/lib/unplugin/plugin.d.ts +2 -4
- package/dist/lib/unplugin/plugin.js +3 -2
- 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/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 +6 -6
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.d.cts +4 -3
- package/dist/nuxt.d.ts +4 -3
- package/dist/nuxt.js +7 -7
- package/dist/plugin-utils/{chunk-EJ5XPAJQ.cjs → chunk-2I5L22QB.cjs} +8 -6
- package/dist/plugin-utils/chunk-2I5L22QB.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-AHZPK4Z5.cjs → chunk-4FLR5DY5.cjs} +7 -7
- package/dist/plugin-utils/{chunk-AHZPK4Z5.cjs.map → chunk-4FLR5DY5.cjs.map} +1 -1
- package/dist/plugin-utils/{chunk-BWAX3NRG.cjs → chunk-6YOLE5BT.cjs} +34 -21
- package/dist/plugin-utils/chunk-6YOLE5BT.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-JAG7QJDV.cjs → chunk-ARNNN4GS.cjs} +5 -5
- package/dist/plugin-utils/chunk-ARNNN4GS.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-FTVPZZJO.js → chunk-I3FSMSLD.js} +32 -20
- package/dist/plugin-utils/chunk-I3FSMSLD.js.map +1 -0
- package/dist/plugin-utils/{chunk-N4IXPCGY.js → chunk-RZAQTG45.js} +3 -3
- package/dist/plugin-utils/{chunk-N4IXPCGY.js.map → chunk-RZAQTG45.js.map} +1 -1
- package/dist/plugin-utils/{chunk-JCX2UJYO.js → chunk-XDURJUGS.js} +5 -3
- package/dist/plugin-utils/chunk-XDURJUGS.js.map +1 -0
- package/dist/plugin-utils/{chunk-WZCGJ7JR.js → chunk-Z2BYI6KW.js} +3 -3
- package/dist/plugin-utils/chunk-Z2BYI6KW.js.map +1 -0
- package/dist/plugin-utils/{context-GdayEWcl.d.cts → context-BQTlTcfV.d.cts} +444 -76
- package/dist/plugin-utils/{context-GdayEWcl.d.ts → context-BQTlTcfV.d.ts} +444 -76
- package/dist/plugin-utils/context-helpers.d.cts +11 -2
- package/dist/plugin-utils/context-helpers.d.ts +11 -2
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +13 -4
- package/dist/plugin-utils/enforce.d.ts +13 -4
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +11 -2
- package/dist/plugin-utils/extend.d.ts +11 -2
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.d.cts +11 -2
- package/dist/plugin-utils/get-config-path.d.ts +11 -2
- package/dist/plugin-utils/helpers.cjs +25 -21
- package/dist/plugin-utils/helpers.d.cts +36 -32
- package/dist/plugin-utils/helpers.d.ts +36 -32
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +31 -27
- package/dist/plugin-utils/index.d.cts +12 -3
- package/dist/plugin-utils/index.d.ts +12 -3
- package/dist/plugin-utils/index.js +4 -4
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +11 -2
- package/dist/plugin-utils/merge.d.ts +11 -2
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.d.cts +11 -2
- package/dist/plugin-utils/paths.d.ts +11 -2
- package/dist/rolldown.cjs +8 -8
- package/dist/rolldown.d.cts +6 -5
- package/dist/rolldown.d.ts +6 -5
- package/dist/rolldown.js +5 -5
- package/dist/rollup.cjs +5 -5
- package/dist/rollup.d.cts +6 -5
- package/dist/rollup.d.ts +6 -5
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +5 -5
- package/dist/rspack.d.cts +6 -5
- package/dist/rspack.d.ts +6 -5
- package/dist/rspack.js +4 -4
- package/dist/tsdown.cjs +6 -6
- package/dist/tsdown.js +5 -5
- package/dist/tsup.cjs +6 -6
- package/dist/tsup.js +5 -5
- package/dist/types/api.d.cts +5 -5
- package/dist/types/api.d.ts +5 -5
- package/dist/types/babel.d.cts +6 -5
- package/dist/types/babel.d.ts +6 -5
- package/dist/types/build.cjs +7 -3
- package/dist/types/build.d.cts +19 -13
- package/dist/types/build.d.ts +19 -13
- package/dist/types/build.js +1 -1
- package/dist/types/commands.d.cts +4 -3
- package/dist/types/commands.d.ts +4 -3
- package/dist/types/config.d.cts +3 -2
- package/dist/types/config.d.ts +3 -2
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +3 -2
- package/dist/types/context.d.ts +3 -2
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.cjs +8 -1
- package/dist/types/hooks.d.cts +15 -14
- package/dist/types/hooks.d.ts +15 -14
- package/dist/types/hooks.js +2 -1
- package/dist/types/index.cjs +19 -11
- package/dist/types/index.d.cts +4 -5
- package/dist/types/index.d.ts +4 -5
- package/dist/types/index.js +4 -4
- package/dist/types/internal.d.cts +8 -6
- package/dist/types/internal.d.ts +8 -6
- package/dist/types/plugin.cjs +7 -7
- package/dist/types/plugin.d.cts +3 -2
- package/dist/types/plugin.d.ts +3 -2
- package/dist/types/plugin.js +2 -2
- package/dist/types/resolved.d.cts +2 -1
- package/dist/types/resolved.d.ts +2 -1
- package/dist/types/unplugin.d.cts +14 -39
- package/dist/types/unplugin.d.ts +14 -39
- package/dist/unloader.cjs +5 -5
- package/dist/unloader.d.cts +4 -3
- package/dist/unloader.d.ts +4 -3
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +17 -15
- package/dist/unplugin.d.cts +18 -13
- package/dist/unplugin.d.ts +18 -13
- package/dist/unplugin.js +9 -13
- package/dist/vite.cjs +8 -8
- package/dist/vite.d.cts +6 -5
- package/dist/vite.d.ts +6 -5
- package/dist/vite.js +5 -5
- package/dist/webpack.cjs +8 -8
- package/dist/webpack.d.cts +6 -5
- package/dist/webpack.d.ts +6 -5
- package/dist/webpack.js +5 -5
- package/package.json +7 -4
- package/dist/api-D0gA4eJU.d.cts +0 -142
- package/dist/api-cYTlb0MO.d.ts +0 -142
- package/dist/chunk-HJW7OH6E.js +0 -3
- package/dist/chunk-J7SXQCBV.cjs +0 -12
- package/dist/chunk-U2RJRKLT.js +0 -15
- package/dist/chunk-WVLFG7L6.cjs +0 -12
- package/dist/chunk-XOMY3USD.cjs +0 -17
- package/dist/chunk-XZO6ZJQP.cjs +0 -4
- package/dist/lib/api-BeWRTlF3.d.cts +0 -141
- package/dist/lib/api-C00m3GB0.d.ts +0 -141
- package/dist/lib/chunk-3RTOKGVV.cjs.map +0 -1
- package/dist/lib/chunk-A4RSMLXW.cjs +0 -13
- package/dist/lib/chunk-A4RSMLXW.cjs.map +0 -1
- package/dist/lib/chunk-C7KNYLNP.cjs.map +0 -1
- package/dist/lib/chunk-DLX6BNNE.cjs +0 -196
- package/dist/lib/chunk-DLX6BNNE.cjs.map +0 -1
- package/dist/lib/chunk-GUZKITBG.js.map +0 -1
- package/dist/lib/chunk-HDUSUF6L.js +0 -11
- package/dist/lib/chunk-HDUSUF6L.js.map +0 -1
- package/dist/lib/chunk-MZQFHBHY.cjs.map +0 -1
- package/dist/lib/chunk-POY47Z36.js.map +0 -1
- package/dist/lib/chunk-XAALLEOG.js.map +0 -1
- package/dist/lib/chunk-XHDL2XZB.js +0 -194
- package/dist/lib/chunk-XHDL2XZB.js.map +0 -1
- package/dist/lib/unplugin-BKtwOoMk.d.ts +0 -18
- package/dist/lib/unplugin-BWG1mWFO.d.cts +0 -18
- package/dist/plugin-utils/chunk-BWAX3NRG.cjs.map +0 -1
- package/dist/plugin-utils/chunk-EJ5XPAJQ.cjs.map +0 -1
- package/dist/plugin-utils/chunk-FTVPZZJO.js.map +0 -1
- package/dist/plugin-utils/chunk-JAG7QJDV.cjs.map +0 -1
- package/dist/plugin-utils/chunk-JCX2UJYO.js.map +0 -1
- package/dist/plugin-utils/chunk-WZCGJ7JR.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { MaybePromise, NonUndefined, AnyFunction, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
1
2
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
3
|
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
3
|
-
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
4
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
5
5
|
import { Worker } from 'jest-worker';
|
|
6
6
|
import { Jiti } from 'jiti';
|
|
@@ -10,7 +10,7 @@ import { Range } from 'semver';
|
|
|
10
10
|
import { Project } from 'ts-morph';
|
|
11
11
|
import { RequestInfo, Response } from 'undici';
|
|
12
12
|
import { Unimport } from 'unimport';
|
|
13
|
-
import {
|
|
13
|
+
import { UnpluginOptions as UnpluginOptions$1, HookFilter, UnpluginContextMeta, TransformResult as TransformResult$1, ExternalIdResult, UnpluginMessage, UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
14
14
|
import { PluginPass, PluginObj, PluginItem, TransformOptions, transformAsync } from '@babel/core';
|
|
15
15
|
import { Format } from '@storm-software/build-tools/types';
|
|
16
16
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -21,9 +21,10 @@ import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
|
|
|
21
21
|
import { DateString } from 'compatx';
|
|
22
22
|
import { ResolvedPreviewOptions, PreviewOptions, ResolvedConfig as ResolvedConfig$2 } from 'vite';
|
|
23
23
|
import { BabelAPI } from '@babel/helper-plugin-utils';
|
|
24
|
+
import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant, BuildConfig, BuildResolvedConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig } from './types/build.js';
|
|
24
25
|
import { StoragePort, StoragePreset, VirtualFileSystemInterface, ResolveOptions, VirtualFile, WriteOptions } from './types/fs.js';
|
|
25
26
|
import { ArrayValues } from '@stryke/types/array';
|
|
26
|
-
import {
|
|
27
|
+
import { LoadResult } from 'rollup';
|
|
27
28
|
import { TSConfig, ParsedTypeScriptConfig } from './types/tsconfig.js';
|
|
28
29
|
|
|
29
30
|
interface NamedImportDefinition {
|
|
@@ -169,7 +170,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
169
170
|
* Configuration provided to build processes
|
|
170
171
|
*
|
|
171
172
|
* @remarks
|
|
172
|
-
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link
|
|
173
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuilderVariant | build variant}.
|
|
173
174
|
*/
|
|
174
175
|
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
175
176
|
/**
|
|
@@ -189,7 +190,7 @@ type TsupResolvedConfig = ResolvedConfig<TsupUserConfig>;
|
|
|
189
190
|
type TsdownResolvedConfig = ResolvedConfig<TsdownUserConfig>;
|
|
190
191
|
type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
|
|
191
192
|
type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
|
|
192
|
-
type InferResolvedConfig<TBuildVariant extends
|
|
193
|
+
type InferResolvedConfig<TBuildVariant extends BuilderVariant | undefined> = TBuildVariant extends undefined ? ResolvedConfig : TBuildVariant extends "webpack" ? WebpackResolvedConfig : TBuildVariant extends "rspack" ? RspackResolvedConfig : TBuildVariant extends "vite" ? ViteResolvedConfig : TBuildVariant extends "esbuild" ? ESBuildResolvedConfig : TBuildVariant extends "unbuild" ? UnbuildResolvedConfig : TBuildVariant extends "tsup" ? TsupResolvedConfig : TBuildVariant extends "tsdown" ? TsdownResolvedConfig : TBuildVariant extends "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
|
|
193
194
|
declare type __ΩResolvedEntryTypeDefinition = any[];
|
|
194
195
|
declare type __ΩBabelResolvedConfig = any[];
|
|
195
196
|
declare type __ΩEnvironmentResolvedConfig = any[];
|
|
@@ -208,7 +209,32 @@ declare type __ΩUnbuildResolvedConfig = any[];
|
|
|
208
209
|
declare type __ΩFarmResolvedConfig = any[];
|
|
209
210
|
declare type __ΩInferResolvedConfig = any[];
|
|
210
211
|
|
|
211
|
-
interface
|
|
212
|
+
interface UnpluginOptions<TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> extends UnpluginOptions$1 {
|
|
213
|
+
/**
|
|
214
|
+
* An API object that can be used for inter-plugin communication.
|
|
215
|
+
*
|
|
216
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
217
|
+
*/
|
|
218
|
+
api: API<InferResolvedConfig<TUnpluginBuilderVariant>>;
|
|
219
|
+
}
|
|
220
|
+
type InferUnpluginOptions<TContext extends Context = Context, TBuilderVariant extends BuilderVariant = BuilderVariant, TUnpluginVariant extends InferUnpluginVariant<TBuilderVariant> = InferUnpluginVariant<TBuilderVariant>> = {
|
|
221
|
+
[TKey in keyof Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant]]?: Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant][TKey] extends infer THandler | {
|
|
222
|
+
handler: infer THandler;
|
|
223
|
+
} ? THandler extends (this: infer TOriginalContext, ...args: infer TArgs) => infer TReturn ? PluginHook<(this: TOriginalContext & TContext, ...args: TArgs) => MaybePromise<TReturn>, keyof HookFilter> : Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant][TKey] : Required<UnpluginOptions<TUnpluginVariant>>[TUnpluginVariant][TKey];
|
|
224
|
+
};
|
|
225
|
+
type UnpluginUserConfig<TBuilderVariant extends BuilderVariant | undefined> = InferUserConfig<TBuilderVariant> & {
|
|
226
|
+
/**
|
|
227
|
+
* The meta information for the unplugin context
|
|
228
|
+
*/
|
|
229
|
+
unplugin: UnpluginContextMeta;
|
|
230
|
+
};
|
|
231
|
+
type UnpluginFactory<TUnpluginBuilderVariant extends UnpluginBuilderVariant> = (options: Partial<InferUserConfig<TUnpluginBuilderVariant>>, meta: UnpluginContextMeta) => UnpluginOptions;
|
|
232
|
+
declare type __ΩUnpluginOptions = any[];
|
|
233
|
+
declare type __ΩInferUnpluginOptions = any[];
|
|
234
|
+
declare type __ΩUnpluginUserConfig = any[];
|
|
235
|
+
declare type __ΩUnpluginFactory = any[];
|
|
236
|
+
|
|
237
|
+
interface PluginHookObject<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> {
|
|
212
238
|
/**
|
|
213
239
|
* The order in which the plugin should be applied.
|
|
214
240
|
*/
|
|
@@ -222,7 +248,7 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
|
|
|
222
248
|
*/
|
|
223
249
|
handler: THookFunction;
|
|
224
250
|
}
|
|
225
|
-
type PluginHook<THookFunction extends
|
|
251
|
+
type PluginHook<THookFunction extends AnyFunction, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
|
|
226
252
|
/**
|
|
227
253
|
* A result returned by the plugin from the `types` hook that describes the declaration types output file.
|
|
228
254
|
*/
|
|
@@ -230,11 +256,9 @@ interface TypesResult {
|
|
|
230
256
|
directives?: string[];
|
|
231
257
|
code: string;
|
|
232
258
|
}
|
|
233
|
-
type
|
|
234
|
-
[
|
|
235
|
-
}
|
|
236
|
-
type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
|
|
237
|
-
interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
|
|
259
|
+
type PluginHookFunctions<TContext extends PluginContext> = {
|
|
260
|
+
[TCommandType in CommandType]: (this: TContext) => MaybePromise<void>;
|
|
261
|
+
} & {
|
|
238
262
|
/**
|
|
239
263
|
* A function that returns configuration options to be merged with the build context's options.
|
|
240
264
|
*
|
|
@@ -249,7 +273,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
249
273
|
* @param config - The partial configuration object to be modified.
|
|
250
274
|
* @returns A promise that resolves to a partial configuration object.
|
|
251
275
|
*/
|
|
252
|
-
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<
|
|
276
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial<TContext["config"]> & Record<string, any>>;
|
|
253
277
|
/**
|
|
254
278
|
* Modify environment configs before it's resolved. The hook can either mutate the passed-in environment config directly, or return a partial config object that will be deeply merged into existing config.
|
|
255
279
|
*
|
|
@@ -311,7 +335,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
311
335
|
* @param id - The identifier of the source code.
|
|
312
336
|
* @returns A promise that resolves when the hook is complete.
|
|
313
337
|
*/
|
|
314
|
-
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<
|
|
338
|
+
load: (this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<LoadResult>;
|
|
315
339
|
/**
|
|
316
340
|
* A hook that is called to resolve the identifier of the source code.
|
|
317
341
|
*
|
|
@@ -331,67 +355,18 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
331
355
|
* @returns A promise that resolves when the hook is complete.
|
|
332
356
|
*/
|
|
333
357
|
writeBundle: (this: TContext) => MaybePromise<void>;
|
|
334
|
-
}
|
|
335
|
-
type BuildPlugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant, TOptions extends Required<UnpluginOptions>[TBuildVariant] = Required<UnpluginOptions>[TBuildVariant]> = {
|
|
336
|
-
[TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike ? (this: ThisParameterType<TOptions[TKey]> & TContext, ...args: Parameters<TOptions[TKey]>) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>> : TOptions[TKey];
|
|
337
|
-
};
|
|
338
|
-
type ExternalPluginHookFunctionsVariant<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant> = {
|
|
339
|
-
[TKey in keyof BuildPlugin<TContext, TBuildVariant> & string as `${TBuildVariant}:${TKey}`]: BuildPlugin<TContext, TBuildVariant>[TKey];
|
|
340
358
|
};
|
|
341
|
-
type
|
|
342
|
-
|
|
343
|
-
type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
344
|
-
[TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<BasePluginHookFunctions<TContext>[TKey]>;
|
|
359
|
+
type PluginHooks<TContext extends PluginContext> = {
|
|
360
|
+
[TPluginHook in keyof PluginHookFunctions<TContext>]?: PluginHook<PluginHookFunctions<TContext>[TPluginHook]>;
|
|
345
361
|
} & {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
* @remarks
|
|
350
|
-
* Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
|
|
351
|
-
*
|
|
352
|
-
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
|
|
353
|
-
*
|
|
354
|
-
* @see https://vitejs.dev/guide/api-plugin#config
|
|
355
|
-
*
|
|
356
|
-
* @param this - The build context.
|
|
357
|
-
* @param config - The partial configuration object to be modified.
|
|
358
|
-
* @returns A promise that resolves to a partial configuration object.
|
|
359
|
-
*/
|
|
360
|
-
config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
|
|
361
|
-
/**
|
|
362
|
-
* A hook that is called to transform the source code.
|
|
363
|
-
*
|
|
364
|
-
* @param this - The build context, unplugin build context, and unplugin context.
|
|
365
|
-
* @param code - The source code to transform.
|
|
366
|
-
* @param id - The identifier of the source code.
|
|
367
|
-
* @returns A promise that resolves when the hook is complete.
|
|
368
|
-
*/
|
|
369
|
-
transform: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, code: string, id: string) => MaybePromise<TransformResult$1>, "code" | "id">;
|
|
370
|
-
/**
|
|
371
|
-
* A hook that is called to load the source code.
|
|
372
|
-
*
|
|
373
|
-
* @param this - The build context, unplugin build context, and unplugin context.
|
|
374
|
-
* @param id - The identifier of the source code.
|
|
375
|
-
* @returns A promise that resolves when the hook is complete.
|
|
376
|
-
*/
|
|
377
|
-
load: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string) => MaybePromise<TransformResult$1>, "id">;
|
|
378
|
-
/**
|
|
379
|
-
* A hook that is called to resolve the identifier of the source code.
|
|
380
|
-
*
|
|
381
|
-
* @param this - The build context, unplugin build context, and unplugin context.
|
|
382
|
-
* @param id - The identifier of the source code.
|
|
383
|
-
* @param importer - The importer of the source code.
|
|
384
|
-
* @param options - The options for resolving the identifier.
|
|
385
|
-
* @returns A promise that resolves when the hook is complete.
|
|
386
|
-
*/
|
|
387
|
-
resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
388
|
-
isEntry: boolean;
|
|
389
|
-
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
362
|
+
transform: PluginHook<PluginHookFunctions<TContext>["transform"], "code" | "id">;
|
|
363
|
+
load: PluginHook<PluginHookFunctions<TContext>["load"], "id">;
|
|
364
|
+
resolveId: PluginHook<PluginHookFunctions<TContext>["resolveId"], "id">;
|
|
390
365
|
};
|
|
391
|
-
type
|
|
392
|
-
[
|
|
366
|
+
type DeepPartial<T> = {
|
|
367
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
393
368
|
};
|
|
394
|
-
|
|
369
|
+
type Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> = Partial<PluginHooks<TContext>> & {
|
|
395
370
|
/**
|
|
396
371
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
397
372
|
*/
|
|
@@ -439,29 +414,40 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
|
|
|
439
414
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
440
415
|
*/
|
|
441
416
|
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<TContext>;
|
|
442
|
-
|
|
417
|
+
/**
|
|
418
|
+
* A function that returns configuration options to be merged with the build context's options.
|
|
419
|
+
*
|
|
420
|
+
* @remarks
|
|
421
|
+
* Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
|
|
422
|
+
*
|
|
423
|
+
* @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
|
|
424
|
+
*
|
|
425
|
+
* @see https://vitejs.dev/guide/api-plugin#config
|
|
426
|
+
*
|
|
427
|
+
* @param this - The build context.
|
|
428
|
+
* @param config - The partial configuration object to be modified.
|
|
429
|
+
* @returns A promise that resolves to a partial configuration object.
|
|
430
|
+
*/
|
|
431
|
+
config?: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<DeepPartial<TContext["config"]> & Record<string, any>>> | (DeepPartial<TContext["config"]> & Record<string, any>);
|
|
432
|
+
} & {
|
|
433
|
+
[TBuilderVariant in BuilderVariant]?: InferUnpluginOptions<TContext, TBuilderVariant>;
|
|
434
|
+
};
|
|
443
435
|
declare const PLUGIN_NON_HOOK_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment"];
|
|
444
|
-
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> |
|
|
445
|
-
declare const
|
|
446
|
-
type
|
|
447
|
-
declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment", "new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle", ...
|
|
448
|
-
type
|
|
436
|
+
type PluginNonHookFields = ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS> | UnpluginBuilderVariant;
|
|
437
|
+
declare const PLUGIN_HOOKS_FIELDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle"];
|
|
438
|
+
type PluginHookFields<TContext extends PluginContext = PluginContext> = keyof PluginHookFunctions<TContext>;
|
|
439
|
+
declare const KNOWN_PLUGIN_FIELDS: readonly ["name", "api", "enforce", "dedupe", "applyToEnvironment", "new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize", "config", "configEnvironment", "configResolved", "types", "buildStart", "buildEnd", "transform", "load", "resolveId", "writeBundle", ...BuilderVariant[]];
|
|
440
|
+
type PluginFields = ArrayValues<typeof KNOWN_PLUGIN_FIELDS>;
|
|
449
441
|
|
|
450
442
|
declare type __ΩPluginHookObject = any[];
|
|
451
443
|
declare type __ΩPluginHook = any[];
|
|
452
444
|
declare type __ΩTypesResult = any[];
|
|
453
|
-
declare type __ΩConfigResult = any[];
|
|
454
|
-
declare type __ΩBasePluginHookFunctions = any[];
|
|
455
|
-
declare type __ΩBuildPlugin = any[];
|
|
456
|
-
declare type __ΩExternalPluginHookFunctionsVariant = any[];
|
|
457
|
-
declare type __ΩExternalPluginHookFunctions = any[];
|
|
458
445
|
declare type __ΩPluginHookFunctions = any[];
|
|
459
446
|
declare type __ΩPluginHooks = any[];
|
|
460
|
-
declare type __ΩPluginBuildPlugins = any[];
|
|
461
447
|
declare type __ΩPlugin = any[];
|
|
462
448
|
declare type __ΩPluginNonHookFields = any[];
|
|
463
|
-
declare type __Ω
|
|
464
|
-
declare type __Ω
|
|
449
|
+
declare type __ΩPluginHookFields = any[];
|
|
450
|
+
declare type __ΩPluginFields = any[];
|
|
465
451
|
|
|
466
452
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
467
453
|
/**
|
|
@@ -487,7 +473,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
487
473
|
* A configuration tuple for a Powerlines plugin.
|
|
488
474
|
*/
|
|
489
475
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
|
|
490
|
-
type PartialPlugin<
|
|
476
|
+
type PartialPlugin<TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
491
477
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext> | PartialPlugin<TContext>[]>;
|
|
492
478
|
type ProjectType = "application" | "library";
|
|
493
479
|
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
@@ -833,7 +819,7 @@ type UnbuildUserConfig = UserConfig<UnbuildBuildConfig, UnbuildResolvedBuildConf
|
|
|
833
819
|
type TsupUserConfig = UserConfig<TsupBuildConfig, TsupResolvedBuildConfig, "tsup">;
|
|
834
820
|
type TsdownUserConfig = UserConfig<TsdownBuildConfig, TsdownResolvedBuildConfig, "tsdown">;
|
|
835
821
|
type FarmUserConfig = UserConfig<FarmBuildConfig, FarmResolvedBuildConfig, "farm">;
|
|
836
|
-
type InferUserConfig<
|
|
822
|
+
type InferUserConfig<TBuilderVariant extends BuilderVariant | undefined> = TBuilderVariant extends "webpack" ? WebpackUserConfig : TBuilderVariant extends "rspack" ? RspackUserConfig : TBuilderVariant extends "vite" ? ViteUserConfig : TBuilderVariant extends "esbuild" ? ESBuildUserConfig : TBuilderVariant extends "unbuild" ? UnbuildUserConfig : TBuilderVariant extends "tsup" ? TsupUserConfig : TBuilderVariant extends "tsdown" ? TsdownUserConfig : TBuilderVariant extends "rolldown" ? RolldownUserConfig : TBuilderVariant extends "rollup" ? RollupUserConfig : TBuilderVariant extends "farm" ? FarmUserConfig : UserConfig;
|
|
837
823
|
type InitialUserConfig<TUserConfig extends UserConfig = UserConfig> = Partial<TUserConfig> & {
|
|
838
824
|
root: string;
|
|
839
825
|
};
|
|
@@ -955,46 +941,54 @@ declare type __ΩDeployInlineConfig = any[];
|
|
|
955
941
|
declare type __ΩConfigEnv = any[];
|
|
956
942
|
declare type __ΩAnyUserConfig = any[];
|
|
957
943
|
|
|
958
|
-
type
|
|
959
|
-
|
|
960
|
-
type
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
944
|
+
type HookListOrders = "preOrdered" | "preEnforced" | "normal" | "postEnforced" | "postOrdered";
|
|
945
|
+
declare const HOOKS_LIST_ORDERS: readonly ["preOrdered", "preEnforced", "normal", "postEnforced", "postOrdered"];
|
|
946
|
+
type UnpluginHookFunctions<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> = Required<UnpluginOptions$1>[TUnpluginBuilderVariant][TField] extends infer THandler | {
|
|
947
|
+
handler: infer THandler;
|
|
948
|
+
} ? THandler extends (this: infer THandlerOriginalContext, ...args: infer THandlerArgs) => infer THandlerReturn ? (this: THandlerOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerArgs) => THandlerReturn : THandler extends {
|
|
949
|
+
handler: infer THandlerFunction;
|
|
950
|
+
} ? THandlerFunction extends (this: infer THandlerFunctionOriginalContext, ...args: infer THandlerFunctionArgs) => infer THandlerFunctionReturn ? (this: THandlerFunctionOriginalContext & WithUnpluginBuildContext<TContext>, ...args: THandlerFunctionArgs) => THandlerFunctionReturn : never : never : never;
|
|
951
|
+
interface PluginHooksListItem<TContext extends PluginContext = PluginContext, TFields extends PluginHookFields<TContext> = PluginHookFields<TContext>> {
|
|
965
952
|
plugin: Plugin<TContext>;
|
|
953
|
+
handler: PluginHookFunctions<TContext>[TFields];
|
|
966
954
|
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
postEnforced?: BaseHooksListItem<TContext, TKey>[];
|
|
972
|
-
postOrdered?: BaseHooksListItem<TContext, TKey>[];
|
|
973
|
-
}
|
|
974
|
-
interface ExternalHooksListItem<TContext extends PluginContext = PluginContext, TKey extends ExternalHookKeys<TContext> = ExternalHookKeys<TContext>> {
|
|
955
|
+
type PluginHooksList<TContext extends PluginContext = PluginContext, TFields extends PluginHookFields<TContext> = PluginHookFields<TContext>> = {
|
|
956
|
+
[TKey in HookListOrders]?: PluginHooksListItem<TContext, TFields>[] | undefined;
|
|
957
|
+
};
|
|
958
|
+
interface UnpluginHooksListItem<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] = keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant]> {
|
|
975
959
|
plugin: Plugin<TContext>;
|
|
976
|
-
handler:
|
|
960
|
+
handler: UnpluginHookFunctions<TContext, TUnpluginBuilderVariant, TField>;
|
|
977
961
|
}
|
|
962
|
+
type UnpluginHookList<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant, TField extends keyof UnpluginOptions$1[TUnpluginBuilderVariant] = keyof UnpluginOptions$1[TUnpluginBuilderVariant]> = {
|
|
963
|
+
[TKey in HookListOrders]?: UnpluginHooksListItem<TContext, TUnpluginBuilderVariant, TField>[] | undefined;
|
|
964
|
+
};
|
|
965
|
+
type UnpluginHookVariantField<TContext extends PluginContext = PluginContext, TUnpluginBuilderVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant> = {
|
|
966
|
+
[TKey in keyof UnpluginOptions$1[TUnpluginBuilderVariant]]?: UnpluginHookList<TContext, TUnpluginBuilderVariant, TKey>;
|
|
967
|
+
};
|
|
968
|
+
type UnpluginHookVariant<TContext extends PluginContext = PluginContext> = {
|
|
969
|
+
[TKey in UnpluginBuilderVariant]?: UnpluginHookVariantField<TContext, TKey>;
|
|
970
|
+
};
|
|
971
|
+
type HookFields<TContext extends PluginContext = PluginContext> = PluginHookFields<TContext> | UnpluginBuilderVariant;
|
|
978
972
|
type HooksList<TContext extends PluginContext = PluginContext> = {
|
|
979
|
-
[
|
|
980
|
-
} & {
|
|
981
|
-
[TKey in ExternalHookKeys<TContext>]?: ExternalHooksListItem<TContext, TKey>[];
|
|
973
|
+
[TField in HookFields<TContext>]?: TField extends PluginHookFields<TContext> ? PluginHooksList<TContext, TField> : TField extends UnpluginBuilderVariant ? UnpluginHookVariant<TContext>[TField] : never;
|
|
982
974
|
};
|
|
983
|
-
type
|
|
984
|
-
type
|
|
985
|
-
type
|
|
986
|
-
type
|
|
987
|
-
|
|
988
|
-
declare type __Ω
|
|
989
|
-
declare type __Ω
|
|
990
|
-
declare type __Ω
|
|
991
|
-
declare type __Ω
|
|
992
|
-
declare type __Ω
|
|
993
|
-
declare type __Ω
|
|
994
|
-
declare type __Ω
|
|
995
|
-
declare type __Ω
|
|
975
|
+
type InferHooksListItem<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] ? UnpluginHooksListItem<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHooksListItem<TContext, TKey> : never;
|
|
976
|
+
type InferHookFunction<TContext extends PluginContext, TKey extends string> = TKey extends `${infer TUnpluginBuilderVariant}:${infer TUnpluginField}` ? TUnpluginBuilderVariant extends UnpluginBuilderVariant ? TUnpluginField extends keyof Required<UnpluginOptions$1>[TUnpluginBuilderVariant] ? UnpluginHookFunctions<TContext, TUnpluginBuilderVariant, TUnpluginField> : never : never : TKey extends keyof PluginHookFunctions<TContext> ? PluginHookFunctions<TContext>[TKey] : never;
|
|
977
|
+
type InferHookReturnType<TContext extends PluginContext, TKey extends string> = ReturnType<InferHookFunction<TContext, TKey>>;
|
|
978
|
+
type InferHookParameters<TContext extends PluginContext, TKey extends string> = Parameters<InferHookFunction<TContext, TKey>>;
|
|
979
|
+
type InferHookThisType<TContext extends PluginContext, TKey extends string> = ThisParameterType<InferHookFunction<TContext, TKey>>;
|
|
980
|
+
declare type __ΩHookListOrders = any[];
|
|
981
|
+
declare type __ΩUnpluginHookFunctions = any[];
|
|
982
|
+
declare type __ΩPluginHooksListItem = any[];
|
|
983
|
+
declare type __ΩPluginHooksList = any[];
|
|
984
|
+
declare type __ΩUnpluginHooksListItem = any[];
|
|
985
|
+
declare type __ΩUnpluginHookList = any[];
|
|
986
|
+
declare type __ΩUnpluginHookVariantField = any[];
|
|
987
|
+
declare type __ΩUnpluginHookVariant = any[];
|
|
988
|
+
declare type __ΩHookFields = any[];
|
|
996
989
|
declare type __ΩHooksList = any[];
|
|
997
|
-
declare type __Ω
|
|
990
|
+
declare type __ΩInferHooksListItem = any[];
|
|
991
|
+
declare type __ΩInferHookFunction = any[];
|
|
998
992
|
declare type __ΩInferHookReturnType = any[];
|
|
999
993
|
declare type __ΩInferHookParameters = any[];
|
|
1000
994
|
declare type __ΩInferHookThisType = any[];
|
|
@@ -1491,10 +1485,10 @@ interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = Reso
|
|
|
1491
1485
|
plugin: Plugin<PluginContext<TResolvedConfig>>;
|
|
1492
1486
|
context: PluginContext<TResolvedConfig>;
|
|
1493
1487
|
}
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1488
|
+
type SelectHookResultItem<TContext extends PluginContext, TKey extends string> = InferHooksListItem<TContext, TKey> & {
|
|
1489
|
+
context: TContext;
|
|
1490
|
+
};
|
|
1491
|
+
type SelectHookResult<TContext extends PluginContext, TKey extends string> = SelectHookResultItem<TContext, TKey>[];
|
|
1498
1492
|
interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
1499
1493
|
/**
|
|
1500
1494
|
* The expected plugins options for the Powerlines project.
|
|
@@ -1518,7 +1512,7 @@ interface EnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedCo
|
|
|
1518
1512
|
/**
|
|
1519
1513
|
* Retrieves the hook handlers for a specific hook name
|
|
1520
1514
|
*/
|
|
1521
|
-
selectHooks: <TKey extends
|
|
1515
|
+
selectHooks: <TKey extends string>(key: TKey, options?: SelectHooksOptions) => SelectHookResult<PluginContext<TResolvedConfig>, TKey>;
|
|
1522
1516
|
}
|
|
1523
1517
|
interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig>, UnpluginContext {
|
|
1524
1518
|
/**
|
|
@@ -1534,6 +1528,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1534
1528
|
logger: LogFn;
|
|
1535
1529
|
}
|
|
1536
1530
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1531
|
+
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
1537
1532
|
declare type __ΩLogLevel = any[];
|
|
1538
1533
|
declare type __ΩWorkerProcess = any[];
|
|
1539
1534
|
declare type __ΩMetaInfo = any[];
|
|
@@ -1551,9 +1546,149 @@ declare type __ΩUnresolvedContext = any[];
|
|
|
1551
1546
|
declare type __ΩContext = any[];
|
|
1552
1547
|
declare type __ΩAPIContext = any[];
|
|
1553
1548
|
declare type __ΩEnvironmentContextPlugin = any[];
|
|
1554
|
-
declare type __Ω
|
|
1549
|
+
declare type __ΩSelectHookResultItem = any[];
|
|
1550
|
+
declare type __ΩSelectHookResult = any[];
|
|
1555
1551
|
declare type __ΩEnvironmentContext = any[];
|
|
1556
1552
|
declare type __ΩPluginContext = any[];
|
|
1557
1553
|
declare type __ΩBuildPluginContext = any[];
|
|
1554
|
+
declare type __ΩWithUnpluginBuildContext = any[];
|
|
1555
|
+
|
|
1556
|
+
type CallHookOptions = SelectHooksOptions & (({
|
|
1557
|
+
/**
|
|
1558
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
1559
|
+
*
|
|
1560
|
+
* @defaultValue true
|
|
1561
|
+
*/
|
|
1562
|
+
sequential?: true;
|
|
1563
|
+
} & ({
|
|
1564
|
+
/**
|
|
1565
|
+
* How to handle multiple return values from hooks.
|
|
1566
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
1567
|
+
* - "first": Return the first non-undefined value.
|
|
1568
|
+
*
|
|
1569
|
+
* @remarks
|
|
1570
|
+
* Merging only works if the return values are objects.
|
|
1571
|
+
*
|
|
1572
|
+
* @defaultValue "merge"
|
|
1573
|
+
*/
|
|
1574
|
+
result: "first";
|
|
1575
|
+
} | {
|
|
1576
|
+
/**
|
|
1577
|
+
* How to handle multiple return values from hooks.
|
|
1578
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
1579
|
+
* - "first": Return the first non-undefined value.
|
|
1580
|
+
*
|
|
1581
|
+
* @remarks
|
|
1582
|
+
* Merging only works if the return values are objects.
|
|
1583
|
+
*
|
|
1584
|
+
* @defaultValue "merge"
|
|
1585
|
+
*/
|
|
1586
|
+
result?: "merge" | "last";
|
|
1587
|
+
/**
|
|
1588
|
+
* 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
|
|
1589
|
+
*/
|
|
1590
|
+
asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
|
|
1591
|
+
})) | {
|
|
1592
|
+
/**
|
|
1593
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
1594
|
+
*/
|
|
1595
|
+
sequential: false;
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Powerlines API Interface
|
|
1600
|
+
*/
|
|
1601
|
+
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
1602
|
+
/**
|
|
1603
|
+
* The Powerlines shared API context
|
|
1604
|
+
*/
|
|
1605
|
+
context: APIContext<TResolvedConfig>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Prepare the Powerlines API
|
|
1608
|
+
*
|
|
1609
|
+
* @remarks
|
|
1610
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
1611
|
+
*
|
|
1612
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
1613
|
+
*/
|
|
1614
|
+
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
1615
|
+
/**
|
|
1616
|
+
* Create a new Powerlines project
|
|
1617
|
+
*
|
|
1618
|
+
* @remarks
|
|
1619
|
+
* This method will create a new Powerlines project in the current directory.
|
|
1620
|
+
*
|
|
1621
|
+
* @param inlineConfig - The inline configuration for the new command
|
|
1622
|
+
* @returns A promise that resolves when the project has been created
|
|
1623
|
+
*/
|
|
1624
|
+
new: (inlineConfig: NewInlineConfig) => Promise<void>;
|
|
1625
|
+
/**
|
|
1626
|
+
* Clean any previously prepared artifacts
|
|
1627
|
+
*
|
|
1628
|
+
* @remarks
|
|
1629
|
+
* This method will remove the previous Powerlines artifacts from the project.
|
|
1630
|
+
*
|
|
1631
|
+
* @param inlineConfig - The inline configuration for the clean command
|
|
1632
|
+
* @returns A promise that resolves when the clean command has completed
|
|
1633
|
+
*/
|
|
1634
|
+
clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Lint the project source code
|
|
1637
|
+
*
|
|
1638
|
+
* @param inlineConfig - The inline configuration for the lint command
|
|
1639
|
+
* @returns A promise that resolves when the lint command has completed
|
|
1640
|
+
*/
|
|
1641
|
+
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Build the project
|
|
1644
|
+
*
|
|
1645
|
+
* @remarks
|
|
1646
|
+
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
1647
|
+
*
|
|
1648
|
+
* @param inlineConfig - The inline configuration for the build command
|
|
1649
|
+
* @returns A promise that resolves when the build command has completed
|
|
1650
|
+
*/
|
|
1651
|
+
build: (inlineConfig: BuildInlineConfig) => Promise<void>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Prepare the documentation for the project
|
|
1654
|
+
*
|
|
1655
|
+
* @param inlineConfig - The inline configuration for the docs command
|
|
1656
|
+
* @returns A promise that resolves when the documentation generation has completed
|
|
1657
|
+
*/
|
|
1658
|
+
docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
|
|
1659
|
+
/**
|
|
1660
|
+
* Deploy the project source code
|
|
1661
|
+
*
|
|
1662
|
+
* @remarks
|
|
1663
|
+
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
1664
|
+
*
|
|
1665
|
+
* @param inlineConfig - The inline configuration for the deploy command
|
|
1666
|
+
*/
|
|
1667
|
+
deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Finalization process
|
|
1670
|
+
*
|
|
1671
|
+
* @remarks
|
|
1672
|
+
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
1673
|
+
*
|
|
1674
|
+
* @returns A promise that resolves when the finalization process has completed
|
|
1675
|
+
*/
|
|
1676
|
+
finalize: () => Promise<void>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Invokes the configured plugin hooks
|
|
1679
|
+
*
|
|
1680
|
+
* @remarks
|
|
1681
|
+
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
1682
|
+
*
|
|
1683
|
+
* @param hook - The hook to call
|
|
1684
|
+
* @param options - The options to provide to the hook
|
|
1685
|
+
* @param args - The arguments to pass to the hook
|
|
1686
|
+
* @returns The result of the hook call
|
|
1687
|
+
*/
|
|
1688
|
+
callHook: <TKey extends string>(hook: TKey, options: CallHookOptions & {
|
|
1689
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
1690
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
1691
|
+
}
|
|
1692
|
+
declare type __ΩAPI = any[];
|
|
1558
1693
|
|
|
1559
|
-
export { type
|
|
1694
|
+
export { type ViteUserConfig as $, type API as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type PluginConfig as E, type PartialPlugin as F, type PartialPluginFactory as G, type ProjectType as H, type ImportDefinition as I, type BabelUserConfig as J, type DeployConfig as K, type LogFn as L, type BaseConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type EnvironmentConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type CommonUserConfig as T, type UserConfig as U, type WebpackUserConfig as V, type WorkspaceConfig as W, type RspackUserConfig as X, type RollupUserConfig as Y, type RolldownUserConfig as Z, type __ΩAPI as _, type BabelTransformPluginFilter as a, type TransformResult as a$, type ESBuildUserConfig as a0, type UnbuildUserConfig as a1, type TsupUserConfig as a2, type TsdownUserConfig as a3, type FarmUserConfig as a4, type InferUserConfig as a5, type InitialUserConfig as a6, type ParsedUserConfig as a7, type PowerlinesCommand as a8, type InlineConfig as a9, type __ΩRspackUserConfig as aA, type __ΩRollupUserConfig as aB, type __ΩRolldownUserConfig as aC, type __ΩViteUserConfig as aD, type __ΩESBuildUserConfig as aE, type __ΩUnbuildUserConfig as aF, type __ΩTsupUserConfig as aG, type __ΩTsdownUserConfig as aH, type __ΩFarmUserConfig as aI, type __ΩInferUserConfig as aJ, type __ΩInitialUserConfig as aK, type __ΩParsedUserConfig as aL, type __ΩPowerlinesCommand as aM, type __ΩInlineConfig as aN, type __ΩNewInlineConfig as aO, type __ΩCleanInlineConfig as aP, type __ΩPrepareInlineConfig as aQ, type __ΩBuildInlineConfig as aR, type __ΩLintInlineConfig as aS, type __ΩDocsInlineConfig as aT, type __ΩDeployInlineConfig as aU, type __ΩConfigEnv as aV, type __ΩAnyUserConfig as aW, LogLevel as aX, type WorkerProcess as aY, type MetaInfo as aZ, type Resolver as a_, type NewInlineConfig as aa, type CleanInlineConfig as ab, type PrepareInlineConfig as ac, type BuildInlineConfig as ad, type LintInlineConfig as ae, type DocsInlineConfig as af, type DeployInlineConfig as ag, type ConfigEnv as ah, type AnyUserConfig as ai, type __ΩLogFn as aj, type __ΩWorkspaceConfig as ak, type __ΩPluginFactory as al, type __ΩPluginConfigTuple as am, type __ΩPluginConfigObject as an, type __ΩPluginConfig as ao, type __ΩPartialPlugin as ap, type __ΩPartialPluginFactory as aq, type __ΩProjectType as ar, type __ΩBabelUserConfig as as, type __ΩDeployConfig as at, type __ΩOutputConfig as au, type __ΩBaseConfig as av, type __ΩEnvironmentConfig as aw, type __ΩCommonUserConfig as ax, type __ΩUserConfig as ay, type __ΩWebpackUserConfig as az, type BabelTransformPlugin as b, type __ΩUnpluginHookVariantField as b$, type SourceFile as b0, type UnimportContext as b1, type SelectHooksOptions as b2, type InitContextOptions as b3, type FetchOptions as b4, type ParseOptions as b5, type EmitOptions as b6, type EmitEntryOptions as b7, type UnresolvedContext as b8, type Context as b9, type __ΩSelectHookResult as bA, type __ΩEnvironmentContext as bB, type __ΩPluginContext as bC, type __ΩBuildPluginContext as bD, type __ΩWithUnpluginBuildContext as bE, type HookListOrders as bF, HOOKS_LIST_ORDERS as bG, type UnpluginHookFunctions as bH, type PluginHooksListItem as bI, type PluginHooksList as bJ, type UnpluginHooksListItem as bK, type UnpluginHookList as bL, type UnpluginHookVariantField as bM, type UnpluginHookVariant as bN, type HookFields as bO, type HooksList as bP, type InferHooksListItem as bQ, type InferHookFunction as bR, type InferHookReturnType as bS, type InferHookParameters as bT, type InferHookThisType as bU, type __ΩHookListOrders as bV, type __ΩUnpluginHookFunctions as bW, type __ΩPluginHooksListItem as bX, type __ΩPluginHooksList as bY, type __ΩUnpluginHooksListItem as bZ, type __ΩUnpluginHookList as b_, type APIContext as ba, type EnvironmentContextPlugin as bb, type SelectHookResultItem as bc, type SelectHookResult as bd, type EnvironmentContext as be, type PluginContext as bf, type BuildPluginContext as bg, type WithUnpluginBuildContext as bh, type __ΩLogLevel as bi, type __ΩWorkerProcess as bj, type __ΩMetaInfo as bk, type __ΩResolver as bl, type __ΩTransformResult as bm, type __ΩSourceFile as bn, type __ΩUnimportContext as bo, type __ΩSelectHooksOptions as bp, type __ΩInitContextOptions as bq, type __ΩFetchOptions as br, type __ΩParseOptions as bs, type __ΩEmitOptions as bt, type __ΩEmitEntryOptions as bu, type __ΩUnresolvedContext as bv, type __ΩContext as bw, type __ΩAPIContext as bx, type __ΩEnvironmentContextPlugin as by, type __ΩSelectHookResultItem as bz, type BabelTransformPluginOptions as c, type UnpluginOptions as c$, type __ΩUnpluginHookVariant as c0, type __ΩHookFields as c1, type __ΩHooksList as c2, type __ΩInferHooksListItem as c3, type __ΩInferHookFunction as c4, type __ΩInferHookReturnType as c5, type __ΩInferHookParameters as c6, type __ΩInferHookThisType as c7, type PluginHookObject as c8, type PluginHook as c9, type WebpackResolvedConfig as cA, type RspackResolvedConfig as cB, type ESBuildResolvedConfig as cC, type RollupResolvedConfig as cD, type RolldownResolvedConfig as cE, type TsupResolvedConfig as cF, type TsdownResolvedConfig as cG, type UnbuildResolvedConfig as cH, type FarmResolvedConfig as cI, type InferResolvedConfig as cJ, type __ΩResolvedEntryTypeDefinition as cK, type __ΩBabelResolvedConfig as cL, type __ΩEnvironmentResolvedConfig as cM, type __ΩResolvedAssetGlob as cN, type __ΩOutputResolvedConfig as cO, type __ΩResolvedConfig as cP, type __ΩViteResolvedConfig as cQ, type __ΩWebpackResolvedConfig as cR, type __ΩRspackResolvedConfig as cS, type __ΩESBuildResolvedConfig as cT, type __ΩRollupResolvedConfig as cU, type __ΩRolldownResolvedConfig as cV, type __ΩTsupResolvedConfig as cW, type __ΩTsdownResolvedConfig as cX, type __ΩUnbuildResolvedConfig as cY, type __ΩFarmResolvedConfig as cZ, type __ΩInferResolvedConfig as c_, type TypesResult as ca, type PluginHookFunctions as cb, type PluginHooks as cc, type Plugin as cd, PLUGIN_NON_HOOK_FIELDS as ce, type PluginNonHookFields as cf, PLUGIN_HOOKS_FIELDS as cg, type PluginHookFields as ch, KNOWN_PLUGIN_FIELDS as ci, type PluginFields as cj, type __ΩPluginHookObject as ck, type __ΩPluginHook as cl, type __ΩTypesResult as cm, type __ΩPluginHookFunctions as cn, type __ΩPluginHooks as co, type __ΩPlugin as cp, type __ΩPluginNonHookFields as cq, type __ΩPluginHookFields as cr, type __ΩPluginFields as cs, type ResolvedEntryTypeDefinition as ct, type BabelResolvedConfig as cu, type EnvironmentResolvedConfig as cv, type ResolvedAssetGlob as cw, type OutputResolvedConfig as cx, type ResolvedConfig as cy, type ViteResolvedConfig as cz, type BabelTransformInput as d, type InferUnpluginOptions as d0, type UnpluginUserConfig as d1, type UnpluginFactory as d2, type __ΩUnpluginOptions as d3, type __ΩInferUnpluginOptions as d4, type __ΩUnpluginUserConfig as d5, type __ΩUnpluginFactory as d6, type CallHookOptions as d7, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type __ΩNamedImportDefinition as i, type __ΩDefaultImportDefinition as j, type __ΩImportDefinition as k, type __ΩBabelPluginPass as l, type __ΩBabelTransformPluginFilter as m, type __ΩBabelTransformPlugin as n, type __ΩBabelTransformPluginOptions as o, type __ΩResolvedBabelTransformPluginOptions as p, type __ΩBabelTransformInput as q, type __ΩBabelTransformPluginBuilderParams as r, type __ΩBabelTransformPluginBuilder as s, type __ΩDeclareBabelTransformPluginReturn as t, type __ΩImportSpecifier as u, type Commands as v, type __ΩCommandType as w, type __ΩCommands as x, type PluginConfigTuple as y, type PluginConfigObject as z };
|
package/dist/api.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkE4QAO32M_cjs = require('./chunk-E4QAO32M.cjs');
|
|
4
|
+
require('./chunk-B6DVCLP5.cjs');
|
|
5
|
+
require('./chunk-V5WOGN7O.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
7
7
|
require('./chunk-PK6SKIKE.cjs');
|
|
8
8
|
|
|
@@ -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 chunkE4QAO32M_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|