powerlines 0.36.29 → 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
package/dist/unplugin.d.cts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { PowerlinesUnpluginOptions, InferUnpluginOptions, PowerlinesUnpluginFactory } from './types/unplugin.cjs';
|
|
5
|
-
import { UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
6
|
-
import './api-D0gA4eJU.cjs';
|
|
1
|
+
import { UnpluginOptions as UnpluginOptions$1, UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
2
|
+
import { b9 as Context, A as API, c$ as UnpluginOptions, d2 as UnpluginFactory, bf as PluginContext } from './api-CLQePK25.cjs';
|
|
3
|
+
import { UnpluginBuilderVariant } from './types/build.cjs';
|
|
7
4
|
import '@stryke/types/base';
|
|
8
5
|
import '@stryke/env/get-env-paths';
|
|
9
6
|
import '@stryke/http/fetch';
|
|
@@ -29,18 +26,19 @@ import '@babel/helper-plugin-utils';
|
|
|
29
26
|
import './types/fs.cjs';
|
|
30
27
|
import '@stryke/fs/resolve';
|
|
31
28
|
import '@stryke/types/array';
|
|
29
|
+
import 'rollup';
|
|
30
|
+
import './types/tsconfig.cjs';
|
|
31
|
+
import '@stryke/types/tsconfig';
|
|
32
|
+
import 'typescript';
|
|
32
33
|
import '@farmfe/core';
|
|
33
34
|
import '@rspack/core';
|
|
34
35
|
import '@storm-software/tsup/types';
|
|
35
36
|
import '@storm-software/unbuild/types';
|
|
37
|
+
import 'bun';
|
|
36
38
|
import 'esbuild';
|
|
37
39
|
import 'rolldown';
|
|
38
|
-
import 'rollup';
|
|
39
40
|
import 'tsdown';
|
|
40
41
|
import 'webpack';
|
|
41
|
-
import './types/tsconfig.cjs';
|
|
42
|
-
import '@stryke/types/tsconfig';
|
|
43
|
-
import 'typescript';
|
|
44
42
|
|
|
45
43
|
/**
|
|
46
44
|
* Creates a Powerlines unplugin factory that generates a plugin instance.
|
|
@@ -49,7 +47,7 @@ import 'typescript';
|
|
|
49
47
|
* @param decorate - An optional function to decorate the unplugin options.
|
|
50
48
|
* @returns The unplugin factory that generates a plugin instance.
|
|
51
49
|
*/
|
|
52
|
-
declare function createUnpluginFactory<
|
|
50
|
+
declare function createUnpluginFactory<TContext extends Context, TUnpluginBuilderVariant extends UnpluginBuilderVariant>(variant: TUnpluginBuilderVariant, decorate?: (api: API<TContext["config"]>, plugin: UnpluginOptions) => UnpluginOptions$1): UnpluginFactory<TUnpluginBuilderVariant>;
|
|
53
51
|
|
|
54
52
|
/**
|
|
55
53
|
* Merges a base plugin context with an unplugin context, combining their properties.
|
|
@@ -147,6 +145,13 @@ declare function combineContexts<TContext extends PluginContext = PluginContext>
|
|
|
147
145
|
[x: number]: any;
|
|
148
146
|
[x: symbol]: any;
|
|
149
147
|
} ? /*elided*/ any : T_62 | T_60 : T_60 | T_62 : never : never : never : never; } : never : never : T_56 | T_54 : T_54 | T_56 : never : never : never : never; } : never : never : T_50 | T_48 : T_48 | T_50 : never : never : never : never; } : never : never : T_44 | T_42 : T_42 | T_44 : never : never : never : never; } : never : never : T_38 | T_36 : T_36 | T_38 : never : never : never : never; } : never : never : T_32 | T_30 : T_30 | T_32 : never : never : never : never; } : never : never : T_26 | T_24 : T_24 | T_26 : never : never : never : never; } : never : never : T_20 | T_18 : T_18 | T_20 : never : never : never : never; } : never : never : T_14 | T_12 : T_12 | T_14 : never : never : never : never; } : never : never : T_8 | T_6 : T_6 | T_8 : never : never : never : never; } : never : never : T_2 | T : T | T_2 : never : never : never : never; };
|
|
148
|
+
/**
|
|
149
|
+
* Checks if a value is a valid UnpluginBuilderVariant.
|
|
150
|
+
*
|
|
151
|
+
* @param str - The value to check.
|
|
152
|
+
* @returns True if the value is a UnpluginBuilderVariant, false otherwise.
|
|
153
|
+
*/
|
|
154
|
+
declare function isUnpluginBuilderVariant(str: unknown): str is UnpluginBuilderVariant;
|
|
150
155
|
|
|
151
156
|
/**
|
|
152
157
|
* Creates a Powerlines unplugin instance.
|
|
@@ -154,6 +159,6 @@ declare function combineContexts<TContext extends PluginContext = PluginContext>
|
|
|
154
159
|
* @param context - The plugin context.
|
|
155
160
|
* @returns The unplugin instance.
|
|
156
161
|
*/
|
|
157
|
-
declare function createUnplugin<TContext extends PluginContext = PluginContext>(context: TContext):
|
|
162
|
+
declare function createUnplugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant>(context: TContext): UnpluginFactory<TBuildVariant>;
|
|
158
163
|
|
|
159
|
-
export { combineContexts, createUnplugin, createUnpluginFactory };
|
|
164
|
+
export { combineContexts, createUnplugin, createUnpluginFactory, isUnpluginBuilderVariant };
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { PowerlinesUnpluginOptions, InferUnpluginOptions, PowerlinesUnpluginFactory } from './types/unplugin.js';
|
|
5
|
-
import { UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
6
|
-
import './api-cYTlb0MO.js';
|
|
1
|
+
import { UnpluginOptions as UnpluginOptions$1, UnpluginBuildContext, UnpluginContext } from 'unplugin';
|
|
2
|
+
import { b9 as Context, A as API, c$ as UnpluginOptions, d2 as UnpluginFactory, bf as PluginContext } from './api-DClrDYWk.js';
|
|
3
|
+
import { UnpluginBuilderVariant } from './types/build.js';
|
|
7
4
|
import '@stryke/types/base';
|
|
8
5
|
import '@stryke/env/get-env-paths';
|
|
9
6
|
import '@stryke/http/fetch';
|
|
@@ -29,18 +26,19 @@ import '@babel/helper-plugin-utils';
|
|
|
29
26
|
import './types/fs.js';
|
|
30
27
|
import '@stryke/fs/resolve';
|
|
31
28
|
import '@stryke/types/array';
|
|
29
|
+
import 'rollup';
|
|
30
|
+
import './types/tsconfig.js';
|
|
31
|
+
import '@stryke/types/tsconfig';
|
|
32
|
+
import 'typescript';
|
|
32
33
|
import '@farmfe/core';
|
|
33
34
|
import '@rspack/core';
|
|
34
35
|
import '@storm-software/tsup/types';
|
|
35
36
|
import '@storm-software/unbuild/types';
|
|
37
|
+
import 'bun';
|
|
36
38
|
import 'esbuild';
|
|
37
39
|
import 'rolldown';
|
|
38
|
-
import 'rollup';
|
|
39
40
|
import 'tsdown';
|
|
40
41
|
import 'webpack';
|
|
41
|
-
import './types/tsconfig.js';
|
|
42
|
-
import '@stryke/types/tsconfig';
|
|
43
|
-
import 'typescript';
|
|
44
42
|
|
|
45
43
|
/**
|
|
46
44
|
* Creates a Powerlines unplugin factory that generates a plugin instance.
|
|
@@ -49,7 +47,7 @@ import 'typescript';
|
|
|
49
47
|
* @param decorate - An optional function to decorate the unplugin options.
|
|
50
48
|
* @returns The unplugin factory that generates a plugin instance.
|
|
51
49
|
*/
|
|
52
|
-
declare function createUnpluginFactory<
|
|
50
|
+
declare function createUnpluginFactory<TContext extends Context, TUnpluginBuilderVariant extends UnpluginBuilderVariant>(variant: TUnpluginBuilderVariant, decorate?: (api: API<TContext["config"]>, plugin: UnpluginOptions) => UnpluginOptions$1): UnpluginFactory<TUnpluginBuilderVariant>;
|
|
53
51
|
|
|
54
52
|
/**
|
|
55
53
|
* Merges a base plugin context with an unplugin context, combining their properties.
|
|
@@ -147,6 +145,13 @@ declare function combineContexts<TContext extends PluginContext = PluginContext>
|
|
|
147
145
|
[x: number]: any;
|
|
148
146
|
[x: symbol]: any;
|
|
149
147
|
} ? /*elided*/ any : T_62 | T_60 : T_60 | T_62 : never : never : never : never; } : never : never : T_56 | T_54 : T_54 | T_56 : never : never : never : never; } : never : never : T_50 | T_48 : T_48 | T_50 : never : never : never : never; } : never : never : T_44 | T_42 : T_42 | T_44 : never : never : never : never; } : never : never : T_38 | T_36 : T_36 | T_38 : never : never : never : never; } : never : never : T_32 | T_30 : T_30 | T_32 : never : never : never : never; } : never : never : T_26 | T_24 : T_24 | T_26 : never : never : never : never; } : never : never : T_20 | T_18 : T_18 | T_20 : never : never : never : never; } : never : never : T_14 | T_12 : T_12 | T_14 : never : never : never : never; } : never : never : T_8 | T_6 : T_6 | T_8 : never : never : never : never; } : never : never : T_2 | T : T | T_2 : never : never : never : never; };
|
|
148
|
+
/**
|
|
149
|
+
* Checks if a value is a valid UnpluginBuilderVariant.
|
|
150
|
+
*
|
|
151
|
+
* @param str - The value to check.
|
|
152
|
+
* @returns True if the value is a UnpluginBuilderVariant, false otherwise.
|
|
153
|
+
*/
|
|
154
|
+
declare function isUnpluginBuilderVariant(str: unknown): str is UnpluginBuilderVariant;
|
|
150
155
|
|
|
151
156
|
/**
|
|
152
157
|
* Creates a Powerlines unplugin instance.
|
|
@@ -154,6 +159,6 @@ declare function combineContexts<TContext extends PluginContext = PluginContext>
|
|
|
154
159
|
* @param context - The plugin context.
|
|
155
160
|
* @returns The unplugin instance.
|
|
156
161
|
*/
|
|
157
|
-
declare function createUnplugin<TContext extends PluginContext = PluginContext>(context: TContext):
|
|
162
|
+
declare function createUnplugin<TContext extends PluginContext = PluginContext, TBuildVariant extends UnpluginBuilderVariant = UnpluginBuilderVariant>(context: TContext): UnpluginFactory<TBuildVariant>;
|
|
158
163
|
|
|
159
|
-
export { combineContexts, createUnplugin, createUnpluginFactory };
|
|
164
|
+
export { combineContexts, createUnplugin, createUnpluginFactory, isUnpluginBuilderVariant };
|
package/dist/unplugin.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { getString } from './chunk-
|
|
2
|
-
export { createUnpluginFactory } from './chunk-
|
|
3
|
-
import { extendLog } from './chunk-
|
|
4
|
-
|
|
5
|
-
import './chunk-
|
|
1
|
+
import { getString } from './chunk-IBQ5USID.js';
|
|
2
|
+
export { createUnpluginFactory } from './chunk-IBQ5USID.js';
|
|
3
|
+
import { extendLog, combineContexts } from './chunk-NM3AFEVI.js';
|
|
4
|
+
export { combineContexts, isUnpluginBuilderVariant } from './chunk-NM3AFEVI.js';
|
|
5
|
+
import './chunk-PQXP7XQK.js';
|
|
6
|
+
import './chunk-NITQ5IYP.js';
|
|
6
7
|
import './chunk-2MYPFASJ.js';
|
|
7
8
|
import { __name } from './chunk-7QVYU63E.js';
|
|
8
|
-
import { defu } from 'defu';
|
|
9
9
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
10
10
|
import { findFileName } from '@stryke/path/file-path-fns';
|
|
11
11
|
import { replaceExtension } from '@stryke/path/replace';
|
|
12
12
|
import { isString } from '@stryke/type-checks/is-string';
|
|
13
13
|
import { setParseImpl } from 'unplugin';
|
|
14
14
|
|
|
15
|
-
function combineContexts(context, unplugin) {
|
|
16
|
-
return defu(context, unplugin);
|
|
17
|
-
}
|
|
18
|
-
__name(combineContexts, "combineContexts");
|
|
19
15
|
function createUnplugin(context) {
|
|
20
16
|
const ctx = context;
|
|
21
17
|
setParseImpl(ctx.parse);
|
|
@@ -108,8 +104,8 @@ export * from "${isString(resolved) ? resolved : resolved.id}";
|
|
|
108
104
|
__name(load, "load");
|
|
109
105
|
async function transform(code, id) {
|
|
110
106
|
let transformed = code;
|
|
111
|
-
for (const
|
|
112
|
-
const result = await handler.
|
|
107
|
+
for (const hook of ctx.$$internal.environment.selectHooks("transform")) {
|
|
108
|
+
const result = await hook.handler.apply(combineContexts(ctx, this), [
|
|
113
109
|
getString(transformed),
|
|
114
110
|
id
|
|
115
111
|
]);
|
|
@@ -173,6 +169,6 @@ export * from "${isString(resolved) ? resolved : resolved.id}";
|
|
|
173
169
|
}
|
|
174
170
|
__name(createUnplugin, "createUnplugin");
|
|
175
171
|
|
|
176
|
-
export {
|
|
172
|
+
export { createUnplugin };
|
|
177
173
|
//# sourceMappingURL=unplugin.js.map
|
|
178
174
|
//# sourceMappingURL=unplugin.js.map
|
package/dist/vite.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkTFRZZNXL_cjs = require('./chunk-TFRZZNXL.cjs');
|
|
6
6
|
require('./chunk-QHEKB7RW.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-4PIVB3SY.cjs');
|
|
8
|
+
require('./chunk-E4QAO32M.cjs');
|
|
9
|
+
require('./chunk-B6DVCLP5.cjs');
|
|
10
|
+
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
12
12
|
require('./chunk-PK6SKIKE.cjs');
|
|
13
13
|
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkTFRZZNXL_cjs.vite_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "module.exports", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkTFRZZNXL_cjs.vite; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "vite", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkTFRZZNXL_cjs.vite; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=vite.cjs.map
|
|
29
29
|
//# sourceMappingURL=vite.cjs.map
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _vite from 'vite';
|
|
2
|
-
import {
|
|
2
|
+
import { $ as ViteUserConfig } from './api-CLQePK25.cjs';
|
|
3
|
+
import '@stryke/types/base';
|
|
3
4
|
import '@stryke/env/get-env-paths';
|
|
4
5
|
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
7
7
|
import 'jest-worker';
|
|
8
8
|
import 'jiti';
|
|
@@ -22,19 +22,20 @@ import '@stryke/types/file';
|
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'compatx';
|
|
24
24
|
import '@babel/helper-plugin-utils';
|
|
25
|
-
import './types/fs.cjs';
|
|
26
|
-
import '@stryke/fs/resolve';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
25
|
import './types/build.cjs';
|
|
29
26
|
import '@farmfe/core';
|
|
30
27
|
import '@rspack/core';
|
|
31
28
|
import '@storm-software/tsup/types';
|
|
32
29
|
import '@storm-software/unbuild/types';
|
|
30
|
+
import 'bun';
|
|
33
31
|
import 'esbuild';
|
|
34
32
|
import 'rolldown';
|
|
35
33
|
import 'rollup';
|
|
36
34
|
import 'tsdown';
|
|
37
35
|
import 'webpack';
|
|
36
|
+
import './types/fs.cjs';
|
|
37
|
+
import '@stryke/fs/resolve';
|
|
38
|
+
import '@stryke/types/array';
|
|
38
39
|
import './types/tsconfig.cjs';
|
|
39
40
|
import '@stryke/types/tsconfig';
|
|
40
41
|
import 'typescript';
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _vite from 'vite';
|
|
2
|
-
import {
|
|
2
|
+
import { $ as ViteUserConfig } from './api-DClrDYWk.js';
|
|
3
|
+
import '@stryke/types/base';
|
|
3
4
|
import '@stryke/env/get-env-paths';
|
|
4
5
|
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
7
7
|
import 'jest-worker';
|
|
8
8
|
import 'jiti';
|
|
@@ -22,19 +22,20 @@ import '@stryke/types/file';
|
|
|
22
22
|
import 'c12';
|
|
23
23
|
import 'compatx';
|
|
24
24
|
import '@babel/helper-plugin-utils';
|
|
25
|
-
import './types/fs.js';
|
|
26
|
-
import '@stryke/fs/resolve';
|
|
27
|
-
import '@stryke/types/array';
|
|
28
25
|
import './types/build.js';
|
|
29
26
|
import '@farmfe/core';
|
|
30
27
|
import '@rspack/core';
|
|
31
28
|
import '@storm-software/tsup/types';
|
|
32
29
|
import '@storm-software/unbuild/types';
|
|
30
|
+
import 'bun';
|
|
33
31
|
import 'esbuild';
|
|
34
32
|
import 'rolldown';
|
|
35
33
|
import 'rollup';
|
|
36
34
|
import 'tsdown';
|
|
37
35
|
import 'webpack';
|
|
36
|
+
import './types/fs.js';
|
|
37
|
+
import '@stryke/fs/resolve';
|
|
38
|
+
import '@stryke/types/array';
|
|
38
39
|
import './types/tsconfig.js';
|
|
39
40
|
import '@stryke/types/tsconfig';
|
|
40
41
|
import 'typescript';
|
package/dist/vite.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { vite_default as default, vite as "module.exports", vite } from './chunk-
|
|
1
|
+
export { vite_default as default, vite as "module.exports", vite } from './chunk-DVJEAUGP.js';
|
|
2
2
|
import './chunk-YJWTNJQF.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
import './chunk-IBQ5USID.js';
|
|
4
|
+
import './chunk-NM3AFEVI.js';
|
|
5
|
+
import './chunk-PQXP7XQK.js';
|
|
6
|
+
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
8
8
|
import './chunk-7QVYU63E.js';
|
|
9
9
|
//# sourceMappingURL=vite.js.map
|
package/dist/webpack.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
5
|
+
var chunkXHOP5GXJ_cjs = require('./chunk-XHOP5GXJ.cjs');
|
|
6
|
+
require('./chunk-4PIVB3SY.cjs');
|
|
7
|
+
require('./chunk-E4QAO32M.cjs');
|
|
8
|
+
require('./chunk-B6DVCLP5.cjs');
|
|
9
|
+
require('./chunk-V5WOGN7O.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
11
11
|
require('./chunk-PK6SKIKE.cjs');
|
|
12
12
|
|
|
@@ -14,15 +14,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXHOP5GXJ_cjs.webpack_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXHOP5GXJ_cjs.webpack; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "webpack", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXHOP5GXJ_cjs.webpack; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=webpack.cjs.map
|
|
28
28
|
//# sourceMappingURL=webpack.cjs.map
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _webpack from 'webpack';
|
|
2
|
-
import {
|
|
2
|
+
import { V as WebpackUserConfig } from './api-CLQePK25.cjs';
|
|
3
|
+
import '@stryke/types/base';
|
|
3
4
|
import '@stryke/env/get-env-paths';
|
|
4
5
|
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
7
7
|
import 'jest-worker';
|
|
8
8
|
import 'jiti';
|
|
@@ -23,18 +23,19 @@ import 'c12';
|
|
|
23
23
|
import 'compatx';
|
|
24
24
|
import 'vite';
|
|
25
25
|
import '@babel/helper-plugin-utils';
|
|
26
|
-
import './types/fs.cjs';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
26
|
import './types/build.cjs';
|
|
30
27
|
import '@farmfe/core';
|
|
31
28
|
import '@rspack/core';
|
|
32
29
|
import '@storm-software/tsup/types';
|
|
33
30
|
import '@storm-software/unbuild/types';
|
|
31
|
+
import 'bun';
|
|
34
32
|
import 'esbuild';
|
|
35
33
|
import 'rolldown';
|
|
36
34
|
import 'rollup';
|
|
37
35
|
import 'tsdown';
|
|
36
|
+
import './types/fs.cjs';
|
|
37
|
+
import '@stryke/fs/resolve';
|
|
38
|
+
import '@stryke/types/array';
|
|
38
39
|
import './types/tsconfig.cjs';
|
|
39
40
|
import '@stryke/types/tsconfig';
|
|
40
41
|
import 'typescript';
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _webpack from 'webpack';
|
|
2
|
-
import {
|
|
2
|
+
import { V as WebpackUserConfig } from './api-DClrDYWk.js';
|
|
3
|
+
import '@stryke/types/base';
|
|
3
4
|
import '@stryke/env/get-env-paths';
|
|
4
5
|
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
7
7
|
import 'jest-worker';
|
|
8
8
|
import 'jiti';
|
|
@@ -23,18 +23,19 @@ import 'c12';
|
|
|
23
23
|
import 'compatx';
|
|
24
24
|
import 'vite';
|
|
25
25
|
import '@babel/helper-plugin-utils';
|
|
26
|
-
import './types/fs.js';
|
|
27
|
-
import '@stryke/fs/resolve';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
26
|
import './types/build.js';
|
|
30
27
|
import '@farmfe/core';
|
|
31
28
|
import '@rspack/core';
|
|
32
29
|
import '@storm-software/tsup/types';
|
|
33
30
|
import '@storm-software/unbuild/types';
|
|
31
|
+
import 'bun';
|
|
34
32
|
import 'esbuild';
|
|
35
33
|
import 'rolldown';
|
|
36
34
|
import 'rollup';
|
|
37
35
|
import 'tsdown';
|
|
36
|
+
import './types/fs.js';
|
|
37
|
+
import '@stryke/fs/resolve';
|
|
38
|
+
import '@stryke/types/array';
|
|
38
39
|
import './types/tsconfig.js';
|
|
39
40
|
import '@stryke/types/tsconfig';
|
|
40
41
|
import 'typescript';
|
package/dist/webpack.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-U5MNJ4XF.js';
|
|
2
|
+
import './chunk-IBQ5USID.js';
|
|
3
|
+
import './chunk-NM3AFEVI.js';
|
|
4
|
+
import './chunk-PQXP7XQK.js';
|
|
5
|
+
import './chunk-NITQ5IYP.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
|
7
7
|
import './chunk-7QVYU63E.js';
|
|
8
8
|
//# sourceMappingURL=webpack.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"repository": {
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"@stryke/string-format": "^0.12.30",
|
|
588
588
|
"@stryke/type-checks": "^0.5.15",
|
|
589
589
|
"@stryke/unique-id": "^0.3.38",
|
|
590
|
-
"@typescript-eslint/utils": "^8.
|
|
590
|
+
"@typescript-eslint/utils": "^8.52.0",
|
|
591
591
|
"babel-dead-code-elimination": "^1.0.11",
|
|
592
592
|
"babel-plugin-parameter-decorator": "^1.0.16",
|
|
593
593
|
"bundle-require": "^5.1.0",
|
|
@@ -607,6 +607,7 @@
|
|
|
607
607
|
"prettier": "^3.7.4",
|
|
608
608
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
609
609
|
"ts-morph": "^27.0.2",
|
|
610
|
+
"undici": "^7.18.2",
|
|
610
611
|
"unimport": "^5.6.0",
|
|
611
612
|
"unplugin": "3.0.0-beta.3",
|
|
612
613
|
"vite": "8.0.0-beta.2"
|
|
@@ -620,16 +621,18 @@
|
|
|
620
621
|
"@types/babel__helper-plugin-utils": "^7.10.3",
|
|
621
622
|
"@types/babel__template": "^7.4.4",
|
|
622
623
|
"@types/babel__traverse": "^7.28.0",
|
|
624
|
+
"@types/bun": "^1.3.5",
|
|
623
625
|
"@types/diff-match-patch": "^1.0.36",
|
|
624
626
|
"@types/node": "^24.10.4",
|
|
625
627
|
"@types/semver": "^7.7.1",
|
|
628
|
+
"bun-types-no-globals": "^1.3.4",
|
|
626
629
|
"eslint": "^9.39.2",
|
|
627
630
|
"minimatch": "^10.1.1",
|
|
628
631
|
"tsdown": "0.17.0-beta.5",
|
|
629
632
|
"tsup": "8.4.0",
|
|
630
633
|
"typescript": "^5.9.3",
|
|
631
|
-
"undici-types": "^7.
|
|
634
|
+
"undici-types": "^7.18.2"
|
|
632
635
|
},
|
|
633
636
|
"publishConfig": { "access": "public" },
|
|
634
|
-
"gitHead": "
|
|
637
|
+
"gitHead": "00141b82214ec2772cec7ec7873aba06f593289b"
|
|
635
638
|
}
|
package/dist/api-D0gA4eJU.d.cts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { MaybePromise } from '@stryke/types/base';
|
|
2
|
-
import { b0 as SelectHooksOptions, cB as ResolvedConfig, b8 as APIContext, aa as PrepareInlineConfig, a8 as NewInlineConfig, a9 as CleanInlineConfig, ab as BuildInlineConfig, ac as LintInlineConfig, ad as DocsInlineConfig, ae as DeployInlineConfig, bE as HookKeys, bc as PluginContext, bb as EnvironmentContext, bL as InferHookParameters, bK as InferHookReturnType } from './context-DU4oqb6r.cjs';
|
|
3
|
-
|
|
4
|
-
type CallHookOptions = SelectHooksOptions & (({
|
|
5
|
-
/**
|
|
6
|
-
* Whether to call the hooks sequentially or in parallel.
|
|
7
|
-
*
|
|
8
|
-
* @defaultValue true
|
|
9
|
-
*/
|
|
10
|
-
sequential?: true;
|
|
11
|
-
} & ({
|
|
12
|
-
/**
|
|
13
|
-
* How to handle multiple return values from hooks.
|
|
14
|
-
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
15
|
-
* - "first": Return the first non-undefined value.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* Merging only works if the return values are objects.
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue "merge"
|
|
21
|
-
*/
|
|
22
|
-
result: "first";
|
|
23
|
-
} | {
|
|
24
|
-
/**
|
|
25
|
-
* How to handle multiple return values from hooks.
|
|
26
|
-
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
27
|
-
* - "first": Return the first non-undefined value.
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* Merging only works if the return values are objects.
|
|
31
|
-
*
|
|
32
|
-
* @defaultValue "merge"
|
|
33
|
-
*/
|
|
34
|
-
result?: "merge" | "last";
|
|
35
|
-
/**
|
|
36
|
-
* 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
|
|
37
|
-
*/
|
|
38
|
-
asNextParam?: false | ((previousResult: any) => MaybePromise<any>);
|
|
39
|
-
})) | {
|
|
40
|
-
/**
|
|
41
|
-
* Whether to call the hooks sequentially or in parallel.
|
|
42
|
-
*/
|
|
43
|
-
sequential: false;
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Powerlines API Interface
|
|
48
|
-
*/
|
|
49
|
-
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
50
|
-
/**
|
|
51
|
-
* The Powerlines shared API context
|
|
52
|
-
*/
|
|
53
|
-
context: APIContext<TResolvedConfig>;
|
|
54
|
-
/**
|
|
55
|
-
* Prepare the Powerlines API
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
59
|
-
*
|
|
60
|
-
* @param inlineConfig - The inline configuration for the prepare command
|
|
61
|
-
*/
|
|
62
|
-
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Create a new Powerlines project
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* This method will create a new Powerlines project in the current directory.
|
|
68
|
-
*
|
|
69
|
-
* @param inlineConfig - The inline configuration for the new command
|
|
70
|
-
* @returns A promise that resolves when the project has been created
|
|
71
|
-
*/
|
|
72
|
-
new: (inlineConfig: NewInlineConfig) => Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Clean any previously prepared artifacts
|
|
75
|
-
*
|
|
76
|
-
* @remarks
|
|
77
|
-
* This method will remove the previous Powerlines artifacts from the project.
|
|
78
|
-
*
|
|
79
|
-
* @param inlineConfig - The inline configuration for the clean command
|
|
80
|
-
* @returns A promise that resolves when the clean command has completed
|
|
81
|
-
*/
|
|
82
|
-
clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* Lint the project source code
|
|
85
|
-
*
|
|
86
|
-
* @param inlineConfig - The inline configuration for the lint command
|
|
87
|
-
* @returns A promise that resolves when the lint command has completed
|
|
88
|
-
*/
|
|
89
|
-
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* Build the project
|
|
92
|
-
*
|
|
93
|
-
* @remarks
|
|
94
|
-
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
95
|
-
*
|
|
96
|
-
* @param inlineConfig - The inline configuration for the build command
|
|
97
|
-
* @returns A promise that resolves when the build command has completed
|
|
98
|
-
*/
|
|
99
|
-
build: (inlineConfig: BuildInlineConfig) => Promise<void>;
|
|
100
|
-
/**
|
|
101
|
-
* Prepare the documentation for the project
|
|
102
|
-
*
|
|
103
|
-
* @param inlineConfig - The inline configuration for the docs command
|
|
104
|
-
* @returns A promise that resolves when the documentation generation has completed
|
|
105
|
-
*/
|
|
106
|
-
docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
* Deploy the project source code
|
|
109
|
-
*
|
|
110
|
-
* @remarks
|
|
111
|
-
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
112
|
-
*
|
|
113
|
-
* @param inlineConfig - The inline configuration for the deploy command
|
|
114
|
-
*/
|
|
115
|
-
deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
|
|
116
|
-
/**
|
|
117
|
-
* Finalization process
|
|
118
|
-
*
|
|
119
|
-
* @remarks
|
|
120
|
-
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
121
|
-
*
|
|
122
|
-
* @returns A promise that resolves when the finalization process has completed
|
|
123
|
-
*/
|
|
124
|
-
finalize: () => Promise<void>;
|
|
125
|
-
/**
|
|
126
|
-
* Invokes the configured plugin hooks
|
|
127
|
-
*
|
|
128
|
-
* @remarks
|
|
129
|
-
* By default, it will call the `"pre"`, `"normal"`, and `"post"` ordered hooks in sequence
|
|
130
|
-
*
|
|
131
|
-
* @param hook - The hook to call
|
|
132
|
-
* @param options - The options to provide to the hook
|
|
133
|
-
* @param args - The arguments to pass to the hook
|
|
134
|
-
* @returns The result of the hook call
|
|
135
|
-
*/
|
|
136
|
-
callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: CallHookOptions & {
|
|
137
|
-
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
138
|
-
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey> | undefined>;
|
|
139
|
-
}
|
|
140
|
-
declare type __ΩAPI = any[];
|
|
141
|
-
|
|
142
|
-
export type { API as A, CallHookOptions as C, __ΩAPI as _ };
|