powerlines 0.19.5 → 0.21.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/api.cjs +4 -4
- package/dist/api.d.cts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.js +3 -3
- package/dist/astro.cjs +10 -10
- package/dist/astro.d.cts +1 -2
- package/dist/astro.d.ts +1 -2
- package/dist/astro.js +7 -7
- package/dist/{chunk-MLAYLHZO.js → chunk-237NITCY.js} +20 -5
- package/dist/{chunk-5PRY6OJM.cjs → chunk-2HNC5JVK.cjs} +2 -2
- package/dist/{chunk-AEJIVPUZ.js → chunk-2Q2PSPZK.js} +1 -1
- package/dist/{chunk-JPWBN72J.js → chunk-3FS7K4DZ.js} +1 -1
- package/dist/{chunk-BSGWY4AP.cjs → chunk-3JH36WUJ.cjs} +2 -2
- package/dist/{chunk-ZOUGUAQY.cjs → chunk-44UTUCBG.cjs} +34 -16
- package/dist/{chunk-KMELWYHW.cjs → chunk-6XRDZOE3.cjs} +967 -664
- package/dist/{chunk-YQZXG4X6.cjs → chunk-7C2NEC7D.cjs} +2 -2
- package/dist/{chunk-GQM2JCO3.js → chunk-A5GTERYN.js} +2 -2
- package/dist/chunk-B4KLWFY6.cjs +32 -0
- package/dist/{chunk-I4LLZ5BI.js → chunk-C5TKY75S.js} +1 -1
- package/dist/{chunk-TK6CN2KT.cjs → chunk-DMXXNXLS.cjs} +4 -4
- package/dist/{chunk-MCDMY6GK.cjs → chunk-F4BD5CXH.cjs} +2 -2
- package/dist/chunk-GRAVJX3I.js +29 -0
- package/dist/chunk-HV7SHEHD.cjs +118 -0
- package/dist/{chunk-WJ4CZKXY.js → chunk-JKBJF3UI.js} +1 -1
- package/dist/{chunk-BHPTTRBA.js → chunk-L4AXJFX2.js} +32 -14
- package/dist/{chunk-Z63SQZUB.cjs → chunk-LKYBC6DX.cjs} +4 -4
- package/dist/{chunk-RR7EC4RF.js → chunk-M6XGEVJY.js} +1 -1
- package/dist/{chunk-PAJB5K7A.js → chunk-NZXMP4J5.js} +3 -2
- package/dist/{chunk-GFINPIIK.js → chunk-OZU47JET.js} +1000 -704
- package/dist/{chunk-FCTNMPJF.cjs → chunk-PAMSESZV.cjs} +1 -1
- package/dist/chunk-PDFOF6ZP.js +112 -0
- package/dist/{chunk-7HKTQSUG.cjs → chunk-PJP4MECA.cjs} +4 -3
- package/dist/{chunk-OJSRHKHW.js → chunk-QQGXARP3.js} +1 -1
- package/dist/{chunk-ULFJBFI7.cjs → chunk-SQANNMRF.cjs} +22 -7
- package/dist/{chunk-HI3LNK6Q.js → chunk-SVDPKN3U.js} +1 -1
- package/dist/chunk-SVF4ATJR.cjs +8 -0
- package/dist/{chunk-A3FMGMBV.cjs → chunk-UVM4JAR3.cjs} +2 -2
- package/dist/{chunk-VICSRRKQ.js → chunk-WU7I52LM.js} +2 -2
- package/dist/{chunk-X5LPEBDE.cjs → chunk-WYJGOC3Y.cjs} +2 -2
- package/dist/{chunk-LIXKMZW5.cjs → chunk-YG5ORYN2.cjs} +2 -2
- package/dist/{chunk-HEG6IAVR.js → chunk-ZPOCM5XZ.js} +1 -1
- package/dist/chunk-ZWF7LZXE.js +5 -0
- package/dist/config.d.cts +1 -2
- package/dist/config.d.ts +1 -2
- package/dist/esbuild.cjs +9 -9
- package/dist/esbuild.d.cts +1 -2
- package/dist/esbuild.d.ts +1 -2
- package/dist/esbuild.js +6 -6
- package/dist/farm.cjs +5 -5
- package/dist/farm.d.cts +1 -2
- package/dist/farm.d.ts +1 -2
- package/dist/farm.js +4 -4
- package/dist/{hooks-C6t50M6a.d.cts → hooks-CJ1W5lrx.d.cts} +1 -1
- package/dist/{hooks-Bq2jUAKs.d.ts → hooks-CNEZpkMS.d.ts} +1 -1
- package/dist/index.cjs +45 -287
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +20 -244
- package/dist/lib/build/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.d.cts +3 -5
- package/dist/lib/build/esbuild.d.ts +3 -5
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +25 -25
- package/dist/lib/build/index.d.cts +3 -5
- package/dist/lib/build/index.d.ts +3 -5
- package/dist/lib/build/index.js +9 -9
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -3
- package/dist/lib/build/rolldown.d.ts +1 -3
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +1 -3
- package/dist/lib/build/rollup.d.ts +1 -3
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +1 -3
- package/dist/lib/build/rspack.d.ts +1 -3
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.d.cts +1 -3
- package/dist/lib/build/tsup.d.ts +1 -3
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +2 -4
- package/dist/lib/build/unbuild.d.ts +2 -4
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.d.cts +1 -3
- package/dist/lib/build/vite.d.ts +1 -3
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +1 -3
- package/dist/lib/build/webpack.d.ts +1 -3
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/chunk-27VJFYDM.cjs +132 -0
- package/dist/lib/chunk-3G4C3YAU.js +124 -0
- package/dist/lib/{chunk-DX4TFRS3.js → chunk-43VJVIL2.js} +976 -681
- package/dist/lib/{chunk-5EXW3ZRC.cjs → chunk-4FX4VOLA.cjs} +25 -4
- package/dist/lib/{chunk-ADKYAHF5.js → chunk-5GM5UAUO.js} +32 -12
- package/dist/lib/{chunk-JB2JJXGW.js → chunk-5SADLYYK.js} +1 -1
- package/dist/lib/{chunk-KXCEN6Y4.js → chunk-5SP6QZLX.js} +1 -1
- package/dist/lib/{chunk-TNHDC2ZQ.cjs → chunk-7XHBIYIN.cjs} +1 -20
- package/dist/lib/{chunk-SM3S7DYW.js → chunk-BHDQZ6YX.js} +12 -2
- package/dist/lib/{chunk-F7IDAYLH.cjs → chunk-CSJ6KNIX.cjs} +12 -9
- package/dist/lib/{chunk-37W2ZDLA.cjs → chunk-E2MVGKGH.cjs} +2 -2
- package/dist/lib/{chunk-ET5QBFGZ.cjs → chunk-FN7673NC.cjs} +2 -2
- package/dist/lib/{chunk-67IBLMW6.cjs → chunk-GDXHCTCX.cjs} +14 -7
- package/dist/lib/{chunk-ESNHFT4V.cjs → chunk-HCOHRD3Q.cjs} +26 -13
- package/dist/lib/{chunk-SYHVP3OW.js → chunk-HOZ37BFN.js} +23 -4
- package/dist/lib/{chunk-7OHD3BD4.js → chunk-HQ5YA43H.js} +12 -9
- package/dist/lib/{chunk-47WZIAPZ.js → chunk-IOM7GRZU.js} +5 -8
- package/dist/lib/{chunk-WFUO3YPK.js → chunk-L4NEN725.js} +19 -4
- package/dist/lib/{chunk-MVSXEH4P.cjs → chunk-LAFEAMNN.cjs} +6 -9
- package/dist/lib/{chunk-7Y5MJRWF.js → chunk-LIN4KAV3.js} +57 -34
- package/dist/lib/{chunk-LJ4WO7TW.cjs → chunk-LMO7PRBP.cjs} +35 -13
- package/dist/lib/{chunk-4AMFNBTX.cjs → chunk-LPA7UJIR.cjs} +956 -659
- package/dist/lib/{chunk-OTBLE55Z.cjs → chunk-MPCVQK2D.cjs} +12 -1
- package/dist/lib/{chunk-5ASXKB2V.js → chunk-QAXCBFBP.js} +1 -1
- package/dist/lib/{chunk-N2EGPL2L.js → chunk-T7RMV2FW.js} +25 -12
- package/dist/lib/{chunk-7K7JH3DF.cjs → chunk-ULJVBW4L.cjs} +19 -4
- package/dist/lib/{chunk-UDJ37BEE.cjs → chunk-VGSV2BEL.cjs} +57 -34
- package/dist/lib/{chunk-AOKLB4V2.cjs → chunk-Y2BHXV33.cjs} +1 -1
- package/dist/lib/{chunk-GRJJZ5VJ.js → chunk-YH5GOJS3.js} +2 -15
- package/dist/lib/{chunk-Q3ERHHXJ.js → chunk-YV6MDKW4.js} +13 -6
- package/dist/lib/{config-LK_Wl1SU.d.cts → config-7vXtXiGg.d.cts} +204 -118
- package/dist/lib/{config-CnPcoKqT.d.ts → config-B9aVEiiX.d.ts} +204 -118
- package/dist/lib/config-file.d.cts +1 -3
- package/dist/lib/config-file.d.ts +1 -3
- package/dist/lib/create-program.d.cts +1 -3
- package/dist/lib/create-program.d.ts +1 -3
- package/dist/lib/entry.cjs +9 -9
- package/dist/lib/entry.d.cts +1 -3
- package/dist/lib/entry.d.ts +1 -3
- package/dist/lib/entry.js +1 -1
- package/dist/lib/{hooks-DX1o8l6J.d.ts → hooks-BxUBzqCb.d.ts} +1 -1
- package/dist/lib/{hooks-BD2rDhpA.d.cts → hooks-cvv50JDh.d.cts} +1 -1
- package/dist/lib/index.cjs +32 -28
- package/dist/lib/index.d.cts +326 -7
- package/dist/lib/index.d.ts +326 -7
- package/dist/lib/index.js +8 -8
- package/dist/lib/logger.d.cts +1 -3
- package/dist/lib/logger.d.ts +1 -3
- package/dist/lib/typescript/compiler-host.d.cts +1 -3
- package/dist/lib/typescript/compiler-host.d.ts +1 -3
- package/dist/lib/typescript/import-transformer.d.cts +1 -3
- package/dist/lib/typescript/import-transformer.d.ts +1 -3
- package/dist/lib/typescript/index.d.cts +1 -3
- package/dist/lib/typescript/index.d.ts +1 -3
- package/dist/lib/typescript/program.d.cts +1 -3
- package/dist/lib/typescript/program.d.ts +1 -3
- package/dist/lib/unplugin/factory.cjs +5 -5
- package/dist/lib/unplugin/factory.d.cts +7 -9
- package/dist/lib/unplugin/factory.d.ts +7 -9
- package/dist/lib/unplugin/factory.js +4 -4
- package/dist/lib/unplugin/index.cjs +8 -8
- package/dist/lib/unplugin/index.d.cts +2 -4
- package/dist/lib/unplugin/index.d.ts +2 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.cjs +3 -3
- package/dist/lib/unplugin/plugin.d.cts +1 -3
- package/dist/lib/unplugin/plugin.d.ts +1 -3
- package/dist/lib/unplugin/plugin.js +2 -2
- package/dist/lib/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +1 -3
- package/dist/lib/unplugin/resolve-id.d.ts +1 -3
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.d.cts +1 -3
- package/dist/lib/utilities/bundle.d.ts +1 -3
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/cache.d.cts +1 -3
- package/dist/lib/utilities/cache.d.ts +1 -3
- package/dist/lib/utilities/file-header.d.cts +1 -3
- package/dist/lib/utilities/file-header.d.ts +1 -3
- package/dist/lib/utilities/index.cjs +14 -14
- package/dist/lib/utilities/index.d.cts +1 -3
- package/dist/lib/utilities/index.d.ts +1 -3
- package/dist/lib/utilities/index.js +5 -5
- package/dist/lib/utilities/meta.cjs +8 -8
- package/dist/lib/utilities/meta.d.cts +1 -3
- package/dist/lib/utilities/meta.d.ts +1 -3
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -3
- package/dist/lib/utilities/resolve-path.d.ts +1 -3
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.d.cts +1 -3
- package/dist/lib/utilities/resolve.d.ts +1 -3
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/lib/utilities/source-file.d.cts +1 -3
- package/dist/lib/utilities/source-file.d.ts +1 -3
- package/dist/lib/utilities/source-map.d.cts +1 -3
- package/dist/lib/utilities/source-map.d.ts +1 -3
- package/dist/lib/utilities/worker.d.cts +1 -3
- package/dist/lib/utilities/worker.d.ts +1 -3
- package/dist/lib/utilities/write-file.d.cts +1 -3
- package/dist/lib/utilities/write-file.d.ts +1 -3
- package/dist/next.cjs +9 -9
- package/dist/next.js +6 -6
- package/dist/nuxt.cjs +11 -11
- package/dist/nuxt.js +8 -8
- package/dist/plugin-utils/{chunk-YKIS7BLU.cjs → chunk-5MO4BCOW.cjs} +24 -0
- package/dist/plugin-utils/{chunk-HHFA3IEZ.js → chunk-CYVV2MB7.js} +24 -0
- package/dist/plugin-utils/{chunk-75UVEMIV.cjs → chunk-DZZPNO5H.cjs} +2 -2
- package/dist/plugin-utils/{chunk-WEIEQXIJ.cjs → chunk-ECFS7DPV.cjs} +5 -5
- package/dist/plugin-utils/{chunk-MQOW6ENT.cjs → chunk-F65J5WOX.cjs} +1 -1
- package/dist/plugin-utils/{chunk-IHME6YWJ.js → chunk-GV7O3E7P.js} +1 -1
- package/dist/plugin-utils/chunk-J33TXWF6.js +12 -0
- package/dist/plugin-utils/{chunk-PK6PYFWY.js → chunk-L277XSSN.js} +1 -1
- package/dist/plugin-utils/{chunk-YDYJAGMP.js → chunk-QKMG6ZAU.js} +1 -1
- package/dist/plugin-utils/chunk-QP6OJWFG.cjs +14 -0
- package/dist/plugin-utils/{chunk-5TL6KEQ5.cjs → chunk-UNAGYQRB.cjs} +4 -4
- package/dist/plugin-utils/{chunk-432MQOUZ.js → chunk-XIXI67PY.js} +1 -1
- package/dist/plugin-utils/{config-48EWGWXq.d.cts → config-BzVVjChJ.d.cts} +201 -115
- package/dist/plugin-utils/{config-48EWGWXq.d.ts → config-BzVVjChJ.d.ts} +201 -115
- package/dist/plugin-utils/enforce.cjs +5 -5
- package/dist/plugin-utils/enforce.d.cts +1 -3
- package/dist/plugin-utils/enforce.d.ts +1 -3
- package/dist/plugin-utils/enforce.js +4 -4
- package/dist/plugin-utils/extend.cjs +4 -4
- package/dist/plugin-utils/extend.d.cts +1 -3
- package/dist/plugin-utils/extend.d.ts +1 -3
- package/dist/plugin-utils/extend.js +3 -3
- package/dist/plugin-utils/get-config-path.cjs +2 -2
- package/dist/plugin-utils/get-config-path.d.cts +2 -4
- package/dist/plugin-utils/get-config-path.d.ts +2 -4
- package/dist/plugin-utils/get-config-path.js +1 -1
- package/dist/plugin-utils/helpers.cjs +14 -14
- package/dist/plugin-utils/helpers.d.cts +3 -5
- package/dist/plugin-utils/helpers.d.ts +3 -5
- package/dist/plugin-utils/helpers.js +1 -1
- package/dist/plugin-utils/index.cjs +24 -24
- package/dist/plugin-utils/index.d.cts +1 -3
- package/dist/plugin-utils/index.d.ts +1 -3
- package/dist/plugin-utils/index.js +6 -6
- package/dist/plugin-utils/merge.cjs +3 -3
- package/dist/plugin-utils/merge.d.cts +1 -3
- package/dist/plugin-utils/merge.d.ts +1 -3
- package/dist/plugin-utils/merge.js +2 -2
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +4 -5
- package/dist/plugin-utils/paths.d.ts +4 -5
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/{resolved-B41SbjnS.d.cts → resolved-D8vIizyA.d.cts} +81 -66
- package/dist/{resolved-J7a2Aeuk.d.ts → resolved-DWxXKJYy.d.ts} +81 -66
- package/dist/rolldown.cjs +8 -8
- package/dist/rolldown.d.cts +1 -2
- package/dist/rolldown.d.ts +1 -2
- package/dist/rolldown.js +5 -5
- package/dist/rollup.cjs +8 -8
- package/dist/rollup.d.cts +1 -2
- package/dist/rollup.d.ts +1 -2
- package/dist/rollup.js +5 -5
- package/dist/rspack.cjs +8 -8
- package/dist/rspack.d.cts +1 -2
- package/dist/rspack.d.ts +1 -2
- package/dist/rspack.js +5 -5
- package/dist/tsup.cjs +10 -10
- package/dist/tsup.js +7 -7
- package/dist/types/babel.d.cts +1 -2
- package/dist/types/babel.d.ts +1 -2
- package/dist/types/build.d.cts +94 -7
- package/dist/types/build.d.ts +94 -7
- package/dist/types/commands.cjs +2 -2
- package/dist/types/commands.d.cts +1 -2
- package/dist/types/commands.d.ts +1 -2
- package/dist/types/commands.js +1 -1
- package/dist/types/config.d.cts +1 -2
- package/dist/types/config.d.ts +1 -2
- package/dist/types/context.d.cts +2 -3
- package/dist/types/context.d.ts +2 -3
- package/dist/types/hooks.d.cts +1 -2
- package/dist/types/hooks.d.ts +1 -2
- package/dist/types/index.cjs +6 -22
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +2 -3
- package/dist/types/internal.d.ts +2 -3
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/dist/types/resolved.d.cts +1 -2
- package/dist/types/resolved.d.ts +1 -2
- package/dist/types/unplugin.d.cts +1 -2
- package/dist/types/unplugin.d.ts +1 -2
- package/dist/types/vfs.cjs +4 -20
- package/dist/types/vfs.d.cts +47 -54
- package/dist/types/vfs.d.ts +47 -54
- package/dist/types/vfs.js +1 -1
- package/dist/unloader.cjs +8 -8
- package/dist/unloader.d.cts +3 -4
- package/dist/unloader.d.ts +3 -4
- package/dist/unloader.js +5 -5
- package/dist/unplugin.cjs +20 -20
- package/dist/unplugin.d.cts +4 -5
- package/dist/unplugin.d.ts +4 -5
- package/dist/unplugin.js +17 -17
- package/dist/vite.cjs +9 -9
- package/dist/vite.d.cts +1 -2
- package/dist/vite.d.ts +1 -2
- package/dist/vite.js +6 -6
- package/dist/webpack.cjs +8 -8
- package/dist/webpack.d.cts +1 -2
- package/dist/webpack.d.ts +1 -2
- package/dist/webpack.js +5 -5
- package/package.json +8 -6
- package/dist/chunk-CWCEYGLM.js +0 -43
- package/dist/chunk-F5NKLRZD.cjs +0 -49
- package/dist/chunk-OBYFBPPO.js +0 -9
- package/dist/chunk-RDMLGFIT.js +0 -29
- package/dist/chunk-RF6RSWD4.cjs +0 -16
- package/dist/chunk-XDLLDHRY.cjs +0 -32
- package/dist/lib/chunk-POOHWK7C.cjs +0 -63
- package/dist/lib/chunk-VLHOYZG2.js +0 -55
- package/dist/plugin-utils/chunk-2HFS2OOG.cjs +0 -14
- package/dist/plugin-utils/chunk-CVZA2RT3.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybePromise, FunctionLike,
|
|
1
|
+
import { MaybePromise, FunctionLike, NonUndefined, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
2
2
|
import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
3
3
|
import { AssetGlob } from '@stryke/types/file';
|
|
4
4
|
import { PreviewOptions, ResolvedConfig as ResolvedConfig$2, ResolvedPreviewOptions } from 'vite';
|
|
@@ -21,9 +21,9 @@ import { Unimport } from 'unimport';
|
|
|
21
21
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
22
22
|
import { ArrayValues } from '@stryke/types/array';
|
|
23
23
|
import { ParsedTypeScriptConfig, TSConfig } from './types/tsconfig.cjs';
|
|
24
|
-
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions,
|
|
24
|
+
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions, VirtualFileMetadata, OutputModeType } from './types/vfs.cjs';
|
|
25
25
|
|
|
26
|
-
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "
|
|
26
|
+
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
27
27
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
28
28
|
type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
|
|
29
29
|
|
|
@@ -49,6 +49,10 @@ interface GenerateTypesResult {
|
|
|
49
49
|
directives?: string[];
|
|
50
50
|
code: string;
|
|
51
51
|
}
|
|
52
|
+
type DeepPartial<T> = {
|
|
53
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
54
|
+
};
|
|
55
|
+
type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
|
|
52
56
|
interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
|
|
53
57
|
/**
|
|
54
58
|
* A function that returns configuration options to be merged with the build context's options.
|
|
@@ -64,7 +68,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
64
68
|
* @param config - The partial configuration object to be modified.
|
|
65
69
|
* @returns A promise that resolves to a partial configuration object.
|
|
66
70
|
*/
|
|
67
|
-
config: (this:
|
|
71
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
|
|
68
72
|
/**
|
|
69
73
|
* 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.
|
|
70
74
|
*
|
|
@@ -172,7 +176,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
172
176
|
* @param config - The partial configuration object to be modified.
|
|
173
177
|
* @returns A promise that resolves to a partial configuration object.
|
|
174
178
|
*/
|
|
175
|
-
config: PluginHook<(this:
|
|
179
|
+
config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
|
|
176
180
|
/**
|
|
177
181
|
* A hook that is called to transform the source code.
|
|
178
182
|
*
|
|
@@ -325,14 +329,6 @@ interface MetaInfo {
|
|
|
325
329
|
* A hash that represents the path to the project root directory
|
|
326
330
|
*/
|
|
327
331
|
configHash: string;
|
|
328
|
-
/**
|
|
329
|
-
* A mapping of runtime ids to their corresponding file paths
|
|
330
|
-
*/
|
|
331
|
-
builtinIdMap: Record<string, string>;
|
|
332
|
-
/**
|
|
333
|
-
* A mapping of virtual file paths to their corresponding file contents
|
|
334
|
-
*/
|
|
335
|
-
virtualFiles: Record<string, string | null>;
|
|
336
332
|
}
|
|
337
333
|
interface Resolver extends Jiti {
|
|
338
334
|
plugin: Jiti;
|
|
@@ -378,7 +374,13 @@ interface InitContextOptions {
|
|
|
378
374
|
*/
|
|
379
375
|
isHighPriority: boolean;
|
|
380
376
|
}
|
|
381
|
-
|
|
377
|
+
/**
|
|
378
|
+
* The unresolved Powerlines context.
|
|
379
|
+
*
|
|
380
|
+
* @remarks
|
|
381
|
+
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
382
|
+
*/
|
|
383
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
382
384
|
/**
|
|
383
385
|
* The Storm workspace configuration
|
|
384
386
|
*/
|
|
@@ -386,7 +388,10 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
386
388
|
/**
|
|
387
389
|
* An object containing the options provided to Powerlines
|
|
388
390
|
*/
|
|
389
|
-
config: TResolvedConfig
|
|
391
|
+
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
392
|
+
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
393
|
+
output: TResolvedConfig["output"];
|
|
394
|
+
};
|
|
390
395
|
/**
|
|
391
396
|
* A logging function for the Powerlines engine
|
|
392
397
|
*/
|
|
@@ -543,6 +548,12 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
543
548
|
*/
|
|
544
549
|
extendLog: (name: string) => LogFn;
|
|
545
550
|
}
|
|
551
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
552
|
+
/**
|
|
553
|
+
* The fully resolved Powerlines configuration
|
|
554
|
+
*/
|
|
555
|
+
config: TResolvedConfig;
|
|
556
|
+
};
|
|
546
557
|
interface APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
547
558
|
/**
|
|
548
559
|
* The expected plugins options for the Powerlines project.
|
|
@@ -655,7 +666,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
655
666
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
|
|
656
667
|
interface SerializedVirtualFileSystem {
|
|
657
668
|
virtualFiles: DirectoryJSON;
|
|
658
|
-
virtualFilesMeta: Record<string, Partial<
|
|
669
|
+
virtualFilesMeta: Record<string, Partial<VirtualFileMetadata>>;
|
|
659
670
|
}
|
|
660
671
|
|
|
661
672
|
interface NamedImportDefinition {
|
|
@@ -743,7 +754,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
743
754
|
* A configuration tuple for a Powerlines plugin.
|
|
744
755
|
*/
|
|
745
756
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
746
|
-
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
757
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
747
758
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
748
759
|
type ProjectType = "application" | "library";
|
|
749
760
|
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
@@ -854,24 +865,33 @@ interface BaseConfig {
|
|
|
854
865
|
* The entry point(s) for the application
|
|
855
866
|
*/
|
|
856
867
|
entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
|
|
868
|
+
/**
|
|
869
|
+
* Configuration for the output of the build process
|
|
870
|
+
*/
|
|
871
|
+
output?: OutputConfig;
|
|
857
872
|
/**
|
|
858
873
|
* Configuration for linting the source code
|
|
874
|
+
*
|
|
875
|
+
* @remarks
|
|
876
|
+
* If set to `false`, linting will be disabled.
|
|
859
877
|
*/
|
|
860
878
|
lint?: Record<string, any> | false;
|
|
861
879
|
/**
|
|
862
880
|
* Configuration for testing the source code
|
|
881
|
+
*
|
|
882
|
+
* @remarks
|
|
883
|
+
* If set to `false`, testing will be disabled.
|
|
863
884
|
*/
|
|
864
885
|
test?: Record<string, any> | false;
|
|
865
|
-
/**
|
|
866
|
-
* Configuration for the output of the build process
|
|
867
|
-
*/
|
|
868
|
-
output?: OutputConfig;
|
|
869
886
|
/**
|
|
870
887
|
* Configuration for the transformation of the source code
|
|
871
888
|
*/
|
|
872
889
|
transform?: Record<string, any>;
|
|
873
890
|
/**
|
|
874
|
-
*
|
|
891
|
+
* Configuration provided to build processes
|
|
892
|
+
*
|
|
893
|
+
* @remarks
|
|
894
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
875
895
|
*/
|
|
876
896
|
build?: BuildConfig;
|
|
877
897
|
/**
|
|
@@ -881,6 +901,13 @@ interface BaseConfig {
|
|
|
881
901
|
* This configuration will be used by the documentation generation plugins during the `docs` command.
|
|
882
902
|
*/
|
|
883
903
|
docs?: Record<string, any>;
|
|
904
|
+
/**
|
|
905
|
+
* Configuration for deploying the source code
|
|
906
|
+
*
|
|
907
|
+
* @remarks
|
|
908
|
+
* If set to `false`, the deployment will be disabled.
|
|
909
|
+
*/
|
|
910
|
+
deploy?: Record<string, any> | false;
|
|
884
911
|
/**
|
|
885
912
|
* The path to the tsconfig file to be used by the compiler
|
|
886
913
|
*
|
|
@@ -901,37 +928,6 @@ interface BaseConfig {
|
|
|
901
928
|
tsconfigRaw?: TSConfig;
|
|
902
929
|
}
|
|
903
930
|
interface EnvironmentConfig extends BaseConfig {
|
|
904
|
-
/**
|
|
905
|
-
* Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
|
|
906
|
-
*
|
|
907
|
-
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
908
|
-
*/
|
|
909
|
-
mainFields?: string[];
|
|
910
|
-
/**
|
|
911
|
-
* Array of strings indicating what conditions should be used for module resolution.
|
|
912
|
-
*/
|
|
913
|
-
conditions?: string[];
|
|
914
|
-
/**
|
|
915
|
-
* Array of strings indicating what conditions should be used for external modules.
|
|
916
|
-
*/
|
|
917
|
-
externalConditions?: string[];
|
|
918
|
-
/**
|
|
919
|
-
* Array of strings indicating what file extensions should be used for module resolution.
|
|
920
|
-
*
|
|
921
|
-
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
922
|
-
*/
|
|
923
|
-
extensions?: string[];
|
|
924
|
-
/**
|
|
925
|
-
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
926
|
-
*
|
|
927
|
-
* @remarks
|
|
928
|
-
* This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
|
|
929
|
-
*/
|
|
930
|
-
dedupe?: string[];
|
|
931
|
-
/**
|
|
932
|
-
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
933
|
-
*/
|
|
934
|
-
builtins?: (string | RegExp)[];
|
|
935
931
|
/**
|
|
936
932
|
* Configuration options for the preview server
|
|
937
933
|
*/
|
|
@@ -1004,14 +1000,26 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1004
1000
|
*/
|
|
1005
1001
|
framework?: string;
|
|
1006
1002
|
}
|
|
1007
|
-
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
1008
|
-
|
|
1003
|
+
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
|
|
1004
|
+
/**
|
|
1005
|
+
* Configuration provided to build processes
|
|
1006
|
+
*
|
|
1007
|
+
* @remarks
|
|
1008
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
1009
|
+
*/
|
|
1010
|
+
build: Omit<TBuildConfig, "override"> & {
|
|
1009
1011
|
/**
|
|
1010
1012
|
* The build variant being used by the Powerlines engine.
|
|
1011
1013
|
*/
|
|
1012
1014
|
variant?: TBuildVariant;
|
|
1015
|
+
/**
|
|
1016
|
+
* An optional set of override options to apply to the selected build variant.
|
|
1017
|
+
*
|
|
1018
|
+
* @remarks
|
|
1019
|
+
* This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
|
|
1020
|
+
*/
|
|
1021
|
+
override?: Partial<TBuildResolvedConfig>;
|
|
1013
1022
|
};
|
|
1014
|
-
override?: Partial<TBuildResolvedConfig>;
|
|
1015
1023
|
};
|
|
1016
1024
|
type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
1017
1025
|
type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
@@ -1035,7 +1043,7 @@ type ParsedUserConfig<TUserConfig extends UserConfig = UserConfig> = TUserConfig
|
|
|
1035
1043
|
*/
|
|
1036
1044
|
configFile?: ConfigLayer<TUserConfig>["configFile"];
|
|
1037
1045
|
};
|
|
1038
|
-
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "
|
|
1046
|
+
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1039
1047
|
/**
|
|
1040
1048
|
* The configuration provided while executing Powerlines commands.
|
|
1041
1049
|
*/
|
|
@@ -1085,18 +1093,18 @@ type DocsInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfi
|
|
|
1085
1093
|
*/
|
|
1086
1094
|
command: "docs";
|
|
1087
1095
|
};
|
|
1088
|
-
type
|
|
1096
|
+
type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
1089
1097
|
/**
|
|
1090
1098
|
* A string identifier for the Powerlines command being executed
|
|
1091
1099
|
*/
|
|
1092
|
-
command: "
|
|
1100
|
+
command: "deploy";
|
|
1093
1101
|
};
|
|
1094
1102
|
type ConfigEnv = Pick<ResolvedConfig$2, "command" | "mode" | "environments" | "preview">;
|
|
1095
1103
|
type AnyUserConfig = Record<string, any> & (Partial<UserConfig> | Partial<WebpackUserConfig> | Partial<RspackUserConfig> | Partial<ViteUserConfig> | Partial<ESBuildUserConfig> | Partial<UnbuildUserConfig> | Partial<TsupUserConfig> | Partial<RolldownUserConfig> | Partial<RollupUserConfig> | Partial<FarmUserConfig>);
|
|
1096
|
-
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial<UserConfig>;
|
|
1097
|
-
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial<UserConfig>>;
|
|
1098
|
-
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial<UserConfig>>;
|
|
1099
|
-
type UserConfigExport = DeepPartial<UserConfig> | Promise<DeepPartial<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1104
|
+
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
|
|
1105
|
+
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
|
|
1106
|
+
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
|
|
1107
|
+
type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1100
1108
|
|
|
1101
1109
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
1102
1110
|
/**
|
|
@@ -1109,7 +1117,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
1109
1117
|
output?: string;
|
|
1110
1118
|
}
|
|
1111
1119
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
1112
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"
|
|
1120
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr">> & {
|
|
1113
1121
|
/**
|
|
1114
1122
|
* The name of the environment
|
|
1115
1123
|
*/
|
|
@@ -1126,7 +1134,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1126
1134
|
/**
|
|
1127
1135
|
* The resolved options for the Powerlines project configuration.
|
|
1128
1136
|
*/
|
|
1129
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "
|
|
1137
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
1130
1138
|
/**
|
|
1131
1139
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1132
1140
|
*/
|
|
@@ -1157,6 +1165,13 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
1157
1165
|
* The output configuration options to use for the build process
|
|
1158
1166
|
*/
|
|
1159
1167
|
output: OutputResolvedConfig;
|
|
1168
|
+
/**
|
|
1169
|
+
* Configuration provided to build processes
|
|
1170
|
+
*
|
|
1171
|
+
* @remarks
|
|
1172
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
1173
|
+
*/
|
|
1174
|
+
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
1160
1175
|
/**
|
|
1161
1176
|
* The log level to use for the Powerlines processes.
|
|
1162
1177
|
*
|
|
@@ -1175,4 +1190,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
|
|
|
1175
1190
|
type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
|
|
1176
1191
|
type InferResolvedConfig<TBuildVariant extends BuildVariant | 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 "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
|
|
1177
1192
|
|
|
1178
|
-
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type
|
|
1193
|
+
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type DeployInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type FarmResolvedConfig as a$, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type PluginHook as aA, type GenerateTypesResult as aB, type ConfigResult as aC, type BasePluginHookFunctions as aD, type BuildPlugin as aE, type ExternalPluginHookFunctionsVariant as aF, type ExternalPluginHookFunctions as aG, type PluginHookFunctions as aH, type PluginHooks as aI, type PluginBuildPlugins as aJ, type Plugin as aK, PLUGIN_NON_HOOK_FIELDS as aL, type PluginNonHookFields as aM, type ResolvedEntryTypeDefinition as aN, type BabelResolvedConfig as aO, type EnvironmentResolvedConfig as aP, type ResolvedAssetGlob as aQ, type OutputResolvedConfig as aR, type ResolvedConfig as aS, type ViteResolvedConfig as aT, type WebpackResolvedConfig as aU, type RspackResolvedConfig as aV, type ESBuildResolvedConfig as aW, type RollupResolvedConfig as aX, type RolldownResolvedConfig as aY, type TsupResolvedConfig as aZ, type UnbuildResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type UnresolvedContext as ad, type Context as ae, type APIContext as af, type EnvironmentContextPlugin as ag, type EnvironmentContext as ah, type PluginContext as ai, type BuildPluginContext as aj, type SerializedVirtualFileSystem as ak, type BaseHooks as al, type BaseHookKeys as am, type ExternalHooks as an, type ExternalHookKeys as ao, type Hooks as ap, type HookKeys as aq, type BaseHooksListItem as ar, type BaseHooksList as as, type ExternalHooksListItem as at, type HooksList as au, type InferHookHandler as av, type InferHookReturnType as aw, type InferHookParameters as ax, type InferHookThisType as ay, type PluginHookObject as az, type BabelTransformPlugin as b, type InferResolvedConfig as b0, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybePromise, FunctionLike,
|
|
1
|
+
import { MaybePromise, FunctionLike, NonUndefined, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
2
2
|
import { TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
3
3
|
import { AssetGlob } from '@stryke/types/file';
|
|
4
4
|
import { PreviewOptions, ResolvedConfig as ResolvedConfig$2, ResolvedPreviewOptions } from 'vite';
|
|
@@ -21,9 +21,9 @@ import { Unimport } from 'unimport';
|
|
|
21
21
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginMessage, UnpluginContext, UnpluginBuildContext } from 'unplugin';
|
|
22
22
|
import { ArrayValues } from '@stryke/types/array';
|
|
23
23
|
import { ParsedTypeScriptConfig, TSConfig } from './types/tsconfig.js';
|
|
24
|
-
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions,
|
|
24
|
+
import { VirtualFileSystemInterface, VirtualFile, PowerlinesWriteFileOptions, VirtualFileMetadata, OutputModeType } from './types/vfs.js';
|
|
25
25
|
|
|
26
|
-
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "
|
|
26
|
+
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
27
27
|
type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
|
|
28
28
|
type Commands<TContext extends Context = Context> = Record<CommandType, (this: TContext) => MaybePromise<void>>;
|
|
29
29
|
|
|
@@ -49,6 +49,10 @@ interface GenerateTypesResult {
|
|
|
49
49
|
directives?: string[];
|
|
50
50
|
code: string;
|
|
51
51
|
}
|
|
52
|
+
type DeepPartial<T> = {
|
|
53
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
54
|
+
};
|
|
55
|
+
type ConfigResult<TContext extends PluginContext = PluginContext> = DeepPartial<TContext["config"]> & Record<string, any>;
|
|
52
56
|
interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {
|
|
53
57
|
/**
|
|
54
58
|
* A function that returns configuration options to be merged with the build context's options.
|
|
@@ -64,7 +68,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
|
|
|
64
68
|
* @param config - The partial configuration object to be modified.
|
|
65
69
|
* @returns A promise that resolves to a partial configuration object.
|
|
66
70
|
*/
|
|
67
|
-
config: (this:
|
|
71
|
+
config: (this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>;
|
|
68
72
|
/**
|
|
69
73
|
* 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.
|
|
70
74
|
*
|
|
@@ -172,7 +176,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
172
176
|
* @param config - The partial configuration object to be modified.
|
|
173
177
|
* @returns A promise that resolves to a partial configuration object.
|
|
174
178
|
*/
|
|
175
|
-
config: PluginHook<(this:
|
|
179
|
+
config: PluginHook<(this: UnresolvedContext<TContext["config"]>) => MaybePromise<ConfigResult<TContext>>> | ConfigResult<TContext>;
|
|
176
180
|
/**
|
|
177
181
|
* A hook that is called to transform the source code.
|
|
178
182
|
*
|
|
@@ -325,14 +329,6 @@ interface MetaInfo {
|
|
|
325
329
|
* A hash that represents the path to the project root directory
|
|
326
330
|
*/
|
|
327
331
|
configHash: string;
|
|
328
|
-
/**
|
|
329
|
-
* A mapping of runtime ids to their corresponding file paths
|
|
330
|
-
*/
|
|
331
|
-
builtinIdMap: Record<string, string>;
|
|
332
|
-
/**
|
|
333
|
-
* A mapping of virtual file paths to their corresponding file contents
|
|
334
|
-
*/
|
|
335
|
-
virtualFiles: Record<string, string | null>;
|
|
336
332
|
}
|
|
337
333
|
interface Resolver extends Jiti {
|
|
338
334
|
plugin: Jiti;
|
|
@@ -378,7 +374,13 @@ interface InitContextOptions {
|
|
|
378
374
|
*/
|
|
379
375
|
isHighPriority: boolean;
|
|
380
376
|
}
|
|
381
|
-
|
|
377
|
+
/**
|
|
378
|
+
* The unresolved Powerlines context.
|
|
379
|
+
*
|
|
380
|
+
* @remarks
|
|
381
|
+
* This context is used before the user configuration has been fully resolved after the `config`.
|
|
382
|
+
*/
|
|
383
|
+
interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
382
384
|
/**
|
|
383
385
|
* The Storm workspace configuration
|
|
384
386
|
*/
|
|
@@ -386,7 +388,10 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
386
388
|
/**
|
|
387
389
|
* An object containing the options provided to Powerlines
|
|
388
390
|
*/
|
|
389
|
-
config: TResolvedConfig
|
|
391
|
+
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
392
|
+
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
393
|
+
output: TResolvedConfig["output"];
|
|
394
|
+
};
|
|
390
395
|
/**
|
|
391
396
|
* A logging function for the Powerlines engine
|
|
392
397
|
*/
|
|
@@ -543,6 +548,12 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
543
548
|
*/
|
|
544
549
|
extendLog: (name: string) => LogFn;
|
|
545
550
|
}
|
|
551
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
552
|
+
/**
|
|
553
|
+
* The fully resolved Powerlines configuration
|
|
554
|
+
*/
|
|
555
|
+
config: TResolvedConfig;
|
|
556
|
+
};
|
|
546
557
|
interface APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
547
558
|
/**
|
|
548
559
|
* The expected plugins options for the Powerlines project.
|
|
@@ -655,7 +666,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
655
666
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = PluginContext<TResolvedConfig> & Omit<UnpluginBuildContext, "parse">;
|
|
656
667
|
interface SerializedVirtualFileSystem {
|
|
657
668
|
virtualFiles: DirectoryJSON;
|
|
658
|
-
virtualFilesMeta: Record<string, Partial<
|
|
669
|
+
virtualFilesMeta: Record<string, Partial<VirtualFileMetadata>>;
|
|
659
670
|
}
|
|
660
671
|
|
|
661
672
|
interface NamedImportDefinition {
|
|
@@ -743,7 +754,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
|
|
|
743
754
|
* A configuration tuple for a Powerlines plugin.
|
|
744
755
|
*/
|
|
745
756
|
type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Promise<Plugin<TContext>> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
|
|
746
|
-
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial<Plugin<TContext>>;
|
|
757
|
+
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
747
758
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
748
759
|
type ProjectType = "application" | "library";
|
|
749
760
|
type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
@@ -854,24 +865,33 @@ interface BaseConfig {
|
|
|
854
865
|
* The entry point(s) for the application
|
|
855
866
|
*/
|
|
856
867
|
entry?: TypeDefinitionParameter | TypeDefinitionParameter[];
|
|
868
|
+
/**
|
|
869
|
+
* Configuration for the output of the build process
|
|
870
|
+
*/
|
|
871
|
+
output?: OutputConfig;
|
|
857
872
|
/**
|
|
858
873
|
* Configuration for linting the source code
|
|
874
|
+
*
|
|
875
|
+
* @remarks
|
|
876
|
+
* If set to `false`, linting will be disabled.
|
|
859
877
|
*/
|
|
860
878
|
lint?: Record<string, any> | false;
|
|
861
879
|
/**
|
|
862
880
|
* Configuration for testing the source code
|
|
881
|
+
*
|
|
882
|
+
* @remarks
|
|
883
|
+
* If set to `false`, testing will be disabled.
|
|
863
884
|
*/
|
|
864
885
|
test?: Record<string, any> | false;
|
|
865
|
-
/**
|
|
866
|
-
* Configuration for the output of the build process
|
|
867
|
-
*/
|
|
868
|
-
output?: OutputConfig;
|
|
869
886
|
/**
|
|
870
887
|
* Configuration for the transformation of the source code
|
|
871
888
|
*/
|
|
872
889
|
transform?: Record<string, any>;
|
|
873
890
|
/**
|
|
874
|
-
*
|
|
891
|
+
* Configuration provided to build processes
|
|
892
|
+
*
|
|
893
|
+
* @remarks
|
|
894
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
875
895
|
*/
|
|
876
896
|
build?: BuildConfig;
|
|
877
897
|
/**
|
|
@@ -881,6 +901,13 @@ interface BaseConfig {
|
|
|
881
901
|
* This configuration will be used by the documentation generation plugins during the `docs` command.
|
|
882
902
|
*/
|
|
883
903
|
docs?: Record<string, any>;
|
|
904
|
+
/**
|
|
905
|
+
* Configuration for deploying the source code
|
|
906
|
+
*
|
|
907
|
+
* @remarks
|
|
908
|
+
* If set to `false`, the deployment will be disabled.
|
|
909
|
+
*/
|
|
910
|
+
deploy?: Record<string, any> | false;
|
|
884
911
|
/**
|
|
885
912
|
* The path to the tsconfig file to be used by the compiler
|
|
886
913
|
*
|
|
@@ -901,37 +928,6 @@ interface BaseConfig {
|
|
|
901
928
|
tsconfigRaw?: TSConfig;
|
|
902
929
|
}
|
|
903
930
|
interface EnvironmentConfig extends BaseConfig {
|
|
904
|
-
/**
|
|
905
|
-
* Array of strings indicating the order in which fields in a package.json file should be resolved to determine the entry point for a module.
|
|
906
|
-
*
|
|
907
|
-
* @defaultValue `['browser', 'module', 'jsnext:main', 'jsnext']`
|
|
908
|
-
*/
|
|
909
|
-
mainFields?: string[];
|
|
910
|
-
/**
|
|
911
|
-
* Array of strings indicating what conditions should be used for module resolution.
|
|
912
|
-
*/
|
|
913
|
-
conditions?: string[];
|
|
914
|
-
/**
|
|
915
|
-
* Array of strings indicating what conditions should be used for external modules.
|
|
916
|
-
*/
|
|
917
|
-
externalConditions?: string[];
|
|
918
|
-
/**
|
|
919
|
-
* Array of strings indicating what file extensions should be used for module resolution.
|
|
920
|
-
*
|
|
921
|
-
* @defaultValue `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`
|
|
922
|
-
*/
|
|
923
|
-
extensions?: string[];
|
|
924
|
-
/**
|
|
925
|
-
* Array of strings indicating what modules should be deduplicated to a single version in the build.
|
|
926
|
-
*
|
|
927
|
-
* @remarks
|
|
928
|
-
* This option is useful for ensuring that only one version of a module is included in the bundle, which can help reduce bundle size and avoid conflicts.
|
|
929
|
-
*/
|
|
930
|
-
dedupe?: string[];
|
|
931
|
-
/**
|
|
932
|
-
* Array of strings or regular expressions that indicate what modules are builtin for the environment.
|
|
933
|
-
*/
|
|
934
|
-
builtins?: (string | RegExp)[];
|
|
935
931
|
/**
|
|
936
932
|
* Configuration options for the preview server
|
|
937
933
|
*/
|
|
@@ -1004,14 +1000,26 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1004
1000
|
*/
|
|
1005
1001
|
framework?: string;
|
|
1006
1002
|
}
|
|
1007
|
-
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = CommonUserConfig & {
|
|
1008
|
-
|
|
1003
|
+
type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> = Omit<CommonUserConfig, "build"> & {
|
|
1004
|
+
/**
|
|
1005
|
+
* Configuration provided to build processes
|
|
1006
|
+
*
|
|
1007
|
+
* @remarks
|
|
1008
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
1009
|
+
*/
|
|
1010
|
+
build: Omit<TBuildConfig, "override"> & {
|
|
1009
1011
|
/**
|
|
1010
1012
|
* The build variant being used by the Powerlines engine.
|
|
1011
1013
|
*/
|
|
1012
1014
|
variant?: TBuildVariant;
|
|
1015
|
+
/**
|
|
1016
|
+
* An optional set of override options to apply to the selected build variant.
|
|
1017
|
+
*
|
|
1018
|
+
* @remarks
|
|
1019
|
+
* This option allows you to provide configuration options with the guarantee that they will **not** be overridden and will take precedence over other build configurations.
|
|
1020
|
+
*/
|
|
1021
|
+
override?: Partial<TBuildResolvedConfig>;
|
|
1013
1022
|
};
|
|
1014
|
-
override?: Partial<TBuildResolvedConfig>;
|
|
1015
1023
|
};
|
|
1016
1024
|
type WebpackUserConfig = UserConfig<WebpackBuildConfig, WebpackResolvedBuildConfig, "webpack">;
|
|
1017
1025
|
type RspackUserConfig = UserConfig<RspackBuildConfig, RspackResolvedBuildConfig, "rspack">;
|
|
@@ -1035,7 +1043,7 @@ type ParsedUserConfig<TUserConfig extends UserConfig = UserConfig> = TUserConfig
|
|
|
1035
1043
|
*/
|
|
1036
1044
|
configFile?: ConfigLayer<TUserConfig>["configFile"];
|
|
1037
1045
|
};
|
|
1038
|
-
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "
|
|
1046
|
+
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1039
1047
|
/**
|
|
1040
1048
|
* The configuration provided while executing Powerlines commands.
|
|
1041
1049
|
*/
|
|
@@ -1085,18 +1093,18 @@ type DocsInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfi
|
|
|
1085
1093
|
*/
|
|
1086
1094
|
command: "docs";
|
|
1087
1095
|
};
|
|
1088
|
-
type
|
|
1096
|
+
type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineConfig<TUserConfig> & {
|
|
1089
1097
|
/**
|
|
1090
1098
|
* A string identifier for the Powerlines command being executed
|
|
1091
1099
|
*/
|
|
1092
|
-
command: "
|
|
1100
|
+
command: "deploy";
|
|
1093
1101
|
};
|
|
1094
1102
|
type ConfigEnv = Pick<ResolvedConfig$2, "command" | "mode" | "environments" | "preview">;
|
|
1095
1103
|
type AnyUserConfig = Record<string, any> & (Partial<UserConfig> | Partial<WebpackUserConfig> | Partial<RspackUserConfig> | Partial<ViteUserConfig> | Partial<ESBuildUserConfig> | Partial<UnbuildUserConfig> | Partial<TsupUserConfig> | Partial<RolldownUserConfig> | Partial<RollupUserConfig> | Partial<FarmUserConfig>);
|
|
1096
|
-
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial<UserConfig>;
|
|
1097
|
-
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial<UserConfig>>;
|
|
1098
|
-
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial<UserConfig>>;
|
|
1099
|
-
type UserConfigExport = DeepPartial<UserConfig> | Promise<DeepPartial<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1104
|
+
type UserConfigFnObject = (env: ConfigEnv) => DeepPartial$1<UserConfig>;
|
|
1105
|
+
type UserConfigFnPromise = (env: ConfigEnv) => Promise<DeepPartial$1<UserConfig>>;
|
|
1106
|
+
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<DeepPartial$1<UserConfig>>;
|
|
1107
|
+
type UserConfigExport = DeepPartial$1<UserConfig> | Promise<DeepPartial$1<UserConfig>> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
1100
1108
|
|
|
1101
1109
|
interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
1102
1110
|
/**
|
|
@@ -1109,7 +1117,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
1109
1117
|
output?: string;
|
|
1110
1118
|
}
|
|
1111
1119
|
type BabelResolvedConfig = Omit<BabelUserConfig, "plugins" | "presets"> & Required<Pick<BabelUserConfig, "plugins" | "presets">>;
|
|
1112
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"
|
|
1120
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "mode" | "ssr">> & {
|
|
1113
1121
|
/**
|
|
1114
1122
|
* The name of the environment
|
|
1115
1123
|
*/
|
|
@@ -1126,7 +1134,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
|
1126
1134
|
/**
|
|
1127
1135
|
* The resolved options for the Powerlines project configuration.
|
|
1128
1136
|
*/
|
|
1129
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "
|
|
1137
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
1130
1138
|
/**
|
|
1131
1139
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
1132
1140
|
*/
|
|
@@ -1157,6 +1165,13 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
1157
1165
|
* The output configuration options to use for the build process
|
|
1158
1166
|
*/
|
|
1159
1167
|
output: OutputResolvedConfig;
|
|
1168
|
+
/**
|
|
1169
|
+
* Configuration provided to build processes
|
|
1170
|
+
*
|
|
1171
|
+
* @remarks
|
|
1172
|
+
* This configuration can be used by plugins during the `build` command. It will generally contain options specific to the selected {@link BuildVariant | build variant}.
|
|
1173
|
+
*/
|
|
1174
|
+
build: Omit<TUserConfig["build"], "override"> & Required<Pick<Required<TUserConfig["build"]>, "override">>;
|
|
1160
1175
|
/**
|
|
1161
1176
|
* The log level to use for the Powerlines processes.
|
|
1162
1177
|
*
|
|
@@ -1175,4 +1190,4 @@ type UnbuildResolvedConfig = ResolvedConfig<UnbuildUserConfig>;
|
|
|
1175
1190
|
type FarmResolvedConfig = ResolvedConfig<FarmUserConfig>;
|
|
1176
1191
|
type InferResolvedConfig<TBuildVariant extends BuildVariant | 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 "rolldown" ? RolldownResolvedConfig : TBuildVariant extends "rollup" ? RollupResolvedConfig : TBuildVariant extends "farm" ? FarmResolvedConfig : ResolvedConfig;
|
|
1177
1192
|
|
|
1178
|
-
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type
|
|
1193
|
+
export { type AnyUserConfig as $, type ParsedUserConfig as A, type BabelPluginPass as B, type CommandType as C, type DefaultImportDefinition as D, type EnvironmentConfig as E, type FarmUserConfig as F, type PowerlinesCommand as G, type InlineConfig as H, type ImportDefinition as I, type NewInlineConfig as J, type CleanInlineConfig as K, type LogFn as L, type PrepareInlineConfig as M, type NamedImportDefinition as N, type OutputConfig as O, type PluginFactory as P, type BuildInlineConfig as Q, type ResolvedBabelTransformPluginOptions as R, SUPPORTED_COMMANDS as S, type TsupUserConfig as T, type UserConfig as U, type ViteUserConfig as V, type WorkspaceConfig as W, type LintInlineConfig as X, type DocsInlineConfig as Y, type DeployInlineConfig as Z, type ConfigEnv as _, type BabelTransformPluginFilter as a, type FarmResolvedConfig as a$, type UserConfigFnObject as a0, type UserConfigFnPromise as a1, type UserConfigFn as a2, type UserConfigExport as a3, LogLevel as a4, type WorkerProcess as a5, type MetaInfo as a6, type Resolver as a7, type TransformResult as a8, type SourceFile as a9, type PluginHook as aA, type GenerateTypesResult as aB, type ConfigResult as aC, type BasePluginHookFunctions as aD, type BuildPlugin as aE, type ExternalPluginHookFunctionsVariant as aF, type ExternalPluginHookFunctions as aG, type PluginHookFunctions as aH, type PluginHooks as aI, type PluginBuildPlugins as aJ, type Plugin as aK, PLUGIN_NON_HOOK_FIELDS as aL, type PluginNonHookFields as aM, type ResolvedEntryTypeDefinition as aN, type BabelResolvedConfig as aO, type EnvironmentResolvedConfig as aP, type ResolvedAssetGlob as aQ, type OutputResolvedConfig as aR, type ResolvedConfig as aS, type ViteResolvedConfig as aT, type WebpackResolvedConfig as aU, type RspackResolvedConfig as aV, type ESBuildResolvedConfig as aW, type RollupResolvedConfig as aX, type RolldownResolvedConfig as aY, type TsupResolvedConfig as aZ, type UnbuildResolvedConfig as a_, type UnimportContext as aa, type SelectHooksOptions as ab, type InitContextOptions as ac, type UnresolvedContext as ad, type Context as ae, type APIContext as af, type EnvironmentContextPlugin as ag, type EnvironmentContext as ah, type PluginContext as ai, type BuildPluginContext as aj, type SerializedVirtualFileSystem as ak, type BaseHooks as al, type BaseHookKeys as am, type ExternalHooks as an, type ExternalHookKeys as ao, type Hooks as ap, type HookKeys as aq, type BaseHooksListItem as ar, type BaseHooksList as as, type ExternalHooksListItem as at, type HooksList as au, type InferHookHandler as av, type InferHookReturnType as aw, type InferHookParameters as ax, type InferHookThisType as ay, type PluginHookObject as az, type BabelTransformPlugin as b, type InferResolvedConfig as b0, type BabelTransformPluginOptions as c, type BabelTransformInput as d, type BabelTransformPluginBuilderParams as e, type BabelTransformPluginBuilder as f, type DeclareBabelTransformPluginReturn as g, type ImportSpecifier as h, type Commands as i, type PluginConfigTuple as j, type PluginConfigObject as k, type PluginConfig as l, type PartialPlugin as m, type PartialPluginFactory as n, type ProjectType as o, type BabelUserConfig as p, type BaseConfig as q, type CommonUserConfig as r, type WebpackUserConfig as s, type RspackUserConfig as t, type RollupUserConfig as u, type RolldownUserConfig as v, type ESBuildUserConfig as w, type UnbuildUserConfig as x, type InferUserConfig as y, type InitialUserConfig as z };
|