powerlines 0.23.3 → 0.23.5
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--9pVSIbm.d.cts +168 -0
- package/dist/api-DxPACGY4.d.ts +168 -0
- package/dist/api.cjs +3 -3
- package/dist/api.d.cts +16 -7
- package/dist/api.d.ts +16 -7
- package/dist/api.js +2 -2
- package/dist/astro.cjs +8 -8
- package/dist/astro.d.cts +3 -5
- package/dist/astro.d.ts +3 -5
- package/dist/astro.js +5 -5
- package/dist/babel-types.d.ts +292 -0
- package/dist/{chunk-CPRXGMH2.js → chunk-33BDG6M5.js} +1 -1
- package/dist/{chunk-KFRKOIP3.js → chunk-3HOOIAF4.js} +1 -1
- package/dist/{chunk-JZAQW55G.cjs → chunk-4OAW547A.cjs} +2 -2
- package/dist/{chunk-Q7HBETZW.js → chunk-5CCEQUAZ.js} +1 -1
- package/dist/{chunk-DWV5QAGZ.cjs → chunk-62BQYRPM.cjs} +2999 -2712
- package/dist/{chunk-F6BDL4HD.js → chunk-AK5B45AH.js} +1 -1
- package/dist/{chunk-3WDMXRK6.cjs → chunk-AYKZK666.cjs} +1 -1
- package/dist/{chunk-TNYZH6EG.js → chunk-E4M4KEL3.js} +2983 -2701
- package/dist/{chunk-WSLPUUGZ.js → chunk-GHHMURR4.js} +1 -1
- package/dist/{chunk-5A7FM72H.cjs → chunk-GXJ5L37C.cjs} +2 -2
- package/dist/{chunk-IGWSCIES.js → chunk-GZNJUK7U.js} +3 -2
- package/dist/{chunk-J7MZRPLN.cjs → chunk-I3EUY74Q.cjs} +5 -4
- package/dist/chunk-IVABRCNA.js +29 -0
- package/dist/{chunk-M4QJ2474.cjs → chunk-JJXDDTSL.cjs} +4 -4
- package/dist/{chunk-WDBPA4RQ.cjs → chunk-K5TOHSUD.cjs} +2 -2
- package/dist/{chunk-4ODWTALP.js → chunk-M7N6RX2H.js} +2 -2
- package/dist/{chunk-J3LN5HOC.cjs → chunk-MAOXZVDE.cjs} +2 -2
- package/dist/{chunk-YQ76DZYD.cjs → chunk-NWZXH2HK.cjs} +2 -2
- package/dist/{chunk-ZFO3FUM4.cjs → chunk-PFECSHR6.cjs} +2 -2
- package/dist/{chunk-JAJ4CI2F.cjs → chunk-Q3ZFML4W.cjs} +2 -2
- package/dist/chunk-RM37JA3L.cjs +32 -0
- package/dist/{chunk-GNNF5SG6.cjs → chunk-RVO5GC2H.cjs} +2 -2
- package/dist/{chunk-J5LKLH5Z.js → chunk-TSKJTJ2P.js} +1 -1
- package/dist/{chunk-WG55ZHJL.cjs → chunk-VRFJDHDN.cjs} +2 -2
- package/dist/{chunk-FM4ABZQ2.js → chunk-VT7NVLLU.js} +1 -1
- package/dist/{chunk-LKN52AAX.js → chunk-W36NC3B7.js} +1 -1
- package/dist/{chunk-RWVNX2CP.js → chunk-XDNNFAQR.js} +1 -1
- package/dist/{chunk-DUYZ3TCT.js → chunk-XWBVMNBI.js} +1 -1
- package/dist/{chunk-WXU3KLBP.cjs → chunk-YBOJFFO2.cjs} +2 -2
- package/dist/{chunk-NH7U3PTV.js → chunk-ZOMJH52N.js} +1 -1
- package/dist/config.d.cts +3 -5
- package/dist/config.d.ts +3 -5
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +3 -5
- package/dist/esbuild.d.ts +3 -5
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +3 -5
- package/dist/farm.d.ts +3 -5
- package/dist/farm.js +3 -3
- package/dist/index.cjs +54 -33
- package/dist/index.d.cts +188 -36
- package/dist/index.d.ts +188 -36
- package/dist/index.js +18 -17
- package/dist/lib/api-B6hfFxVS.d.ts +167 -0
- package/dist/lib/api-CD2QlMig.d.cts +167 -0
- package/dist/lib/build/esbuild.d.cts +2 -4
- package/dist/lib/build/esbuild.d.ts +2 -4
- package/dist/lib/build/index.d.cts +4 -5
- package/dist/lib/build/index.d.ts +4 -5
- package/dist/lib/build/rolldown.d.cts +2 -4
- package/dist/lib/build/rolldown.d.ts +2 -4
- package/dist/lib/build/rollup.d.cts +2 -4
- package/dist/lib/build/rollup.d.ts +2 -4
- package/dist/lib/build/rspack.d.cts +2 -4
- package/dist/lib/build/rspack.d.ts +2 -4
- package/dist/lib/build/tsup.d.cts +2 -4
- package/dist/lib/build/tsup.d.ts +2 -4
- package/dist/lib/build/unbuild.d.cts +4 -23
- package/dist/lib/build/unbuild.d.ts +4 -23
- package/dist/lib/build/vite.d.cts +2 -4
- package/dist/lib/build/vite.d.ts +2 -4
- package/dist/lib/build/webpack.d.cts +2 -4
- package/dist/lib/build/webpack.d.ts +2 -4
- package/dist/lib/chunk-27RAXIPT.cjs +175 -0
- package/dist/lib/chunk-32Q2PG5D.js +9 -0
- package/dist/lib/chunk-35FGUJFD.cjs +2 -0
- package/dist/lib/{chunk-LIN4KAV3.js → chunk-52VDUP5J.js} +5 -7
- package/dist/lib/{chunk-UWHGJ4JS.js → chunk-764HUXP3.js} +484 -1777
- package/dist/lib/chunk-B3EE3VHZ.cjs +127 -0
- package/dist/lib/chunk-CCGA6ZHZ.cjs +1218 -0
- package/dist/lib/chunk-DX2VAXZB.cjs +11 -0
- package/dist/lib/{chunk-VGSV2BEL.cjs → chunk-EFYMNU53.cjs} +6 -12
- package/dist/lib/chunk-EJTGOYSI.cjs +146 -0
- package/dist/lib/chunk-EN4XP4D5.js +144 -0
- package/dist/lib/chunk-FFT4PWRM.js +1 -0
- package/dist/lib/{chunk-L4NEN725.js → chunk-G7S5PIAC.js} +1 -1
- package/dist/lib/chunk-KFJCWNVG.js +120 -0
- package/dist/lib/chunk-MVIKYHBX.cjs +2 -0
- package/dist/lib/chunk-NDKPSA3I.js +1190 -0
- package/dist/lib/{chunk-A5SB72VO.cjs → chunk-NVUXGMU5.cjs} +495 -1781
- package/dist/lib/chunk-NYNHNTHT.js +1 -0
- package/dist/lib/chunk-SZH2DJOG.js +168 -0
- package/dist/lib/{chunk-ULJVBW4L.cjs → chunk-ZBDVQVUK.cjs} +1 -1
- package/dist/lib/{config-BoGlIhnH.d.cts → config-DTSdCZsw.d.cts} +650 -633
- package/dist/lib/{config-CTej7RMP.d.ts → config-DeUaQYc_.d.ts} +650 -633
- package/dist/lib/config-file.d.cts +2 -4
- package/dist/lib/config-file.d.ts +2 -4
- package/dist/lib/contexts/api-context.cjs +18 -0
- package/dist/lib/contexts/api-context.d.cts +69 -0
- package/dist/lib/contexts/api-context.d.ts +69 -0
- package/dist/lib/contexts/api-context.js +9 -0
- package/dist/lib/contexts/context.cjs +15 -0
- package/dist/lib/contexts/context.d.cts +255 -0
- package/dist/lib/contexts/context.d.ts +255 -0
- package/dist/lib/contexts/context.js +6 -0
- package/dist/lib/contexts/environment-context.cjs +17 -0
- package/dist/lib/contexts/environment-context.d.cts +65 -0
- package/dist/lib/contexts/environment-context.d.ts +65 -0
- package/dist/lib/contexts/environment-context.js +8 -0
- package/dist/lib/contexts/index.cjs +31 -0
- package/dist/lib/contexts/index.d.cts +35 -0
- package/dist/lib/contexts/index.d.ts +35 -0
- package/dist/lib/contexts/index.js +10 -0
- package/dist/lib/contexts/plugin-context.cjs +11 -0
- package/dist/lib/contexts/plugin-context.d.cts +42 -0
- package/dist/lib/contexts/plugin-context.d.ts +42 -0
- package/dist/lib/contexts/plugin-context.js +2 -0
- package/dist/lib/entry.d.cts +2 -4
- package/dist/lib/entry.d.ts +2 -4
- package/dist/lib/index.cjs +96 -74
- package/dist/lib/index.d.cts +17 -14
- package/dist/lib/index.d.ts +17 -14
- package/dist/lib/index.js +18 -12
- package/dist/lib/internal-CpVMJCaU.d.ts +39 -0
- package/dist/lib/internal-ypnrUNZy.d.cts +39 -0
- package/dist/lib/logger.d.cts +2 -4
- package/dist/lib/logger.d.ts +2 -4
- package/dist/lib/typescript/compiler-host.cjs +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +2 -4
- package/dist/lib/typescript/compiler-host.d.ts +2 -4
- package/dist/lib/typescript/compiler-host.js +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +2 -4
- package/dist/lib/typescript/import-transformer.d.ts +2 -4
- package/dist/lib/typescript/index.cjs +29 -24
- package/dist/lib/typescript/index.d.cts +4 -4
- package/dist/lib/typescript/index.d.ts +4 -4
- package/dist/lib/typescript/index.js +3 -2
- package/dist/lib/typescript/program.d.cts +2 -4
- package/dist/lib/typescript/program.d.ts +2 -4
- package/dist/lib/typescript/ts-morph.cjs +11 -0
- package/dist/lib/{create-program.d.ts → typescript/ts-morph.d.cts} +3 -5
- package/dist/lib/{create-program.d.cts → typescript/ts-morph.d.ts} +3 -5
- package/dist/lib/typescript/ts-morph.js +2 -0
- package/dist/lib/unplugin/factory.cjs +8 -4
- package/dist/lib/unplugin/factory.d.cts +27 -10
- package/dist/lib/unplugin/factory.d.ts +27 -10
- package/dist/lib/unplugin/factory.js +7 -3
- package/dist/lib/unplugin/helpers.cjs +11 -0
- package/dist/lib/unplugin/helpers.d.cts +128 -0
- package/dist/lib/unplugin/helpers.d.ts +128 -0
- package/dist/lib/unplugin/helpers.js +2 -0
- package/dist/lib/unplugin/index.cjs +12 -7
- package/dist/lib/unplugin/index.d.cts +4 -6
- package/dist/lib/unplugin/index.d.ts +4 -6
- package/dist/lib/unplugin/index.js +9 -4
- 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/unplugin/resolve-id.cjs +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +2 -4
- package/dist/lib/unplugin/resolve-id.d.ts +2 -4
- package/dist/lib/unplugin/resolve-id.js +1 -1
- package/dist/lib/utilities/bundle.d.cts +2 -4
- package/dist/lib/utilities/bundle.d.ts +2 -4
- package/dist/lib/utilities/cache.d.cts +2 -4
- package/dist/lib/utilities/cache.d.ts +2 -4
- package/dist/lib/utilities/file-header.d.cts +2 -4
- package/dist/lib/utilities/file-header.d.ts +2 -4
- package/dist/lib/utilities/index.cjs +18 -18
- package/dist/lib/utilities/index.d.cts +2 -4
- package/dist/lib/utilities/index.d.ts +2 -4
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/meta.d.cts +2 -4
- package/dist/lib/utilities/meta.d.ts +2 -4
- package/dist/lib/utilities/resolve-path.d.cts +2 -4
- package/dist/lib/utilities/resolve-path.d.ts +2 -4
- package/dist/lib/utilities/resolve.d.cts +2 -4
- package/dist/lib/utilities/resolve.d.ts +2 -4
- package/dist/lib/utilities/source-file.d.cts +2 -4
- package/dist/lib/utilities/source-file.d.ts +2 -4
- package/dist/lib/utilities/source-map.d.cts +2 -4
- package/dist/lib/utilities/source-map.d.ts +2 -4
- package/dist/lib/utilities/worker.d.cts +2 -4
- package/dist/lib/utilities/worker.d.ts +2 -4
- package/dist/lib/utilities/write-file.d.cts +2 -4
- package/dist/lib/utilities/write-file.d.ts +2 -4
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/plugin-utils/{context-D1I2JQgs.d.cts → context-DRFZE3XI.d.cts} +535 -518
- package/dist/plugin-utils/{context-D1I2JQgs.d.ts → context-DRFZE3XI.d.ts} +535 -518
- package/dist/plugin-utils/context-helpers.d.cts +2 -4
- package/dist/plugin-utils/context-helpers.d.ts +2 -4
- package/dist/plugin-utils/enforce.d.cts +2 -4
- package/dist/plugin-utils/enforce.d.ts +2 -4
- package/dist/plugin-utils/extend.d.cts +2 -4
- package/dist/plugin-utils/extend.d.ts +2 -4
- 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/helpers.d.cts +2 -4
- package/dist/plugin-utils/helpers.d.ts +2 -4
- package/dist/plugin-utils/index.d.cts +2 -4
- package/dist/plugin-utils/index.d.ts +2 -4
- package/dist/plugin-utils/merge.d.cts +2 -4
- package/dist/plugin-utils/merge.d.ts +2 -4
- package/dist/plugin-utils/paths.d.cts +2 -4
- package/dist/plugin-utils/paths.d.ts +2 -4
- package/dist/{resolved-Dem-rX6I.d.cts → resolved-C00CJgsk.d.cts} +9 -8
- package/dist/{resolved-BVakEeek.d.ts → resolved-DKFZ11S7.d.ts} +9 -8
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +3 -5
- package/dist/rolldown.d.ts +3 -5
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +3 -5
- package/dist/rollup.d.ts +3 -5
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +3 -5
- package/dist/rspack.d.ts +3 -5
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- package/dist/types/api.cjs +4 -0
- package/dist/types/api.d.cts +36 -0
- package/dist/types/api.d.ts +36 -0
- package/dist/types/api.js +1 -0
- package/dist/types/babel.d.cts +3 -5
- package/dist/types/babel.d.ts +3 -5
- package/dist/types/commands.d.cts +3 -5
- package/dist/types/commands.d.ts +3 -5
- package/dist/types/config.d.cts +3 -5
- package/dist/types/config.d.ts +3 -5
- package/dist/types/context.d.cts +3 -5
- package/dist/types/context.d.ts +3 -5
- package/dist/types/{vfs.cjs → fs.cjs} +3 -3
- package/dist/types/{vfs.d.cts → fs.d.cts} +43 -38
- package/dist/types/{vfs.d.ts → fs.d.ts} +43 -38
- package/dist/types/fs.js +2 -0
- package/dist/types/hooks.d.cts +3 -5
- package/dist/types/hooks.d.ts +3 -5
- package/dist/types/index.cjs +9 -8
- package/dist/types/index.d.cts +5 -6
- package/dist/types/index.d.ts +5 -6
- package/dist/types/index.js +3 -2
- package/dist/types/internal.d.cts +44 -9
- package/dist/types/internal.d.ts +44 -9
- package/dist/types/plugin.d.cts +3 -5
- package/dist/types/plugin.d.ts +3 -5
- package/dist/types/resolved.d.cts +3 -5
- package/dist/types/resolved.d.ts +3 -5
- package/dist/types/unplugin.d.cts +20 -12
- package/dist/types/unplugin.d.ts +20 -12
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +12 -14
- package/dist/unloader.d.ts +12 -14
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +6 -9
- package/dist/unplugin.d.ts +6 -9
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +3 -5
- package/dist/vite.d.ts +3 -5
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +3 -5
- package/dist/webpack.d.ts +3 -5
- package/dist/webpack.js +4 -4
- package/package.json +38 -10
- package/schemas/fs.capnp +73 -15
- package/dist/chunk-RODEAGIJ.cjs +0 -32
- package/dist/chunk-SKLSRHBU.js +0 -29
- package/dist/hooks-B3vzw6La.d.ts +0 -28
- package/dist/hooks-YACA4jMY.d.cts +0 -28
- package/dist/lib/create-program.cjs +0 -11
- package/dist/lib/create-program.js +0 -2
- package/dist/lib/hooks-CDLPWf7j.d.cts +0 -28
- package/dist/lib/hooks-Cn-IqwYp.d.ts +0 -28
- package/dist/types/vfs.js +0 -2
- /package/dist/{chunk-KIKTWMI3.cjs → chunk-2NCILNCH.cjs} +0 -0
- /package/dist/{chunk-XVLT2RQ2.js → chunk-BLNT5INX.js} +0 -0
- /package/dist/{lib/chunk-RJ4277VZ.cjs → chunk-GRU7B3QM.cjs} +0 -0
- /package/dist/{lib/chunk-ZBLDAREE.js → chunk-T2P533I5.js} +0 -0
- /package/dist/lib/{chunk-CGYAL3S2.cjs → chunk-4EIXDLFP.cjs} +0 -0
- /package/dist/lib/{chunk-CXRSMYEX.js → chunk-RD5AUWXN.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { PowerlinesAPI } from './api.js';
|
|
|
2
2
|
export { default as plugins } from './unplugin.js';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
4
|
export { defineConfig } from './config.js';
|
|
5
|
-
export {
|
|
5
|
+
export { A as API, _ as __ΩAPI } from './api-DxPACGY4.js';
|
|
6
|
+
export { b8 as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cn as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, bw as BaseHookKeys, bv as BaseHooks, bC as BaseHooksList, bB as BaseHooksListItem, b$ as BasePluginHookFunctions, a9 as BuildInlineConfig, c0 as BuildPlugin, bc as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, b_ as ConfigResult, b7 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, ac as DeployInlineConfig, ab as DocsInlineConfig, cv as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, ba as EnvironmentContext, b9 as EnvironmentContextPlugin, co as EnvironmentResolvedConfig, by as ExternalHookKeys, bx as ExternalHooks, bD as ExternalHooksListItem, c2 as ExternalPluginHookFunctions, c1 as ExternalPluginHookFunctionsVariant, cA as FarmResolvedConfig, a0 as FarmUserConfig, bZ as GenerateTypesResult, bA as HookKeys, bz as Hooks, bE as HooksList, I as ImportDefinition, h as ImportSpecifier, bF as InferHookHandler, bH as InferHookParameters, bG as InferHookReturnType, bI as InferHookThisType, cB as InferResolvedConfig, a1 as InferUserConfig, b5 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, aZ as LogLevel, a$ as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cq as OutputResolvedConfig, c7 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c6 as Plugin, c5 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bb as PluginContext, P as PluginFactory, bY as PluginHook, c3 as PluginHookFunctions, bX as PluginHookObject, c4 as PluginHooks, c8 as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cp as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, cr as ResolvedConfig, cm as ResolvedEntryTypeDefinition, b0 as Resolver, cx as RolldownResolvedConfig, V as RolldownUserConfig, cw as RollupResolvedConfig, T as RollupUserConfig, cu as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b4 as SelectHooksOptions, bd as SerializedVirtualFileSystem, b2 as SourceFile, b1 as TransformResult, cy as TsupResolvedConfig, $ as TsupUserConfig, cz as UnbuildResolvedConfig, Z as UnbuildUserConfig, b3 as UnimportContext, b6 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cs as ViteResolvedConfig, X as ViteUserConfig, ct as WebpackResolvedConfig, M as WebpackUserConfig, a_ as WorkerProcess, W as WorkspaceConfig, bp as __ΩAPIContext, aU as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cD as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, as as __ΩBabelUserConfig, au as __ΩBaseConfig, bK as __ΩBaseHookKeys, bJ as __ΩBaseHooks, bQ as __ΩBaseHooksList, bP as __ΩBaseHooksListItem, cd as __ΩBasePluginHookFunctions, aP as __ΩBuildInlineConfig, ce as __ΩBuildPlugin, bt as __ΩBuildPluginContext, aN as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, aw as __ΩCommonUserConfig, aT as __ΩConfigEnv, cc as __ΩConfigResult, bo as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, aS as __ΩDeployInlineConfig, aR as __ΩDocsInlineConfig, cL as __ΩESBuildResolvedConfig, aD as __ΩESBuildUserConfig, av as __ΩEnvironmentConfig, br as __ΩEnvironmentContext, bq as __ΩEnvironmentContextPlugin, cE as __ΩEnvironmentResolvedConfig, bM as __ΩExternalHookKeys, bL as __ΩExternalHooks, bR as __ΩExternalHooksListItem, cg as __ΩExternalPluginHookFunctions, cf as __ΩExternalPluginHookFunctionsVariant, cQ as __ΩFarmResolvedConfig, aG as __ΩFarmUserConfig, cb as __ΩGenerateTypesResult, bO as __ΩHookKeys, bN as __ΩHooks, bS as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bT as __ΩInferHookHandler, bV as __ΩInferHookParameters, bU as __ΩInferHookReturnType, bW as __ΩInferHookThisType, cR as __ΩInferResolvedConfig, aH as __ΩInferUserConfig, bm as __ΩInitContextOptions, aI as __ΩInitialUserConfig, aL as __ΩInlineConfig, aQ as __ΩLintInlineConfig, aj as __ΩLogFn, be as __ΩLogLevel, bg as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aM as __ΩNewInlineConfig, at as __ΩOutputConfig, cG as __ΩOutputResolvedConfig, aJ as __ΩParsedUserConfig, ap as __ΩPartialPlugin, aq as __ΩPartialPluginFactory, ck as __ΩPlugin, cj as __ΩPluginBuildPlugins, ao as __ΩPluginConfig, an as __ΩPluginConfigObject, am as __ΩPluginConfigTuple, bs as __ΩPluginContext, al as __ΩPluginFactory, ca as __ΩPluginHook, ch as __ΩPluginHookFunctions, c9 as __ΩPluginHookObject, ci as __ΩPluginHooks, cl as __ΩPluginNonHookFields, aK as __ΩPowerlinesCommand, aO as __ΩPrepareInlineConfig, ar as __ΩProjectType, cF as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cH as __ΩResolvedConfig, cC as __ΩResolvedEntryTypeDefinition, bh as __ΩResolver, cN as __ΩRolldownResolvedConfig, aB as __ΩRolldownUserConfig, cM as __ΩRollupResolvedConfig, aA as __ΩRollupUserConfig, cK as __ΩRspackResolvedConfig, az as __ΩRspackUserConfig, bl as __ΩSelectHooksOptions, bu as __ΩSerializedVirtualFileSystem, bj as __ΩSourceFile, bi as __ΩTransformResult, cO as __ΩTsupResolvedConfig, aF as __ΩTsupUserConfig, cP as __ΩUnbuildResolvedConfig, aE as __ΩUnbuildUserConfig, bk as __ΩUnimportContext, bn as __ΩUnresolvedContext, ax as __ΩUserConfig, aY as __ΩUserConfigExport, aX as __ΩUserConfigFn, aV as __ΩUserConfigFnObject, aW as __ΩUserConfigFnPromise, cI as __ΩViteResolvedConfig, aC as __ΩViteUserConfig, cJ as __ΩWebpackResolvedConfig, ay as __ΩWebpackUserConfig, bf as __ΩWorkerProcess, ak as __ΩWorkspaceConfig } from './resolved-DKFZ11S7.js';
|
|
6
7
|
export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './types/build.js';
|
|
8
|
+
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolvePathOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './types/fs.js';
|
|
7
9
|
export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './types/tsconfig.js';
|
|
8
10
|
export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './types/typedoc.js';
|
|
9
|
-
export { InferUnpluginOptions,
|
|
10
|
-
export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerLinesWriteFileData, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileExtension, VirtualFileIdentifier, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerLinesWriteFileData, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolvePathOptions, __ΩVirtualFile, __ΩVirtualFileExtension, __ΩVirtualFileIdentifier, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './types/vfs.js';
|
|
11
|
-
import './hooks-B3vzw6La.js';
|
|
11
|
+
export { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig } from './types/unplugin.js';
|
|
12
12
|
import '@stryke/types/base';
|
|
13
13
|
import '@stryke/types/configuration';
|
|
14
14
|
import '@stryke/types/file';
|
|
@@ -33,15 +33,13 @@ import 'jest-worker';
|
|
|
33
33
|
import 'jiti';
|
|
34
34
|
import 'magic-string';
|
|
35
35
|
import 'memfs';
|
|
36
|
-
import 'oxc-parser';
|
|
37
36
|
import 'semver';
|
|
38
37
|
import 'unimport';
|
|
39
38
|
import 'unplugin';
|
|
39
|
+
import 'node:fs';
|
|
40
40
|
import '@stryke/types/array';
|
|
41
41
|
import '@stryke/types/tsconfig';
|
|
42
42
|
import 'typescript';
|
|
43
|
-
import '@stryke/json/types';
|
|
44
|
-
import 'node:fs';
|
|
45
43
|
import 'unloader';
|
|
46
44
|
import '@nuxt/schema';
|
|
47
45
|
import 'astro';
|
|
@@ -53,6 +51,21 @@ import 'typedoc';
|
|
|
53
51
|
import 'typedoc-plugin-markdown';
|
|
54
52
|
|
|
55
53
|
declare const _capnpFileId: bigint;
|
|
54
|
+
declare const FileType: {
|
|
55
|
+
readonly NORMAL: 0;
|
|
56
|
+
readonly BUILTIN: 1;
|
|
57
|
+
readonly ENTRY: 2;
|
|
58
|
+
readonly CHUNK: 3;
|
|
59
|
+
readonly PREBUILT: 4;
|
|
60
|
+
readonly ASSET: 5;
|
|
61
|
+
};
|
|
62
|
+
type FileType = (typeof FileType)[keyof typeof FileType];
|
|
63
|
+
declare const PreserveSignatureType: {
|
|
64
|
+
readonly STRICT: 0;
|
|
65
|
+
readonly ALLOW_EXTENSION: 1;
|
|
66
|
+
readonly EXPORTS_ONLY: 2;
|
|
67
|
+
};
|
|
68
|
+
type PreserveSignatureType = (typeof PreserveSignatureType)[keyof typeof PreserveSignatureType];
|
|
56
69
|
declare class FileMetadata_KeyValuePair extends $.Struct {
|
|
57
70
|
static readonly _capnp: {
|
|
58
71
|
displayName: string;
|
|
@@ -75,11 +88,11 @@ declare class FileMetadata extends $.Struct {
|
|
|
75
88
|
displayName: string;
|
|
76
89
|
id: string;
|
|
77
90
|
size: $.ObjectSize;
|
|
78
|
-
|
|
91
|
+
defaultType: string;
|
|
79
92
|
};
|
|
80
93
|
static _Properties: $.ListCtor<FileMetadata_KeyValuePair>;
|
|
81
94
|
/**
|
|
82
|
-
* The
|
|
95
|
+
* The type of the file.
|
|
83
96
|
*
|
|
84
97
|
*/
|
|
85
98
|
get id(): string;
|
|
@@ -88,14 +101,20 @@ declare class FileMetadata extends $.Struct {
|
|
|
88
101
|
* The output mode of the file.
|
|
89
102
|
*
|
|
90
103
|
*/
|
|
91
|
-
get
|
|
92
|
-
set
|
|
104
|
+
get type(): string;
|
|
105
|
+
set type(value: string);
|
|
93
106
|
/**
|
|
94
|
-
*
|
|
107
|
+
* The timestamp representing the file's creation date.
|
|
95
108
|
*
|
|
96
109
|
*/
|
|
97
110
|
get mode(): string;
|
|
98
111
|
set mode(value: string);
|
|
112
|
+
/**
|
|
113
|
+
* Additional metadata associated with the file.
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
get timestamp(): number;
|
|
117
|
+
set timestamp(value: number);
|
|
99
118
|
_adoptProperties(value: $.Orphan<$.List<FileMetadata_KeyValuePair>>): void;
|
|
100
119
|
_disownProperties(): $.Orphan<$.List<FileMetadata_KeyValuePair>>;
|
|
101
120
|
get properties(): $.List<FileMetadata_KeyValuePair>;
|
|
@@ -105,27 +124,137 @@ declare class FileMetadata extends $.Struct {
|
|
|
105
124
|
toString(): string;
|
|
106
125
|
}
|
|
107
126
|
/**
|
|
108
|
-
*
|
|
127
|
+
* The identifier for the file data.
|
|
109
128
|
*
|
|
110
129
|
*/
|
|
111
|
-
declare class
|
|
130
|
+
declare class ChunkData extends $.Struct {
|
|
112
131
|
static readonly _capnp: {
|
|
113
132
|
displayName: string;
|
|
114
133
|
id: string;
|
|
115
134
|
size: $.ObjectSize;
|
|
116
135
|
};
|
|
117
136
|
/**
|
|
118
|
-
* An additional
|
|
137
|
+
* An additional name for the file.
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
get id(): string;
|
|
141
|
+
set id(value: string);
|
|
142
|
+
/**
|
|
143
|
+
* Files that are implicitly loaded after one of the specified files.
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
get name(): string;
|
|
147
|
+
set name(value: string);
|
|
148
|
+
_adoptImplicitlyLoadedAfterOneOf(value: $.Orphan<$.List<string>>): void;
|
|
149
|
+
_disownImplicitlyLoadedAfterOneOf(): $.Orphan<$.List<string>>;
|
|
150
|
+
/**
|
|
151
|
+
* The importer of the file.
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
get implicitlyLoadedAfterOneOf(): $.List<string>;
|
|
155
|
+
_hasImplicitlyLoadedAfterOneOf(): boolean;
|
|
156
|
+
_initImplicitlyLoadedAfterOneOf(length: number): $.List<string>;
|
|
157
|
+
set implicitlyLoadedAfterOneOf(value: $.List<string>);
|
|
158
|
+
/**
|
|
159
|
+
* The signature preservation mode for the file.
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
get importer(): string;
|
|
163
|
+
set importer(value: string);
|
|
164
|
+
get preserveSignature(): PreserveSignatureType;
|
|
165
|
+
set preserveSignature(value: PreserveSignatureType);
|
|
166
|
+
toString(): string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The identifier for the file data.
|
|
170
|
+
*
|
|
171
|
+
*/
|
|
172
|
+
declare class PrebuiltData extends $.Struct {
|
|
173
|
+
static readonly _capnp: {
|
|
174
|
+
displayName: string;
|
|
175
|
+
id: string;
|
|
176
|
+
size: $.ObjectSize;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* An additional name for the file.
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
get id(): string;
|
|
183
|
+
set id(value: string);
|
|
184
|
+
/**
|
|
185
|
+
* The file exports.
|
|
186
|
+
*
|
|
187
|
+
*/
|
|
188
|
+
get name(): string;
|
|
189
|
+
set name(value: string);
|
|
190
|
+
_adoptExports(value: $.Orphan<$.List<string>>): void;
|
|
191
|
+
_disownExports(): $.Orphan<$.List<string>>;
|
|
192
|
+
/**
|
|
193
|
+
* The source map for the file.
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
get exports(): $.List<string>;
|
|
197
|
+
_hasExports(): boolean;
|
|
198
|
+
_initExports(length: number): $.List<string>;
|
|
199
|
+
set exports(value: $.List<string>);
|
|
200
|
+
get map(): string;
|
|
201
|
+
set map(value: string);
|
|
202
|
+
toString(): string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* The identifier for the file data.
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
declare class AssetData extends $.Struct {
|
|
209
|
+
static readonly _capnp: {
|
|
210
|
+
displayName: string;
|
|
211
|
+
id: string;
|
|
212
|
+
size: $.ObjectSize;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* An additional name for the file.
|
|
119
216
|
*
|
|
120
217
|
*/
|
|
121
|
-
get path(): string;
|
|
122
|
-
set path(value: string);
|
|
123
218
|
get id(): string;
|
|
124
219
|
set id(value: string);
|
|
220
|
+
/**
|
|
221
|
+
* Indicates whether the file needs a code reference.
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
get name(): string;
|
|
225
|
+
set name(value: string);
|
|
226
|
+
/**
|
|
227
|
+
* The original file name before any transformations.
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
230
|
+
get needsCodeReference(): boolean;
|
|
231
|
+
set needsCodeReference(value: boolean);
|
|
232
|
+
get originalFileName(): string;
|
|
233
|
+
set originalFileName(value: string);
|
|
125
234
|
toString(): string;
|
|
126
235
|
}
|
|
127
236
|
/**
|
|
128
|
-
*
|
|
237
|
+
* An identifier for the file.
|
|
238
|
+
*
|
|
239
|
+
*/
|
|
240
|
+
declare class FileId extends $.Struct {
|
|
241
|
+
static readonly _capnp: {
|
|
242
|
+
displayName: string;
|
|
243
|
+
id: string;
|
|
244
|
+
size: $.ObjectSize;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* A virtual (or actual) path to the file in the file system.
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
get id(): string;
|
|
251
|
+
set id(value: string);
|
|
252
|
+
get path(): string;
|
|
253
|
+
set path(value: string);
|
|
254
|
+
toString(): string;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* An identifier for the file.
|
|
129
258
|
*
|
|
130
259
|
*/
|
|
131
260
|
declare class FileData extends $.Struct {
|
|
@@ -135,44 +264,67 @@ declare class FileData extends $.Struct {
|
|
|
135
264
|
size: $.ObjectSize;
|
|
136
265
|
};
|
|
137
266
|
/**
|
|
138
|
-
*
|
|
267
|
+
* A virtual (or actual) path to the file in the file system.
|
|
139
268
|
*
|
|
140
269
|
*/
|
|
141
270
|
get path(): string;
|
|
142
271
|
set path(value: string);
|
|
143
|
-
get
|
|
144
|
-
set
|
|
272
|
+
get code(): string;
|
|
273
|
+
set code(value: string);
|
|
145
274
|
toString(): string;
|
|
146
275
|
}
|
|
147
|
-
declare class
|
|
276
|
+
declare class FileSystem extends $.Struct {
|
|
148
277
|
static readonly _capnp: {
|
|
149
278
|
displayName: string;
|
|
150
279
|
id: string;
|
|
151
280
|
size: $.ObjectSize;
|
|
152
281
|
};
|
|
153
|
-
static _Ids: $.ListCtor<
|
|
154
|
-
static _Metadata: $.ListCtor<FileMetadata>;
|
|
282
|
+
static _Ids: $.ListCtor<FileId>;
|
|
155
283
|
static _Files: $.ListCtor<FileData>;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
284
|
+
static _Metadata: $.ListCtor<FileMetadata>;
|
|
285
|
+
static _Assets: $.ListCtor<AssetData>;
|
|
286
|
+
static _Chunks: $.ListCtor<ChunkData>;
|
|
287
|
+
static _Prebuilt: $.ListCtor<PrebuiltData>;
|
|
288
|
+
_adoptIds(value: $.Orphan<$.List<FileId>>): void;
|
|
289
|
+
_disownIds(): $.Orphan<$.List<FileId>>;
|
|
290
|
+
get ids(): $.List<FileId>;
|
|
159
291
|
_hasIds(): boolean;
|
|
160
|
-
_initIds(length: number): $.List<
|
|
161
|
-
set ids(value: $.List<
|
|
162
|
-
_adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
|
|
163
|
-
_disownMetadata(): $.Orphan<$.List<FileMetadata>>;
|
|
164
|
-
get metadata(): $.List<FileMetadata>;
|
|
165
|
-
_hasMetadata(): boolean;
|
|
166
|
-
_initMetadata(length: number): $.List<FileMetadata>;
|
|
167
|
-
set metadata(value: $.List<FileMetadata>);
|
|
292
|
+
_initIds(length: number): $.List<FileId>;
|
|
293
|
+
set ids(value: $.List<FileId>);
|
|
168
294
|
_adoptFiles(value: $.Orphan<$.List<FileData>>): void;
|
|
169
295
|
_disownFiles(): $.Orphan<$.List<FileData>>;
|
|
170
296
|
get files(): $.List<FileData>;
|
|
171
297
|
_hasFiles(): boolean;
|
|
172
298
|
_initFiles(length: number): $.List<FileData>;
|
|
173
299
|
set files(value: $.List<FileData>);
|
|
300
|
+
_adoptMetadata(value: $.Orphan<$.List<FileMetadata>>): void;
|
|
301
|
+
_disownMetadata(): $.Orphan<$.List<FileMetadata>>;
|
|
302
|
+
get metadata(): $.List<FileMetadata>;
|
|
303
|
+
_hasMetadata(): boolean;
|
|
304
|
+
_initMetadata(length: number): $.List<FileMetadata>;
|
|
305
|
+
set metadata(value: $.List<FileMetadata>);
|
|
306
|
+
_adoptAssets(value: $.Orphan<$.List<AssetData>>): void;
|
|
307
|
+
_disownAssets(): $.Orphan<$.List<AssetData>>;
|
|
308
|
+
get assets(): $.List<AssetData>;
|
|
309
|
+
_hasAssets(): boolean;
|
|
310
|
+
_initAssets(length: number): $.List<AssetData>;
|
|
311
|
+
set assets(value: $.List<AssetData>);
|
|
312
|
+
_adoptChunks(value: $.Orphan<$.List<ChunkData>>): void;
|
|
313
|
+
_disownChunks(): $.Orphan<$.List<ChunkData>>;
|
|
314
|
+
get chunks(): $.List<ChunkData>;
|
|
315
|
+
_hasChunks(): boolean;
|
|
316
|
+
_initChunks(length: number): $.List<ChunkData>;
|
|
317
|
+
set chunks(value: $.List<ChunkData>);
|
|
318
|
+
_adoptPrebuilt(value: $.Orphan<$.List<PrebuiltData>>): void;
|
|
319
|
+
_disownPrebuilt(): $.Orphan<$.List<PrebuiltData>>;
|
|
320
|
+
get prebuilt(): $.List<PrebuiltData>;
|
|
321
|
+
_hasPrebuilt(): boolean;
|
|
322
|
+
_initPrebuilt(length: number): $.List<PrebuiltData>;
|
|
323
|
+
set prebuilt(value: $.List<PrebuiltData>);
|
|
174
324
|
toString(): string;
|
|
175
325
|
}
|
|
326
|
+
declare type __ΩFileType = any[];
|
|
327
|
+
declare type __ΩPreserveSignatureType = any[];
|
|
176
328
|
|
|
177
329
|
/**
|
|
178
330
|
* The powerlines library used by Storm Software for building NodeJS applications.
|
|
@@ -183,4 +335,4 @@ declare class FileSystemData extends $.Struct {
|
|
|
183
335
|
* @packageDocumentation
|
|
184
336
|
*/
|
|
185
337
|
|
|
186
|
-
export { FileData,
|
|
338
|
+
export { AssetData, ChunkData, FileData, FileId, FileMetadata, FileMetadata_KeyValuePair, FileSystem, FileType, PowerlinesAPI, PrebuiltData, PreserveSignatureType, type __ΩFileType, type __ΩPreserveSignatureType, _capnpFileId, PowerlinesAPI as default };
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-BLNT5INX.js';
|
|
2
2
|
import './chunk-J4BQZHTQ.js';
|
|
3
3
|
import './chunk-SMNKPH4T.js';
|
|
4
4
|
import './chunk-V3MLQDZQ.js';
|
|
5
5
|
import './chunk-OO3YXM72.js';
|
|
6
|
+
import './chunk-T2P533I5.js';
|
|
6
7
|
import './chunk-QE3WGMAP.js';
|
|
7
8
|
import './chunk-FNZDWE4L.js';
|
|
8
9
|
import './chunk-DRXFQCNC.js';
|
|
9
10
|
export { LogLevel } from './chunk-W5X3ZEZ5.js';
|
|
10
11
|
import './chunk-JGB5YQ2U.js';
|
|
11
|
-
export { plugins } from './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
12
|
+
export { plugins } from './chunk-IVABRCNA.js';
|
|
13
|
+
import './chunk-3HOOIAF4.js';
|
|
14
|
+
import './chunk-XDNNFAQR.js';
|
|
15
|
+
import './chunk-ZOMJH52N.js';
|
|
16
|
+
import './chunk-33BDG6M5.js';
|
|
17
|
+
import './chunk-GHHMURR4.js';
|
|
18
|
+
import './chunk-AK5B45AH.js';
|
|
18
19
|
export { defineConfig } from './chunk-CJSGAITR.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
20
|
+
import './chunk-W36NC3B7.js';
|
|
21
|
+
import './chunk-TSKJTJ2P.js';
|
|
22
|
+
import './chunk-M7N6RX2H.js';
|
|
23
|
+
import './chunk-XWBVMNBI.js';
|
|
23
24
|
import './chunk-VBR53KGY.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import { PowerlinesAPI } from './chunk-
|
|
27
|
-
export { FileData,
|
|
25
|
+
import './chunk-5CCEQUAZ.js';
|
|
26
|
+
import './chunk-GZNJUK7U.js';
|
|
27
|
+
import { PowerlinesAPI } from './chunk-E4M4KEL3.js';
|
|
28
|
+
export { AssetData, ChunkData, FileData, FileId, FileMetadata, FileMetadata_KeyValuePair, FileSystem, FileType, PowerlinesAPI, PrebuiltData, PreserveSignatureType, _capnpFileId } from './chunk-E4M4KEL3.js';
|
|
28
29
|
export { PLUGIN_NON_HOOK_FIELDS } from './chunk-JQCWV4DT.js';
|
|
29
|
-
export { __VFS_PATCH__, __VFS_REVERT__ } from './chunk-FM4ABZQ2.js';
|
|
30
30
|
export { SUPPORTED_COMMANDS } from './chunk-JKBJF3UI.js';
|
|
31
|
+
export { __VFS_PATCH__, __VFS_REVERT__ } from './chunk-VT7NVLLU.js';
|
|
31
32
|
import './chunk-SHUYVCID.js';
|
|
32
33
|
|
|
33
34
|
// src/index.ts
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { S as SelectHooksOptions, m as ResolvedConfig, A as APIContext, J as PrepareInlineConfig, N as NewInlineConfig, K as CleanInlineConfig, O as BuildInlineConfig, Q as LintInlineConfig, X as DocsInlineConfig, Y as DeployInlineConfig, s as HookKeys, p as PluginContext, n as EnvironmentContext, z as InferHookParameters, B as InferHookReturnType } from './config-DeUaQYc_.js';
|
|
2
|
+
|
|
3
|
+
type CallHookOptions = SelectHooksOptions & ({
|
|
4
|
+
/**
|
|
5
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue true
|
|
8
|
+
*/
|
|
9
|
+
sequential?: true;
|
|
10
|
+
/**
|
|
11
|
+
* How to handle multiple return values from hooks.
|
|
12
|
+
* - "merge": Merge all non-undefined return values (if they are objects).
|
|
13
|
+
* - "first": Return the first non-undefined value.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Merging only works if the return values are objects.
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue "merge"
|
|
19
|
+
*/
|
|
20
|
+
result?: "merge" | "first";
|
|
21
|
+
} | {
|
|
22
|
+
/**
|
|
23
|
+
* Whether to call the hooks sequentially or in parallel.
|
|
24
|
+
*/
|
|
25
|
+
sequential: false;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Powerlines API Interface
|
|
30
|
+
*/
|
|
31
|
+
interface API<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
32
|
+
/**
|
|
33
|
+
* The Powerlines shared API context
|
|
34
|
+
*/
|
|
35
|
+
context: APIContext<TResolvedConfig>;
|
|
36
|
+
/**
|
|
37
|
+
* Prepare the Powerlines API
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* This method will prepare the Powerlines API for use, initializing any necessary resources.
|
|
41
|
+
*
|
|
42
|
+
* @param inlineConfig - The inline configuration for the prepare command
|
|
43
|
+
*/
|
|
44
|
+
prepare: (inlineConfig: PrepareInlineConfig | NewInlineConfig | CleanInlineConfig | BuildInlineConfig | LintInlineConfig | DocsInlineConfig | DeployInlineConfig) => Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new Powerlines project
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* This method will create a new Powerlines project in the current directory.
|
|
50
|
+
*
|
|
51
|
+
* @param inlineConfig - The inline configuration for the new command
|
|
52
|
+
* @returns A promise that resolves when the project has been created
|
|
53
|
+
*/
|
|
54
|
+
new: (inlineConfig: NewInlineConfig) => Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Clean any previously prepared artifacts
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* This method will remove the previous Powerlines artifacts from the project.
|
|
60
|
+
*
|
|
61
|
+
* @param inlineConfig - The inline configuration for the clean command
|
|
62
|
+
* @returns A promise that resolves when the clean command has completed
|
|
63
|
+
*/
|
|
64
|
+
clean: (inlineConfig: CleanInlineConfig | PrepareInlineConfig) => Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Lint the project source code
|
|
67
|
+
*
|
|
68
|
+
* @param inlineConfig - The inline configuration for the lint command
|
|
69
|
+
* @returns A promise that resolves when the lint command has completed
|
|
70
|
+
*/
|
|
71
|
+
lint: (inlineConfig: LintInlineConfig) => Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* Build the project
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* This method will build the Powerlines project, generating the necessary artifacts.
|
|
77
|
+
*
|
|
78
|
+
* @param inlineConfig - The inline configuration for the build command
|
|
79
|
+
* @returns A promise that resolves when the build command has completed
|
|
80
|
+
*/
|
|
81
|
+
build: (inlineConfig: BuildInlineConfig) => Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Prepare the documentation for the project
|
|
84
|
+
*
|
|
85
|
+
* @param inlineConfig - The inline configuration for the docs command
|
|
86
|
+
* @returns A promise that resolves when the documentation generation has completed
|
|
87
|
+
*/
|
|
88
|
+
docs: (inlineConfig: DocsInlineConfig) => Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Deploy the project source code
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* This method will prepare and build the Powerlines project, generating the necessary artifacts for the deployment.
|
|
94
|
+
*
|
|
95
|
+
* @param inlineConfig - The inline configuration for the deploy command
|
|
96
|
+
*/
|
|
97
|
+
deploy: (inlineConfig: DeployInlineConfig) => Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Finalization process
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* This step includes any final processes or clean up required by Powerlines. It will be run after each Powerlines command.
|
|
103
|
+
*
|
|
104
|
+
* @returns A promise that resolves when the finalization process has completed
|
|
105
|
+
*/
|
|
106
|
+
finalize: () => Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Calls a hook in parallel
|
|
109
|
+
*
|
|
110
|
+
* @param hook - The hook to call
|
|
111
|
+
* @param options - Options for calling the hook
|
|
112
|
+
* @param args - The arguments to pass to the hook
|
|
113
|
+
* @returns The result of the hook call
|
|
114
|
+
*/
|
|
115
|
+
callHookParallel: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: Omit<CallHookOptions, "sequential"> & {
|
|
116
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
117
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
118
|
+
/**
|
|
119
|
+
* Calls a hook in sequence
|
|
120
|
+
*
|
|
121
|
+
* @param hook - The hook to call
|
|
122
|
+
* @param options - Options for calling the hook
|
|
123
|
+
* @param args - The arguments to pass to the hook
|
|
124
|
+
* @returns The result of the hook call
|
|
125
|
+
*/
|
|
126
|
+
callHookSequential: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(hook: TKey, options: Omit<CallHookOptions, "sequential"> & {
|
|
127
|
+
environment?: string | EnvironmentContext<TResolvedConfig>;
|
|
128
|
+
}, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
129
|
+
/**
|
|
130
|
+
* Calls the `"pre"` ordered hooks in sequence
|
|
131
|
+
*
|
|
132
|
+
* @param environment - The environment to use for the hook call
|
|
133
|
+
* @param hook - The hook to call
|
|
134
|
+
* @param args - The arguments to pass to the hook
|
|
135
|
+
* @returns The result of the hook call
|
|
136
|
+
*/
|
|
137
|
+
callPreHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
138
|
+
/**
|
|
139
|
+
* Calls the `"post"` ordered hooks in sequence
|
|
140
|
+
*
|
|
141
|
+
* @param environment - The environment to use for the hook call
|
|
142
|
+
* @param hook - The hook to call
|
|
143
|
+
* @param args - The arguments to pass to the hook
|
|
144
|
+
* @returns The result of the hook call
|
|
145
|
+
*/
|
|
146
|
+
callPostHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
147
|
+
/**
|
|
148
|
+
* Calls a hook in sequence
|
|
149
|
+
*
|
|
150
|
+
* @param environment - The environment to use for the hook call
|
|
151
|
+
* @param hook - The hook to call
|
|
152
|
+
* @param args - The arguments to pass to the hook
|
|
153
|
+
* @returns The result of the hook call
|
|
154
|
+
*/
|
|
155
|
+
callNormalHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
156
|
+
/**
|
|
157
|
+
* Calls the `"pre"` and `"post"` ordered hooks, as well as the normal hooks in sequence
|
|
158
|
+
*
|
|
159
|
+
* @param environment - The environment to use for the hook call
|
|
160
|
+
* @param hook - The hook to call
|
|
161
|
+
* @param args - The arguments to pass to the hook
|
|
162
|
+
* @returns The result of the hook call
|
|
163
|
+
*/
|
|
164
|
+
callHook: <TKey extends HookKeys<PluginContext<TResolvedConfig>>>(environment: string | EnvironmentContext<TResolvedConfig>, hook: TKey, ...args: InferHookParameters<PluginContext<TResolvedConfig>, TKey>) => Promise<InferHookReturnType<PluginContext<TResolvedConfig>, TKey>>;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type { API as A, CallHookOptions as C };
|