powerlines 0.30.8 → 0.30.9
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 +2 -3
- package/dist/api.js +1 -2
- package/dist/astro.cjs +4 -5
- package/dist/astro.js +3 -4
- package/dist/{chunk-I2JETGOV.cjs → chunk-5EV7B7LS.cjs} +3 -4
- package/dist/{chunk-N4G223DZ.js → chunk-AQSF7JCD.js} +3 -3
- package/dist/{chunk-4NBDS6NP.cjs → chunk-AU4GWG43.cjs} +5 -5
- package/dist/{chunk-JZXHHXYN.js → chunk-DJCJP2K3.js} +3 -4
- package/dist/chunk-DJVETZWM.js +7 -0
- package/dist/chunk-GGJUF3OS.cjs +10 -0
- package/dist/{chunk-J6EQ3W5E.cjs → chunk-I3HIGKIE.cjs} +4 -4
- package/dist/{chunk-FSZLSPRZ.js → chunk-LTUR7TOP.js} +3 -3
- package/dist/{chunk-Q5264YFH.js → chunk-MEZ6JUXR.js} +3 -3
- package/dist/chunk-QAJDNAY4.cjs +12 -0
- package/dist/{chunk-LZALJGUI.js → chunk-RDRKBM2J.js} +3 -3
- package/dist/{chunk-2GKLJTIZ.cjs → chunk-RPLRKL7X.cjs} +4 -4
- package/dist/{chunk-NT23SCZY.js → chunk-W6J7EJ2B.js} +3 -3
- package/dist/chunk-Z5BZ26WT.cjs +12 -0
- package/dist/esbuild.cjs +6 -7
- package/dist/esbuild.js +3 -4
- package/dist/farm.cjs +3 -4
- package/dist/farm.js +2 -3
- package/dist/index.cjs +18 -22
- package/dist/index.js +3 -3
- package/dist/lib/{api-DajcXmYN.d.ts → api-BZmSz-33.d.ts} +1 -1
- package/dist/lib/{api-DNuawr-4.d.cts → api-DUNpZZaT.d.cts} +1 -1
- package/dist/lib/build/esbuild.d.cts +2 -2
- package/dist/lib/build/esbuild.d.ts +2 -2
- package/dist/lib/build/index.d.cts +4 -4
- package/dist/lib/build/index.d.ts +4 -4
- package/dist/lib/build/rolldown.d.cts +2 -2
- package/dist/lib/build/rolldown.d.ts +2 -2
- package/dist/lib/build/rollup.d.cts +2 -2
- package/dist/lib/build/rollup.d.ts +2 -2
- package/dist/lib/build/rspack.d.cts +2 -2
- package/dist/lib/build/rspack.d.ts +2 -2
- package/dist/lib/build/tsdown.d.cts +2 -2
- package/dist/lib/build/tsdown.d.ts +2 -2
- package/dist/lib/build/tsup.d.cts +2 -2
- package/dist/lib/build/tsup.d.ts +2 -2
- package/dist/lib/build/unbuild.d.cts +4 -4
- package/dist/lib/build/unbuild.d.ts +4 -4
- package/dist/lib/build/vite.d.cts +2 -2
- package/dist/lib/build/vite.d.ts +2 -2
- package/dist/lib/build/webpack.d.cts +2 -2
- package/dist/lib/build/webpack.d.ts +2 -2
- package/dist/lib/{chunk-S2F75YZK.js → chunk-26EMHPES.js} +3 -3
- package/dist/lib/{chunk-S2F75YZK.js.map → chunk-26EMHPES.js.map} +1 -1
- package/dist/lib/{chunk-2OMOKN7Y.cjs → chunk-HN76MIOU.cjs} +5 -5
- package/dist/lib/{chunk-2OMOKN7Y.cjs.map → chunk-HN76MIOU.cjs.map} +1 -1
- package/dist/lib/{chunk-7CDTHZ3R.js → chunk-M446NHAJ.js} +3 -3
- package/dist/lib/{chunk-7CDTHZ3R.js.map → chunk-M446NHAJ.js.map} +1 -1
- package/dist/lib/{chunk-A7JRCJK2.cjs → chunk-NMTYZRD3.cjs} +12 -12
- package/dist/lib/{chunk-A7JRCJK2.cjs.map → chunk-NMTYZRD3.cjs.map} +1 -1
- package/dist/lib/{chunk-RNSQODBR.js → chunk-NXUMUI2Z.js} +3 -10
- package/dist/lib/chunk-NXUMUI2Z.js.map +1 -0
- package/dist/lib/{chunk-LJJDCMJM.js → chunk-P6UDUIUO.js} +4 -4
- package/dist/lib/{chunk-LJJDCMJM.js.map → chunk-P6UDUIUO.js.map} +1 -1
- package/dist/lib/{chunk-Q7V66FH3.cjs → chunk-RYILFB66.cjs} +6 -6
- package/dist/lib/{chunk-Q7V66FH3.cjs.map → chunk-RYILFB66.cjs.map} +1 -1
- package/dist/lib/{chunk-2HAOX4Q2.cjs → chunk-UWOD2XLX.cjs} +3 -10
- package/dist/lib/chunk-UWOD2XLX.cjs.map +1 -0
- package/dist/lib/{chunk-YQQPMY35.js → chunk-W5W4YR3Q.js} +4 -4
- package/dist/lib/{chunk-YQQPMY35.js.map → chunk-W5W4YR3Q.js.map} +1 -1
- package/dist/lib/{chunk-HTZ4V4L7.cjs → chunk-ZNPYK23Q.cjs} +13 -13
- package/dist/lib/{chunk-HTZ4V4L7.cjs.map → chunk-ZNPYK23Q.cjs.map} +1 -1
- package/dist/lib/{config-1l-NWS6B.d.cts → config-C6f56gi9.d.cts} +1 -1
- package/dist/lib/{config-DQPVzA4A.d.ts → config-Fp7jibtY.d.ts} +1 -1
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +4 -4
- package/dist/lib/contexts/api-context.d.ts +4 -4
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +4 -4
- package/dist/lib/contexts/context.d.ts +4 -4
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +4 -4
- package/dist/lib/contexts/environment-context.d.ts +4 -4
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +4 -4
- package/dist/lib/contexts/plugin-context.d.ts +4 -4
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.d.cts +2 -2
- package/dist/lib/fs/index.d.ts +2 -2
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/storage/base.d.cts +1 -1
- package/dist/lib/fs/storage/base.d.ts +1 -1
- package/dist/lib/fs/storage/file-system.d.cts +1 -1
- package/dist/lib/fs/storage/file-system.d.ts +1 -1
- package/dist/lib/fs/storage/index.d.cts +1 -1
- package/dist/lib/fs/storage/index.d.ts +1 -1
- package/dist/lib/fs/storage/virtual.d.cts +1 -1
- package/dist/lib/fs/storage/virtual.d.ts +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/{fs-abWbkR69.d.cts → fs-BAG-Ofs1.d.cts} +2 -5
- package/dist/lib/{fs-abWbkR69.d.ts → fs-BAG-Ofs1.d.ts} +2 -5
- package/dist/lib/index.cjs +10 -10
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-Dq5WN0wv.d.cts → internal-CXi-inTj.d.cts} +2 -2
- package/dist/lib/{internal-CiGtbK1K.d.ts → internal-CgeJlAcu.d.ts} +2 -2
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.ts +2 -2
- package/dist/lib/typescript/ts-morph.d.cts +2 -2
- package/dist/lib/typescript/ts-morph.d.ts +2 -2
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/{unplugin-D0_Lkr4u.d.cts → unplugin-BeguWiS6.d.cts} +2 -2
- package/dist/lib/{unplugin-DZ55zlz2.d.ts → unplugin-CK0n8Ng1.d.ts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/cache.d.cts +2 -2
- package/dist/lib/utilities/cache.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/source-file.d.cts +2 -2
- package/dist/lib/utilities/source-file.d.ts +2 -2
- package/dist/lib/utilities/source-map.d.cts +2 -2
- package/dist/lib/utilities/source-map.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +4 -5
- package/dist/next.js +3 -4
- package/dist/nuxt.cjs +7 -8
- package/dist/nuxt.js +5 -6
- package/dist/plugin-utils/{context-C67e3ndi.d.ts → context-BKDpmw6M.d.cts} +1 -4
- package/dist/plugin-utils/{context-C67e3ndi.d.cts → context-BKDpmw6M.d.ts} +1 -4
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/rolldown.cjs +6 -7
- package/dist/rolldown.js +3 -4
- package/dist/rollup.cjs +3 -4
- package/dist/rollup.js +2 -3
- package/dist/rspack.cjs +3 -4
- package/dist/rspack.js +2 -3
- package/dist/tsdown.cjs +4 -5
- package/dist/tsdown.js +3 -4
- package/dist/tsup.cjs +4 -5
- package/dist/tsup.js +3 -4
- package/dist/types/fs.cjs +3 -7
- package/dist/types/fs.d.cts +2 -5
- package/dist/types/fs.d.ts +2 -5
- package/dist/types/fs.js +1 -1
- package/dist/types/index.cjs +9 -13
- package/dist/types/index.js +1 -1
- package/dist/unloader.cjs +3 -4
- package/dist/unloader.js +2 -3
- package/dist/unplugin.cjs +5 -6
- package/dist/unplugin.js +3 -4
- package/dist/vite.cjs +6 -7
- package/dist/vite.js +3 -4
- package/dist/webpack.cjs +6 -7
- package/dist/webpack.js +3 -4
- package/package.json +2 -2
- package/dist/chunk-3NYXGOKU.cjs +0 -12
- package/dist/chunk-575Z57QD.js +0 -12
- package/dist/chunk-SALASTMK.cjs +0 -16
- package/dist/chunk-W3KMSMT7.cjs +0 -12
- package/dist/lib/chunk-2HAOX4Q2.cjs.map +0 -1
- package/dist/lib/chunk-RNSQODBR.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/plugin.ts","../../src/lib/contexts/environment-context.ts"],"names":["PLUGIN_NON_HOOK_FIELDS","PowerlinesEnvironmentContext","PowerlinesContext","fromConfig","workspaceConfig","config","context","init","powerlinesPath","resolvePackage","Error","environment","plugins","hooks","addPlugin","plugin","resolvedPlugin","isFunction","applyToEnvironment","result","Promise","resolve","isObject","Object","keys","length","isPluginConfig","$$internal","isPlugin","createPluginContext","push","filter","key","includes","reduce","ret","hook","pluginHook","isPluginHook","isHookExternal","enforce","addPluginHook","order","normal","getHookHandler","bind","selectHooks","options","preOrdered","map","h","find","p","name","handle","handler","preEnforced","postOrdered","postEnforced","resolvedConfig"],"mappings":";;;;;;;;;;AA4YO,IAAMA,sBAAAA,GAAyB;AACpC,EAAA,MAAA;AACA,EAAA,KAAA;AACA,EAAA,SAAA;AACA,EAAA,QAAA;AACA,EAAA,WAAA;AACA,EAAA;;;;ACnWK,IAAMC,4BAAAA,GAAN,MAAMA,6BAAAA,SAGHC,mCAAAA,CAAAA;EAlDV;;;;;;AAwDE,EAAA,MAAA,GAAoD,EAAC;;;;;;;;EAWrD,aAAoBC,UAAAA,CAGlBC,iBACAC,MAAAA,EACwD;AACxD,IAAA,MAAMC,OAAAA,GAAU,IAAIL,6BAAAA,CAClBI,MAAAA,EACAD,eAAAA,CAAAA;AAEF,IAAA,MAAME,QAAQC,IAAAA,EAAI;AAElBD,IAAAA,OAAAA,CAAQE,cAAAA,GAAiB,MAAMC,sBAAAA,CAAe,YAAA,CAAA;AAC9C,IAAA,IAAI,CAACH,QAAQE,cAAAA,EAAgB;AAC3B,MAAA,MAAM,IAAIE,MAAM,kDAAA,CAAA;AAClB,IAAA;AAEA,IAAA,OAAOJ,OAAAA;AACT,EAAA;;;;AAKOK,EAAAA,WAAAA;;;;AAKAC,EAAAA,OAAAA,GAAuD,EAAA;;;;AAK9D,EAAA,IAAoBP,MAAAA,GAA0B;AAC5C,IAAA,OAAO,KAAA,CAAMA,MAAAA;AACf,EAAA;AAEA,EAAA,IAAWQ,KA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ACVjD,YAAAA,OAAAA,EAASS,MAAAA,CAAOT;AAClB,WAAA;AACF,QAAA,CAAA,CAAA,CAAA;AAEJ,MAAA;AACF,IAAA;AAEA,IAAA,OAAOa,MAAAA;AACT,EAAA;AAEA,EAAA,WAAA,CACEd,QACAD,eAAAA,EACA;AACA,IAAA,KAAA,CAAMA,eAAAA,CAAAA;AAEN,IAAA,IAAA,CAAKuD,cAAAA,GAAiBtD,MAAAA;AACxB,EAAA;AACF","file":"chunk-HTZ4V4L7.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ArrayValues } from \"@stryke/types/array\";\nimport type { FunctionLike, MaybePromise } from \"@stryke/types/base\";\nimport type {\n ExternalIdResult,\n HookFilter,\n TransformResult,\n UnpluginOptions\n} from \"unplugin\";\nimport type { UnpluginBuildVariant } from \"./build\";\nimport type { CommandType } from \"./commands\";\nimport type { EnvironmentConfig, PluginConfig } from \"./config\";\nimport type {\n BuildPluginContext,\n PluginContext,\n UnresolvedContext\n} from \"./context\";\nimport type { EnvironmentResolvedConfig, ResolvedConfig } from \"./resolved\";\n\nexport interface PluginHookObject<\n THookFunction extends FunctionLike,\n TFilter extends keyof HookFilter = never\n> {\n /**\n * The order in which the plugin should be applied.\n */\n order?: \"pre\" | \"post\" | null | undefined;\n\n /**\n * A filter to determine when the hook should be called.\n */\n filter?: Pick<HookFilter, TFilter>;\n\n /**\n * The hook function to be called.\n */\n handler: THookFunction;\n}\n\nexport type PluginHook<\n THookFunction extends FunctionLike,\n TFilter extends keyof HookFilter = never\n> = THookFunction | PluginHookObject<THookFunction, TFilter>;\n\n/**\n * A result returned by the plugin from the `types` hook that describes the declaration types output file.\n */\nexport interface TypesResult {\n directives?: string[];\n code: string;\n}\n\ntype DeepPartial<T> = {\n [K in keyof T]?: DeepPartial<T[K]>;\n};\n\nexport type ConfigResult<TContext extends PluginContext = PluginContext> =\n DeepPartial<TContext[\"config\"]> & Record<string, any>;\n\nexport interface BasePluginHookFunctions<\n TContext extends PluginContext = PluginContext\n> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {\n /**\n * A function that returns configuration options to be merged with the build context's options.\n *\n * @remarks\n * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.\n *\n * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.\n *\n * @see https://vitejs.dev/guide/api-plugin#config\n *\n * @param this - The build context.\n * @param config - The partial configuration object to be modified.\n * @returns A promise that resolves to a partial configuration object.\n */\n config: (\n this: UnresolvedContext<TContext[\"config\"]>\n ) => MaybePromise<ConfigResult<TContext>>;\n\n /**\n * 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.\n *\n * @remarks\n * This hook is called for each environment with a partially resolved environment config that already accounts for the default environment config values set at the root level. If plugins need to modify the config of a given environment, they should do it in this hook instead of the config hook. Leaving the config hook only for modifying the root default environment config.\n *\n * @see https://vitejs.dev/guide/api-plugin#configenvironment\n *\n * @param this - The build context.\n * @param name - The name of the environment being configured.\n * @param environment - The Vite-like environment object containing information about the current build environment.\n * @returns A promise that resolves when the hook is complete.\n */\n configEnvironment: (\n this: TContext,\n name: string,\n environment: EnvironmentConfig\n ) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;\n\n /**\n * A hook that is called when the plugin is resolved.\n *\n * @see https://vitejs.dev/guide/api-plugin#configresolved\n *\n * @param this - The build context.\n * @returns A promise that resolves when the hook is complete.\n */\n configResolved: (this: TContext) => MaybePromise<void>;\n\n /**\n * A hook that is called to overwrite the generated declaration types file (.d.ts). The generated type definitions should describe the built-in modules/logic added during the `prepare` task.\n *\n * @param this - The build context.\n * @param code - The source code to generate types for.\n * @returns A promise that resolves when the hook is complete.\n */\n types: (\n this: TContext,\n code: string\n ) => MaybePromise<TypesResult | string | undefined | null>;\n\n /**\n * A hook that is called at the start of the build process.\n *\n * @param this - The build context and unplugin build context.\n * @returns A promise that resolves when the hook is complete.\n */\n buildStart: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext\n ) => MaybePromise<void>;\n\n /**\n * A hook that is called at the end of the build process.\n *\n * @param this - The build context and unplugin build context.\n * @returns A promise that resolves when the hook is complete.\n */\n buildEnd: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext\n ) => MaybePromise<void>;\n\n /**\n * A hook that is called to transform the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param code - The source code to transform.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n transform: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n code: string,\n id: string\n ) => MaybePromise<TransformResult>;\n\n /**\n * A hook that is called to load the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n load: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string\n ) => MaybePromise<TransformResult>;\n\n /**\n * A hook that is called to resolve the identifier of the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @param importer - The importer of the source code.\n * @param options - The options for resolving the identifier.\n * @returns A promise that resolves when the hook is complete.\n */\n resolveId: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string,\n importer: string | undefined,\n options: { isEntry: boolean }\n ) => MaybePromise<string | ExternalIdResult | null | undefined>;\n\n /**\n * A hook that is called to write the bundle to disk.\n *\n * @param this - The build context.\n * @returns A promise that resolves when the hook is complete.\n */\n writeBundle: (this: TContext) => MaybePromise<void>;\n}\n\nexport type BuildPlugin<\n TContext extends PluginContext = PluginContext,\n TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant,\n TOptions extends Required<UnpluginOptions>[TBuildVariant] =\n Required<UnpluginOptions>[TBuildVariant]\n> = {\n [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike\n ? (\n this: ThisParameterType<TOptions[TKey]> & TContext,\n ...args: Parameters<TOptions[TKey]>\n ) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>>\n : TOptions[TKey];\n};\n\nexport type ExternalPluginHookFunctionsVariant<\n TContext extends PluginContext = PluginContext,\n TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant\n> = {\n [TKey in keyof BuildPlugin<TContext, TBuildVariant> &\n string as `${TBuildVariant}:${TKey}`]: BuildPlugin<\n TContext,\n TBuildVariant\n >[TKey];\n};\n\nexport type ExternalPluginHookFunctions<TContext extends PluginContext> =\n ExternalPluginHookFunctionsVariant<TContext, \"vite\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"esbuild\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"rolldown\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"rollup\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"webpack\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"rspack\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"farm\">;\n\nexport type PluginHookFunctions<\n TContext extends PluginContext = PluginContext\n> = BasePluginHookFunctions<TContext> & ExternalPluginHookFunctions<TContext>;\n\nexport type PluginHooks<TContext extends PluginContext = PluginContext> = {\n [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<\n BasePluginHookFunctions<TContext>[TKey]\n >;\n} & {\n /**\n * A function that returns configuration options to be merged with the build context's options.\n *\n * @remarks\n * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.\n *\n * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.\n *\n * @see https://vitejs.dev/guide/api-plugin#config\n *\n * @param this - The build context.\n * @param config - The partial configuration object to be modified.\n * @returns A promise that resolves to a partial configuration object.\n */\n config:\n | PluginHook<\n (\n this: UnresolvedContext<TContext[\"config\"]>\n ) => MaybePromise<ConfigResult<TContext>>\n >\n | ConfigResult<TContext>;\n\n /**\n * A hook that is called to transform the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param code - The source code to transform.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n transform: PluginHook<\n (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n code: string,\n id: string\n ) => MaybePromise<TransformResult>,\n \"code\" | \"id\"\n >;\n\n /**\n * A hook that is called to load the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n load: PluginHook<\n (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string\n ) => MaybePromise<TransformResult>,\n \"id\"\n >;\n\n /**\n * A hook that is called to resolve the identifier of the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @param importer - The importer of the source code.\n * @param options - The options for resolving the identifier.\n * @returns A promise that resolves when the hook is complete.\n */\n resolveId: PluginHook<\n (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string,\n importer: string | undefined,\n options: { isEntry: boolean }\n ) => MaybePromise<string | ExternalIdResult | null | undefined>,\n \"id\"\n >;\n};\n\nexport type PluginBuildPlugins<TContext extends PluginContext = PluginContext> =\n {\n [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<\n TContext,\n TBuildVariant\n >;\n };\n\nexport interface Plugin<\n in out TContext extends PluginContext<ResolvedConfig> =\n PluginContext<ResolvedConfig>\n>\n extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {\n /**\n * The name of the plugin, for use in deduplication, error messages and logs.\n */\n name: string;\n\n /**\n * An API object that can be used for inter-plugin communication.\n *\n * @see https://rollupjs.org/plugin-development/#direct-plugin-communication\n */\n api?: Record<string, any>;\n\n /**\n * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.\n *\n * @remarks\n * The Plugin invocation order is as follows:\n * - `enforce: 'pre'` plugins\n * - `order: 'pre'` plugin hooks\n * - any other plugins (normal)\n * - `order: 'post'` plugin hooks\n * - `enforce: 'post'` plugins\n *\n * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering\n * @see https://rollupjs.org/plugin-development/#build-hooks\n * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post\n * @see https://esbuild.github.io/plugins/#concepts\n */\n enforce?: \"pre\" | \"post\";\n\n /**\n * A function to determine if two plugins are the same and can be de-duplicated.\n *\n * @remarks\n * If this is not provided, plugins are de-duplicated by comparing their names.\n *\n * @param other - The other plugin to compare against.\n * @returns `true` if the two plugins are the same, `false` otherwise.\n */\n dedupe?: false | ((other: Plugin<any>) => boolean);\n\n /**\n * A list of pre-requisite plugins that must be loaded before this plugin can be used.\n */\n dependsOn?: PluginConfig<any>[];\n\n /**\n * Define environments where this plugin should be active. By default, the plugin is active in all environments.\n *\n * @param environment - The environment to check.\n * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.\n */\n applyToEnvironment?: (\n environment: EnvironmentResolvedConfig\n ) => boolean | PluginConfig<any>;\n}\n\nexport const PLUGIN_NON_HOOK_FIELDS = [\n \"name\",\n \"api\",\n \"enforce\",\n \"dedupe\",\n \"dependsOn\",\n \"applyToEnvironment\"\n] as const;\n\nexport type PluginNonHookFields =\n | ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>\n | UnpluginBuildVariant;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { ArrayValues } from \"@stryke/types/array\";\nimport {\n addPluginHook,\n getHookHandler,\n isHookExternal,\n isPlugin,\n isPluginConfig,\n isPluginHook\n} from \"../../plugin-utils/helpers\";\nimport { WorkspaceConfig } from \"../../types/config\";\nimport {\n EnvironmentContext,\n EnvironmentContextPlugin,\n PluginContext,\n SelectHooksOptions,\n SelectHooksResult\n} from \"../../types/context\";\nimport { BaseHooksList, HookKeys, HooksList } from \"../../types/hooks\";\nimport { Plugin, PLUGIN_NON_HOOK_FIELDS } from \"../../types/plugin\";\nimport {\n EnvironmentResolvedConfig,\n ResolvedConfig\n} from \"../../types/resolved\";\nimport { PowerlinesContext } from \"./context\";\nimport { createPluginContext } from \"./plugin-context\";\n\nexport class PowerlinesEnvironmentContext<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>\n extends PowerlinesContext<TResolvedConfig>\n implements EnvironmentContext<TResolvedConfig>\n{\n /**\n * The hooks registered by plugins in this environment\n */\n #hooks: HooksList<PluginContext<TResolvedConfig>> = {} as HooksList<\n PluginContext<TResolvedConfig>\n >;\n\n /**\n * Create a new Storm context from the workspace root and user config.\n *\n * @param workspaceConfig - The root directory of the workspace.\n * @param config - The user configuration options.\n * @returns A promise that resolves to the new context.\n */\n public static async fromConfig<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n >(\n workspaceConfig: WorkspaceConfig,\n config: TResolvedConfig\n ): Promise<PowerlinesEnvironmentContext<TResolvedConfig>> {\n const context = new PowerlinesEnvironmentContext<TResolvedConfig>(\n config,\n workspaceConfig\n );\n await context.init();\n\n context.powerlinesPath = await resolvePackage(\"powerlines\");\n if (!context.powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n\n return context;\n }\n\n /**\n * The resolved environment configuration\n */\n public environment!: EnvironmentResolvedConfig;\n\n /**\n * The list of plugins applied to this environment\n */\n public plugins: EnvironmentContextPlugin<TResolvedConfig>[] = [];\n\n /**\n * The resolved configuration options\n */\n public override get config(): TResolvedConfig {\n return super.config;\n }\n\n public get hooks(): HooksList<PluginContext<TResolvedConfig>> {\n return this.#hooks;\n }\n\n public async addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>) {\n let resolvedPlugin = plugin;\n if (isFunction(plugin.applyToEnvironment)) {\n const result = await Promise.resolve(\n plugin.applyToEnvironment(this.environment)\n );\n\n if (!result || (isObject(result) && Object.keys(result).length === 0)) {\n return;\n }\n\n if (isPluginConfig(result)) {\n return this.$$internal.addPlugin(result);\n }\n\n resolvedPlugin = isPlugin<TResolvedConfig>(result) ? result : plugin;\n }\n\n const context = createPluginContext<TResolvedConfig>(resolvedPlugin, this);\n\n this.plugins.push({\n plugin: resolvedPlugin,\n context\n });\n\n this.#hooks = Object.keys(resolvedPlugin)\n .filter(\n key =>\n !PLUGIN_NON_HOOK_FIELDS.includes(\n key as ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>\n )\n )\n .reduce((ret, key) => {\n const hook = key as keyof HooksList<PluginContext<TResolvedConfig>>;\n const pluginHook = resolvedPlugin[hook as keyof typeof resolvedPlugin];\n if (!isPluginHook(pluginHook)) {\n return ret;\n }\n\n if (!isHookExternal(hook)) {\n ret[hook] ??= {};\n if (resolvedPlugin.enforce) {\n ret[hook][`${resolvedPlugin.enforce}Enforced`] ??= [];\n\n addPluginHook(\n context,\n resolvedPlugin,\n pluginHook,\n ret[hook][`${resolvedPlugin.enforce}Enforced`]!\n );\n\n return ret;\n }\n\n if (isFunction(pluginHook) || !pluginHook.order) {\n ret[hook].normal ??= [];\n\n addPluginHook(\n context,\n resolvedPlugin,\n pluginHook,\n ret[hook].normal\n );\n\n return ret;\n }\n\n ret[hook][`${pluginHook.order}Ordered`] ??= [];\n\n addPluginHook(\n context,\n resolvedPlugin,\n pluginHook,\n ret[hook][`${pluginHook.order}Ordered`]!\n );\n } else {\n ret[hook] ??= [];\n ret[hook].push({\n plugin: resolvedPlugin,\n hook: getHookHandler(pluginHook).bind(context)\n } as any);\n }\n\n return ret;\n }, this.hooks);\n }\n\n /**\n * Retrieves the hook handlers for a specific hook name\n */\n public selectHooks<TKey extends HookKeys<PluginContext<TResolvedConfig>>>(\n hook: TKey,\n options?: SelectHooksOptions\n ): SelectHooksResult<TResolvedConfig, TKey>[] {\n const result = [] as SelectHooksResult<TResolvedConfig, TKey>[];\n\n if (this.hooks[hook]) {\n if (!isHookExternal(hook)) {\n const hooks = this.hooks[hook] as BaseHooksList<\n PluginContext<TResolvedConfig>\n >;\n if (options?.order) {\n if (options?.order === \"pre\") {\n result.push(\n ...(hooks.preOrdered ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n result.push(\n ...(hooks.preEnforced ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n } else if (options?.order === \"post\") {\n result.push(\n ...(hooks.postOrdered ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n result.push(\n ...(hooks.postEnforced ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n } else {\n result.push(\n ...(hooks.normal ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n }\n } else {\n result.push(...this.selectHooks(hook, { order: \"pre\" }));\n result.push(...this.selectHooks(hook, { order: \"normal\" }));\n result.push(...this.selectHooks(hook, { order: \"post\" }));\n }\n } else {\n result.push(\n ...this.hooks[hook].map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${h.plugin.name}\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n }\n }\n\n return result;\n }\n\n protected constructor(\n config: TResolvedConfig,\n workspaceConfig: WorkspaceConfig\n ) {\n super(workspaceConfig);\n\n this.resolvedConfig = config;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/plugin.ts","../../src/lib/contexts/environment-context.ts"],"names":["PLUGIN_NON_HOOK_FIELDS","PowerlinesEnvironmentContext","PowerlinesContext","fromConfig","workspaceConfig","config","context","init","powerlinesPath","resolvePackage","Error","environment","plugins","hooks","addPlugin","plugin","resolvedPlugin","isFunction","applyToEnvironment","result","Promise","resolve","isObject","Object","keys","length","isPluginConfig","$$internal","isPlugin","createPluginContext","push","filter","key","includes","reduce","ret","hook","pluginHook","isPluginHook","isHookExternal","enforce","addPluginHook","order","normal","getHookHandler","bind","selectHooks","options","preOrdered","map","h","find","p","name","handle","handler","preEn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AA;AACrDvB,UAAAA,MAAAA,CAAOW,IAAAA,CAAI,GAAI,IAAA,CAAKgB,WAAAA,CAAYV,IAAAA,EAAM;YAAEM,KAAAA,EAAO;AAAS,WAAA,CAAA,CAAA;AACxDvB,UAAAA,MAAAA,CAAOW,IAAAA,CAAI,GAAI,IAAA,CAAKgB,WAAAA,CAAYV,IAAAA,EAAM;YAAEM,KAAAA,EAAO;AAAO,WAAA,CAAA,CAAA;AACxD,QAAA;MACF,CAAA,MAAO;AACLvB,QAAAA,MAAAA,CAAOW,IAAAA,CAAI,GACN,IAAA,CAAKjB,KAAAA,CAAMuB,IAAAA,CAAAA,CAAMa,GAAAA,CAAIC,CAAAA,CAAAA,KAAAA;AACtB,UAAA,MAAMnC,MAAAA,GAAS,IAAA,CAAKH,OAAAA,CAAQuC,IAAAA,CAC1BC,CAAAA,CAAAA,KAAKA,CAAAA,CAAErC,MAAAA,CAAOsC,IAAAA,KAASH,CAAAA,CAAEnC,MAAAA,CAAOsC,IAAI,CAAA;AAEtC,UAAA,IAAI,CAACtC,MAAAA,EAAQ;AACX,YAAA,MAAM,IAAIL,KAAAA,CACR,CAAA,0CAAA,EAA6CwC,CAAAA,CAAEnC,MAAAA,CAAOsC,IAAI,CAAA,EAAA,CAAI,CAAA;AAElE,UAAA;AAEA,UAAA,OAAO;AACLC,YAAAA,MAAAA,EAAQJ,CAAAA,CAAEK,OAAAA;AACVjD,YAAAA,OAAAA,EAASS,MAAAA,CAAOT;AAClB,WAAA;AACF,QAAA,CAAA,CAAA,CAAA;AAEJ,MAAA;AACF,IAAA;AAEA,IAAA,OAAOa,MAAAA;AACT,EAAA;AAEA,EAAA,WAAA,CACEd,QACAD,eAAAA,EACA;AACA,IAAA,KAAA,CAAMA,eAAAA,CAAAA;AAEN,IAAA,IAAA,CAAKuD,cAAAA,GAAiBtD,MAAAA;AACxB,EAAA;AACF","file":"chunk-ZNPYK23Q.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ArrayValues } from \"@stryke/types/array\";\nimport type { FunctionLike, MaybePromise } from \"@stryke/types/base\";\nimport type {\n ExternalIdResult,\n HookFilter,\n TransformResult,\n UnpluginOptions\n} from \"unplugin\";\nimport type { UnpluginBuildVariant } from \"./build\";\nimport type { CommandType } from \"./commands\";\nimport type { EnvironmentConfig, PluginConfig } from \"./config\";\nimport type {\n BuildPluginContext,\n PluginContext,\n UnresolvedContext\n} from \"./context\";\nimport type { EnvironmentResolvedConfig, ResolvedConfig } from \"./resolved\";\n\nexport interface PluginHookObject<\n THookFunction extends FunctionLike,\n TFilter extends keyof HookFilter = never\n> {\n /**\n * The order in which the plugin should be applied.\n */\n order?: \"pre\" | \"post\" | null | undefined;\n\n /**\n * A filter to determine when the hook should be called.\n */\n filter?: Pick<HookFilter, TFilter>;\n\n /**\n * The hook function to be called.\n */\n handler: THookFunction;\n}\n\nexport type PluginHook<\n THookFunction extends FunctionLike,\n TFilter extends keyof HookFilter = never\n> = THookFunction | PluginHookObject<THookFunction, TFilter>;\n\n/**\n * A result returned by the plugin from the `types` hook that describes the declaration types output file.\n */\nexport interface TypesResult {\n directives?: string[];\n code: string;\n}\n\ntype DeepPartial<T> = {\n [K in keyof T]?: DeepPartial<T[K]>;\n};\n\nexport type ConfigResult<TContext extends PluginContext = PluginContext> =\n DeepPartial<TContext[\"config\"]> & Record<string, any>;\n\nexport interface BasePluginHookFunctions<\n TContext extends PluginContext = PluginContext\n> extends Record<CommandType, (this: TContext) => MaybePromise<void>> {\n /**\n * A function that returns configuration options to be merged with the build context's options.\n *\n * @remarks\n * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.\n *\n * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.\n *\n * @see https://vitejs.dev/guide/api-plugin#config\n *\n * @param this - The build context.\n * @param config - The partial configuration object to be modified.\n * @returns A promise that resolves to a partial configuration object.\n */\n config: (\n this: UnresolvedContext<TContext[\"config\"]>\n ) => MaybePromise<ConfigResult<TContext>>;\n\n /**\n * 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.\n *\n * @remarks\n * This hook is called for each environment with a partially resolved environment config that already accounts for the default environment config values set at the root level. If plugins need to modify the config of a given environment, they should do it in this hook instead of the config hook. Leaving the config hook only for modifying the root default environment config.\n *\n * @see https://vitejs.dev/guide/api-plugin#configenvironment\n *\n * @param this - The build context.\n * @param name - The name of the environment being configured.\n * @param environment - The Vite-like environment object containing information about the current build environment.\n * @returns A promise that resolves when the hook is complete.\n */\n configEnvironment: (\n this: TContext,\n name: string,\n environment: EnvironmentConfig\n ) => MaybePromise<Partial<EnvironmentResolvedConfig> | undefined | null>;\n\n /**\n * A hook that is called when the plugin is resolved.\n *\n * @see https://vitejs.dev/guide/api-plugin#configresolved\n *\n * @param this - The build context.\n * @returns A promise that resolves when the hook is complete.\n */\n configResolved: (this: TContext) => MaybePromise<void>;\n\n /**\n * A hook that is called to overwrite the generated declaration types file (.d.ts). The generated type definitions should describe the built-in modules/logic added during the `prepare` task.\n *\n * @param this - The build context.\n * @param code - The source code to generate types for.\n * @returns A promise that resolves when the hook is complete.\n */\n types: (\n this: TContext,\n code: string\n ) => MaybePromise<TypesResult | string | undefined | null>;\n\n /**\n * A hook that is called at the start of the build process.\n *\n * @param this - The build context and unplugin build context.\n * @returns A promise that resolves when the hook is complete.\n */\n buildStart: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext\n ) => MaybePromise<void>;\n\n /**\n * A hook that is called at the end of the build process.\n *\n * @param this - The build context and unplugin build context.\n * @returns A promise that resolves when the hook is complete.\n */\n buildEnd: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext\n ) => MaybePromise<void>;\n\n /**\n * A hook that is called to transform the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param code - The source code to transform.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n transform: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n code: string,\n id: string\n ) => MaybePromise<TransformResult>;\n\n /**\n * A hook that is called to load the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n load: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string\n ) => MaybePromise<TransformResult>;\n\n /**\n * A hook that is called to resolve the identifier of the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @param importer - The importer of the source code.\n * @param options - The options for resolving the identifier.\n * @returns A promise that resolves when the hook is complete.\n */\n resolveId: (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string,\n importer: string | undefined,\n options: { isEntry: boolean }\n ) => MaybePromise<string | ExternalIdResult | null | undefined>;\n\n /**\n * A hook that is called to write the bundle to disk.\n *\n * @param this - The build context.\n * @returns A promise that resolves when the hook is complete.\n */\n writeBundle: (this: TContext) => MaybePromise<void>;\n}\n\nexport type BuildPlugin<\n TContext extends PluginContext = PluginContext,\n TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant,\n TOptions extends Required<UnpluginOptions>[TBuildVariant] =\n Required<UnpluginOptions>[TBuildVariant]\n> = {\n [TKey in keyof TOptions]: TOptions[TKey] extends FunctionLike\n ? (\n this: ThisParameterType<TOptions[TKey]> & TContext,\n ...args: Parameters<TOptions[TKey]>\n ) => ReturnType<TOptions[TKey]> | MaybePromise<ReturnType<TOptions[TKey]>>\n : TOptions[TKey];\n};\n\nexport type ExternalPluginHookFunctionsVariant<\n TContext extends PluginContext = PluginContext,\n TBuildVariant extends UnpluginBuildVariant = UnpluginBuildVariant\n> = {\n [TKey in keyof BuildPlugin<TContext, TBuildVariant> &\n string as `${TBuildVariant}:${TKey}`]: BuildPlugin<\n TContext,\n TBuildVariant\n >[TKey];\n};\n\nexport type ExternalPluginHookFunctions<TContext extends PluginContext> =\n ExternalPluginHookFunctionsVariant<TContext, \"vite\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"esbuild\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"rolldown\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"rollup\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"webpack\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"rspack\"> &\n ExternalPluginHookFunctionsVariant<TContext, \"farm\">;\n\nexport type PluginHookFunctions<\n TContext extends PluginContext = PluginContext\n> = BasePluginHookFunctions<TContext> & ExternalPluginHookFunctions<TContext>;\n\nexport type PluginHooks<TContext extends PluginContext = PluginContext> = {\n [TKey in keyof BasePluginHookFunctions<TContext>]: PluginHook<\n BasePluginHookFunctions<TContext>[TKey]\n >;\n} & {\n /**\n * A function that returns configuration options to be merged with the build context's options.\n *\n * @remarks\n * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.\n *\n * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.\n *\n * @see https://vitejs.dev/guide/api-plugin#config\n *\n * @param this - The build context.\n * @param config - The partial configuration object to be modified.\n * @returns A promise that resolves to a partial configuration object.\n */\n config:\n | PluginHook<\n (\n this: UnresolvedContext<TContext[\"config\"]>\n ) => MaybePromise<ConfigResult<TContext>>\n >\n | ConfigResult<TContext>;\n\n /**\n * A hook that is called to transform the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param code - The source code to transform.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n transform: PluginHook<\n (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n code: string,\n id: string\n ) => MaybePromise<TransformResult>,\n \"code\" | \"id\"\n >;\n\n /**\n * A hook that is called to load the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @returns A promise that resolves when the hook is complete.\n */\n load: PluginHook<\n (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string\n ) => MaybePromise<TransformResult>,\n \"id\"\n >;\n\n /**\n * A hook that is called to resolve the identifier of the source code.\n *\n * @param this - The build context, unplugin build context, and unplugin context.\n * @param id - The identifier of the source code.\n * @param importer - The importer of the source code.\n * @param options - The options for resolving the identifier.\n * @returns A promise that resolves when the hook is complete.\n */\n resolveId: PluginHook<\n (\n this: BuildPluginContext<TContext[\"config\"]> & TContext,\n id: string,\n importer: string | undefined,\n options: { isEntry: boolean }\n ) => MaybePromise<string | ExternalIdResult | null | undefined>,\n \"id\"\n >;\n};\n\nexport type PluginBuildPlugins<TContext extends PluginContext = PluginContext> =\n {\n [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<\n TContext,\n TBuildVariant\n >;\n };\n\nexport interface Plugin<\n in out TContext extends PluginContext<ResolvedConfig> =\n PluginContext<ResolvedConfig>\n>\n extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {\n /**\n * The name of the plugin, for use in deduplication, error messages and logs.\n */\n name: string;\n\n /**\n * An API object that can be used for inter-plugin communication.\n *\n * @see https://rollupjs.org/plugin-development/#direct-plugin-communication\n */\n api?: Record<string, any>;\n\n /**\n * Enforce plugin invocation tier similar to webpack loaders. Hooks ordering is still subject to the `order` property in the hook object.\n *\n * @remarks\n * The Plugin invocation order is as follows:\n * - `enforce: 'pre'` plugins\n * - `order: 'pre'` plugin hooks\n * - any other plugins (normal)\n * - `order: 'post'` plugin hooks\n * - `enforce: 'post'` plugins\n *\n * @see https://vitejs.dev/guide/api-plugin.html#plugin-ordering\n * @see https://rollupjs.org/plugin-development/#build-hooks\n * @see https://webpack.js.org/concepts/loaders/#enforce---pre-and-post\n * @see https://esbuild.github.io/plugins/#concepts\n */\n enforce?: \"pre\" | \"post\";\n\n /**\n * A function to determine if two plugins are the same and can be de-duplicated.\n *\n * @remarks\n * If this is not provided, plugins are de-duplicated by comparing their names.\n *\n * @param other - The other plugin to compare against.\n * @returns `true` if the two plugins are the same, `false` otherwise.\n */\n dedupe?: false | ((other: Plugin<any>) => boolean);\n\n /**\n * A list of pre-requisite plugins that must be loaded before this plugin can be used.\n */\n dependsOn?: PluginConfig<any>[];\n\n /**\n * Define environments where this plugin should be active. By default, the plugin is active in all environments.\n *\n * @param environment - The environment to check.\n * @returns `true` if the plugin should be active in the specified environment, `false` otherwise.\n */\n applyToEnvironment?: (\n environment: EnvironmentResolvedConfig\n ) => boolean | PluginConfig<any>;\n}\n\nexport const PLUGIN_NON_HOOK_FIELDS = [\n \"name\",\n \"api\",\n \"enforce\",\n \"dedupe\",\n \"dependsOn\",\n \"applyToEnvironment\"\n] as const;\n\nexport type PluginNonHookFields =\n | ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>\n | UnpluginBuildVariant;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isObject } from \"@stryke/type-checks/is-object\";\nimport { ArrayValues } from \"@stryke/types/array\";\nimport {\n addPluginHook,\n getHookHandler,\n isHookExternal,\n isPlugin,\n isPluginConfig,\n isPluginHook\n} from \"../../plugin-utils/helpers\";\nimport { WorkspaceConfig } from \"../../types/config\";\nimport {\n EnvironmentContext,\n EnvironmentContextPlugin,\n PluginContext,\n SelectHooksOptions,\n SelectHooksResult\n} from \"../../types/context\";\nimport { BaseHooksList, HookKeys, HooksList } from \"../../types/hooks\";\nimport { Plugin, PLUGIN_NON_HOOK_FIELDS } from \"../../types/plugin\";\nimport {\n EnvironmentResolvedConfig,\n ResolvedConfig\n} from \"../../types/resolved\";\nimport { PowerlinesContext } from \"./context\";\nimport { createPluginContext } from \"./plugin-context\";\n\nexport class PowerlinesEnvironmentContext<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>\n extends PowerlinesContext<TResolvedConfig>\n implements EnvironmentContext<TResolvedConfig>\n{\n /**\n * The hooks registered by plugins in this environment\n */\n #hooks: HooksList<PluginContext<TResolvedConfig>> = {} as HooksList<\n PluginContext<TResolvedConfig>\n >;\n\n /**\n * Create a new Storm context from the workspace root and user config.\n *\n * @param workspaceConfig - The root directory of the workspace.\n * @param config - The user configuration options.\n * @returns A promise that resolves to the new context.\n */\n public static async fromConfig<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n >(\n workspaceConfig: WorkspaceConfig,\n config: TResolvedConfig\n ): Promise<PowerlinesEnvironmentContext<TResolvedConfig>> {\n const context = new PowerlinesEnvironmentContext<TResolvedConfig>(\n config,\n workspaceConfig\n );\n await context.init();\n\n context.powerlinesPath = await resolvePackage(\"powerlines\");\n if (!context.powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n\n return context;\n }\n\n /**\n * The resolved environment configuration\n */\n public environment!: EnvironmentResolvedConfig;\n\n /**\n * The list of plugins applied to this environment\n */\n public plugins: EnvironmentContextPlugin<TResolvedConfig>[] = [];\n\n /**\n * The resolved configuration options\n */\n public override get config(): TResolvedConfig {\n return super.config;\n }\n\n public get hooks(): HooksList<PluginContext<TResolvedConfig>> {\n return this.#hooks;\n }\n\n public async addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>) {\n let resolvedPlugin = plugin;\n if (isFunction(plugin.applyToEnvironment)) {\n const result = await Promise.resolve(\n plugin.applyToEnvironment(this.environment)\n );\n\n if (!result || (isObject(result) && Object.keys(result).length === 0)) {\n return;\n }\n\n if (isPluginConfig(result)) {\n return this.$$internal.addPlugin(result);\n }\n\n resolvedPlugin = isPlugin<TResolvedConfig>(result) ? result : plugin;\n }\n\n const context = createPluginContext<TResolvedConfig>(resolvedPlugin, this);\n\n this.plugins.push({\n plugin: resolvedPlugin,\n context\n });\n\n this.#hooks = Object.keys(resolvedPlugin)\n .filter(\n key =>\n !PLUGIN_NON_HOOK_FIELDS.includes(\n key as ArrayValues<typeof PLUGIN_NON_HOOK_FIELDS>\n )\n )\n .reduce((ret, key) => {\n const hook = key as keyof HooksList<PluginContext<TResolvedConfig>>;\n const pluginHook = resolvedPlugin[hook as keyof typeof resolvedPlugin];\n if (!isPluginHook(pluginHook)) {\n return ret;\n }\n\n if (!isHookExternal(hook)) {\n ret[hook] ??= {};\n if (resolvedPlugin.enforce) {\n ret[hook][`${resolvedPlugin.enforce}Enforced`] ??= [];\n\n addPluginHook(\n context,\n resolvedPlugin,\n pluginHook,\n ret[hook][`${resolvedPlugin.enforce}Enforced`]!\n );\n\n return ret;\n }\n\n if (isFunction(pluginHook) || !pluginHook.order) {\n ret[hook].normal ??= [];\n\n addPluginHook(\n context,\n resolvedPlugin,\n pluginHook,\n ret[hook].normal\n );\n\n return ret;\n }\n\n ret[hook][`${pluginHook.order}Ordered`] ??= [];\n\n addPluginHook(\n context,\n resolvedPlugin,\n pluginHook,\n ret[hook][`${pluginHook.order}Ordered`]!\n );\n } else {\n ret[hook] ??= [];\n ret[hook].push({\n plugin: resolvedPlugin,\n hook: getHookHandler(pluginHook).bind(context)\n } as any);\n }\n\n return ret;\n }, this.hooks);\n }\n\n /**\n * Retrieves the hook handlers for a specific hook name\n */\n public selectHooks<TKey extends HookKeys<PluginContext<TResolvedConfig>>>(\n hook: TKey,\n options?: SelectHooksOptions\n ): SelectHooksResult<TResolvedConfig, TKey>[] {\n const result = [] as SelectHooksResult<TResolvedConfig, TKey>[];\n\n if (this.hooks[hook]) {\n if (!isHookExternal(hook)) {\n const hooks = this.hooks[hook] as BaseHooksList<\n PluginContext<TResolvedConfig>\n >;\n if (options?.order) {\n if (options?.order === \"pre\") {\n result.push(\n ...(hooks.preOrdered ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n result.push(\n ...(hooks.preEnforced ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n } else if (options?.order === \"post\") {\n result.push(\n ...(hooks.postOrdered ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n result.push(\n ...(hooks.postEnforced ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n } else {\n result.push(\n ...(hooks.normal ?? []).map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${\n h.plugin.name\n }\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n }\n } else {\n result.push(...this.selectHooks(hook, { order: \"pre\" }));\n result.push(...this.selectHooks(hook, { order: \"normal\" }));\n result.push(...this.selectHooks(hook, { order: \"post\" }));\n }\n } else {\n result.push(\n ...this.hooks[hook].map(h => {\n const plugin = this.plugins.find(\n p => p.plugin.name === h.plugin.name\n );\n if (!plugin) {\n throw new Error(\n `Could not find plugin context for plugin \"${h.plugin.name}\".`\n );\n }\n\n return {\n handle: h.handler,\n context: plugin.context\n };\n })\n );\n }\n }\n\n return result;\n }\n\n protected constructor(\n config: TResolvedConfig,\n workspaceConfig: WorkspaceConfig\n ) {\n super(workspaceConfig);\n\n this.resolvedConfig = config;\n }\n}\n"]}
|
|
@@ -26,7 +26,7 @@ import { Range } from 'semver';
|
|
|
26
26
|
import { Project } from 'ts-morph';
|
|
27
27
|
import { RequestInfo, Response } from 'undici';
|
|
28
28
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
29
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, b as StoragePort, c as StoragePreset } from './fs-
|
|
29
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, b as StoragePort, c as StoragePreset } from './fs-BAG-Ofs1.cjs';
|
|
30
30
|
import { ArrayValues } from '@stryke/types/array';
|
|
31
31
|
import { P as ParsedTypeScriptConfig, T as TSConfig } from './tsconfig-Bz-CiFqD.cjs';
|
|
32
32
|
|
|
@@ -26,7 +26,7 @@ import { Range } from 'semver';
|
|
|
26
26
|
import { Project } from 'ts-morph';
|
|
27
27
|
import { RequestInfo, Response } from 'undici';
|
|
28
28
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
29
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, b as StoragePort, c as StoragePreset } from './fs-
|
|
29
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, b as StoragePort, c as StoragePreset } from './fs-BAG-Ofs1.js';
|
|
30
30
|
import { ArrayValues } from '@stryke/types/array';
|
|
31
31
|
import { P as ParsedTypeScriptConfig, T as TSConfig } from './tsconfig-Bz-CiFqD.js';
|
|
32
32
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-C6f56gi9.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -27,7 +27,7 @@ import 'semver';
|
|
|
27
27
|
import 'ts-morph';
|
|
28
28
|
import 'undici';
|
|
29
29
|
import 'unplugin';
|
|
30
|
-
import './fs-
|
|
30
|
+
import './fs-BAG-Ofs1.cjs';
|
|
31
31
|
import '@stryke/fs/resolve';
|
|
32
32
|
import '@stryke/types/array';
|
|
33
33
|
import './tsconfig-Bz-CiFqD.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-Fp7jibtY.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -27,7 +27,7 @@ import 'semver';
|
|
|
27
27
|
import 'ts-morph';
|
|
28
28
|
import 'undici';
|
|
29
29
|
import 'unplugin';
|
|
30
|
-
import './fs-
|
|
30
|
+
import './fs-BAG-Ofs1.js';
|
|
31
31
|
import '@stryke/fs/resolve';
|
|
32
32
|
import '@stryke/types/array';
|
|
33
33
|
import './tsconfig-Bz-CiFqD.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkRYILFB66_cjs = require('../chunk-RYILFB66.cjs');
|
|
4
|
+
require('../chunk-ZNPYK23Q.cjs');
|
|
5
5
|
require('../chunk-63DAS6TJ.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-HN76MIOU.cjs');
|
|
7
7
|
require('../chunk-BJGMF356.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-UWOD2XLX.cjs');
|
|
9
9
|
require('../chunk-AQNUFK3L.cjs');
|
|
10
10
|
require('../chunk-QBE4SZN6.cjs');
|
|
11
11
|
require('../chunk-Y5KONJVR.cjs');
|
|
@@ -22,7 +22,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRYILFB66_cjs.PowerlinesAPIContext; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=api-context.cjs.map
|
|
28
28
|
//# sourceMappingURL=api-context.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-
|
|
2
|
-
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-
|
|
1
|
+
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-C6f56gi9.cjs';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-CXi-inTj.cjs';
|
|
3
3
|
import { PowerlinesContext } from './context.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -29,13 +29,13 @@ import 'semver';
|
|
|
29
29
|
import 'ts-morph';
|
|
30
30
|
import 'undici';
|
|
31
31
|
import 'unplugin';
|
|
32
|
-
import '../fs-
|
|
32
|
+
import '../fs-BAG-Ofs1.cjs';
|
|
33
33
|
import '@stryke/fs/resolve';
|
|
34
34
|
import '@stryke/types/array';
|
|
35
35
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
36
36
|
import '@stryke/types/tsconfig';
|
|
37
37
|
import 'typescript';
|
|
38
|
-
import '../api-
|
|
38
|
+
import '../api-DUNpZZaT.cjs';
|
|
39
39
|
import 'flat-cache';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-
|
|
2
|
-
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-
|
|
1
|
+
import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-Fp7jibtY.js';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-CgeJlAcu.js';
|
|
3
3
|
import { PowerlinesContext } from './context.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -29,13 +29,13 @@ import 'semver';
|
|
|
29
29
|
import 'ts-morph';
|
|
30
30
|
import 'undici';
|
|
31
31
|
import 'unplugin';
|
|
32
|
-
import '../fs-
|
|
32
|
+
import '../fs-BAG-Ofs1.js';
|
|
33
33
|
import '@stryke/fs/resolve';
|
|
34
34
|
import '@stryke/types/array';
|
|
35
35
|
import '../tsconfig-Bz-CiFqD.js';
|
|
36
36
|
import '@stryke/types/tsconfig';
|
|
37
37
|
import 'typescript';
|
|
38
|
-
import '../api-
|
|
38
|
+
import '../api-BZmSz-33.js';
|
|
39
39
|
import 'flat-cache';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPIContext } from '../chunk-W5W4YR3Q.js';
|
|
2
|
+
import '../chunk-26EMHPES.js';
|
|
3
3
|
import '../chunk-6OGQTUXF.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-M446NHAJ.js';
|
|
5
5
|
import '../chunk-45D4XIOK.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-NXUMUI2Z.js';
|
|
7
7
|
import '../chunk-YJEZASNU.js';
|
|
8
8
|
import '../chunk-5QMQ5G73.js';
|
|
9
9
|
import '../chunk-CTMPQSK7.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHN76MIOU_cjs = require('../chunk-HN76MIOU.cjs');
|
|
4
4
|
require('../chunk-BJGMF356.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-UWOD2XLX.cjs');
|
|
6
6
|
require('../chunk-AQNUFK3L.cjs');
|
|
7
7
|
require('../chunk-QBE4SZN6.cjs');
|
|
8
8
|
require('../chunk-Y5KONJVR.cjs');
|
|
@@ -19,7 +19,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHN76MIOU_cjs.PowerlinesContext; }
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=context.cjs.map
|
|
25
25
|
//# sourceMappingURL=context.cjs.map
|
|
@@ -6,9 +6,9 @@ import { Range } from 'semver';
|
|
|
6
6
|
import { Project } from 'ts-morph';
|
|
7
7
|
import { RequestInfo, Response } from 'undici';
|
|
8
8
|
import { ExternalIdResult, UnpluginMessage } from 'unplugin';
|
|
9
|
-
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, k as InitContextOptions } from '../config-
|
|
10
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions } from '../fs-
|
|
11
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
9
|
+
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, k as InitContextOptions } from '../config-C6f56gi9.cjs';
|
|
10
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions } from '../fs-BAG-Ofs1.cjs';
|
|
11
|
+
import { a as UNSAFE_ContextInternal } from '../internal-CXi-inTj.cjs';
|
|
12
12
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.cjs';
|
|
13
13
|
import '@storm-software/build-tools/types';
|
|
14
14
|
import '@storm-software/config-tools/types';
|
|
@@ -33,7 +33,7 @@ import 'jiti';
|
|
|
33
33
|
import 'magic-string';
|
|
34
34
|
import '@stryke/types/array';
|
|
35
35
|
import '@stryke/fs/resolve';
|
|
36
|
-
import '../api-
|
|
36
|
+
import '../api-DUNpZZaT.cjs';
|
|
37
37
|
import '@stryke/types/tsconfig';
|
|
38
38
|
import 'typescript';
|
|
39
39
|
|
|
@@ -6,9 +6,9 @@ import { Range } from 'semver';
|
|
|
6
6
|
import { Project } from 'ts-morph';
|
|
7
7
|
import { RequestInfo, Response } from 'undici';
|
|
8
8
|
import { ExternalIdResult, UnpluginMessage } from 'unplugin';
|
|
9
|
-
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, k as InitContextOptions } from '../config-
|
|
10
|
-
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions } from '../fs-
|
|
11
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
9
|
+
import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, p as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, q as ParseOptions, r as TransformResult, k as InitContextOptions } from '../config-Fp7jibtY.js';
|
|
10
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, W as WriteOptions } from '../fs-BAG-Ofs1.js';
|
|
11
|
+
import { a as UNSAFE_ContextInternal } from '../internal-CgeJlAcu.js';
|
|
12
12
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.js';
|
|
13
13
|
import '@storm-software/build-tools/types';
|
|
14
14
|
import '@storm-software/config-tools/types';
|
|
@@ -33,7 +33,7 @@ import 'jiti';
|
|
|
33
33
|
import 'magic-string';
|
|
34
34
|
import '@stryke/types/array';
|
|
35
35
|
import '@stryke/fs/resolve';
|
|
36
|
-
import '../api-
|
|
36
|
+
import '../api-BZmSz-33.js';
|
|
37
37
|
import '@stryke/types/tsconfig';
|
|
38
38
|
import 'typescript';
|
|
39
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PowerlinesContext } from '../chunk-
|
|
1
|
+
export { PowerlinesContext } from '../chunk-M446NHAJ.js';
|
|
2
2
|
import '../chunk-45D4XIOK.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-NXUMUI2Z.js';
|
|
4
4
|
import '../chunk-YJEZASNU.js';
|
|
5
5
|
import '../chunk-5QMQ5G73.js';
|
|
6
6
|
import '../chunk-CTMPQSK7.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZNPYK23Q_cjs = require('../chunk-ZNPYK23Q.cjs');
|
|
4
4
|
require('../chunk-63DAS6TJ.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-HN76MIOU.cjs');
|
|
6
6
|
require('../chunk-BJGMF356.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-UWOD2XLX.cjs');
|
|
8
8
|
require('../chunk-AQNUFK3L.cjs');
|
|
9
9
|
require('../chunk-QBE4SZN6.cjs');
|
|
10
10
|
require('../chunk-Y5KONJVR.cjs');
|
|
@@ -21,7 +21,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkZNPYK23Q_cjs.PowerlinesEnvironmentContext; }
|
|
25
25
|
});
|
|
26
26
|
//# sourceMappingURL=environment-context.cjs.map
|
|
27
27
|
//# sourceMappingURL=environment-context.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-
|
|
1
|
+
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-C6f56gi9.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -28,15 +28,15 @@ import 'semver';
|
|
|
28
28
|
import 'ts-morph';
|
|
29
29
|
import 'undici';
|
|
30
30
|
import 'unplugin';
|
|
31
|
-
import '../fs-
|
|
31
|
+
import '../fs-BAG-Ofs1.cjs';
|
|
32
32
|
import '@stryke/fs/resolve';
|
|
33
33
|
import '@stryke/types/array';
|
|
34
34
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
35
35
|
import '@stryke/types/tsconfig';
|
|
36
36
|
import 'typescript';
|
|
37
37
|
import 'flat-cache';
|
|
38
|
-
import '../internal-
|
|
39
|
-
import '../api-
|
|
38
|
+
import '../internal-CXi-inTj.cjs';
|
|
39
|
+
import '../api-DUNpZZaT.cjs';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
42
42
|
#private;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-
|
|
1
|
+
import { g as ResolvedConfig, l as EnvironmentContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, m as EnvironmentContextPlugin, H as HooksList, i as PluginContext, h as Plugin, n as HookKeys, S as SelectHooksOptions, o as SelectHooksResult } from '../config-Fp7jibtY.js';
|
|
2
2
|
import { PowerlinesContext } from './context.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -28,15 +28,15 @@ import 'semver';
|
|
|
28
28
|
import 'ts-morph';
|
|
29
29
|
import 'undici';
|
|
30
30
|
import 'unplugin';
|
|
31
|
-
import '../fs-
|
|
31
|
+
import '../fs-BAG-Ofs1.js';
|
|
32
32
|
import '@stryke/fs/resolve';
|
|
33
33
|
import '@stryke/types/array';
|
|
34
34
|
import '../tsconfig-Bz-CiFqD.js';
|
|
35
35
|
import '@stryke/types/tsconfig';
|
|
36
36
|
import 'typescript';
|
|
37
37
|
import 'flat-cache';
|
|
38
|
-
import '../internal-
|
|
39
|
-
import '../api-
|
|
38
|
+
import '../internal-CgeJlAcu.js';
|
|
39
|
+
import '../api-BZmSz-33.js';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
42
42
|
#private;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
1
|
+
export { PowerlinesEnvironmentContext } from '../chunk-26EMHPES.js';
|
|
2
2
|
import '../chunk-6OGQTUXF.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-M446NHAJ.js';
|
|
4
4
|
import '../chunk-45D4XIOK.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-NXUMUI2Z.js';
|
|
6
6
|
import '../chunk-YJEZASNU.js';
|
|
7
7
|
import '../chunk-5QMQ5G73.js';
|
|
8
8
|
import '../chunk-CTMPQSK7.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-QMKA57N4.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkRYILFB66_cjs = require('../chunk-RYILFB66.cjs');
|
|
5
|
+
var chunkZNPYK23Q_cjs = require('../chunk-ZNPYK23Q.cjs');
|
|
6
6
|
var chunk63DAS6TJ_cjs = require('../chunk-63DAS6TJ.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkHN76MIOU_cjs = require('../chunk-HN76MIOU.cjs');
|
|
8
8
|
require('../chunk-BJGMF356.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-UWOD2XLX.cjs');
|
|
10
10
|
require('../chunk-AQNUFK3L.cjs');
|
|
11
11
|
require('../chunk-QBE4SZN6.cjs');
|
|
12
12
|
require('../chunk-Y5KONJVR.cjs');
|
|
@@ -23,11 +23,11 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkRYILFB66_cjs.PowerlinesAPIContext; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZNPYK23Q_cjs.PowerlinesEnvironmentContext; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createPluginContext", {
|
|
33
33
|
enumerable: true,
|
|
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "createPluginContext", {
|
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkHN76MIOU_cjs.PowerlinesContext; }
|
|
39
39
|
});
|
|
40
40
|
//# sourceMappingURL=index.cjs.map
|
|
41
41
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,7 +2,7 @@ export { PowerlinesAPIContext } from './api-context.cjs';
|
|
|
2
2
|
export { PowerlinesContext } from './context.cjs';
|
|
3
3
|
export { PowerlinesEnvironmentContext } from './environment-context.cjs';
|
|
4
4
|
export { createPluginContext } from './plugin-context.cjs';
|
|
5
|
-
import '../config-
|
|
5
|
+
import '../config-C6f56gi9.cjs';
|
|
6
6
|
import '@storm-software/build-tools/types';
|
|
7
7
|
import '@storm-software/config-tools/types';
|
|
8
8
|
import '@storm-software/config/types';
|
|
@@ -31,12 +31,12 @@ import 'semver';
|
|
|
31
31
|
import 'ts-morph';
|
|
32
32
|
import 'undici';
|
|
33
33
|
import 'unplugin';
|
|
34
|
-
import '../fs-
|
|
34
|
+
import '../fs-BAG-Ofs1.cjs';
|
|
35
35
|
import '@stryke/fs/resolve';
|
|
36
36
|
import '@stryke/types/array';
|
|
37
37
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
38
38
|
import '@stryke/types/tsconfig';
|
|
39
39
|
import 'typescript';
|
|
40
|
-
import '../internal-
|
|
41
|
-
import '../api-
|
|
40
|
+
import '../internal-CXi-inTj.cjs';
|
|
41
|
+
import '../api-DUNpZZaT.cjs';
|
|
42
42
|
import 'flat-cache';
|
|
@@ -2,7 +2,7 @@ export { PowerlinesAPIContext } from './api-context.js';
|
|
|
2
2
|
export { PowerlinesContext } from './context.js';
|
|
3
3
|
export { PowerlinesEnvironmentContext } from './environment-context.js';
|
|
4
4
|
export { createPluginContext } from './plugin-context.js';
|
|
5
|
-
import '../config-
|
|
5
|
+
import '../config-Fp7jibtY.js';
|
|
6
6
|
import '@storm-software/build-tools/types';
|
|
7
7
|
import '@storm-software/config-tools/types';
|
|
8
8
|
import '@storm-software/config/types';
|
|
@@ -31,12 +31,12 @@ import 'semver';
|
|
|
31
31
|
import 'ts-morph';
|
|
32
32
|
import 'undici';
|
|
33
33
|
import 'unplugin';
|
|
34
|
-
import '../fs-
|
|
34
|
+
import '../fs-BAG-Ofs1.js';
|
|
35
35
|
import '@stryke/fs/resolve';
|
|
36
36
|
import '@stryke/types/array';
|
|
37
37
|
import '../tsconfig-Bz-CiFqD.js';
|
|
38
38
|
import '@stryke/types/tsconfig';
|
|
39
39
|
import 'typescript';
|
|
40
|
-
import '../internal-
|
|
41
|
-
import '../api-
|
|
40
|
+
import '../internal-CgeJlAcu.js';
|
|
41
|
+
import '../api-BZmSz-33.js';
|
|
42
42
|
import 'flat-cache';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../chunk-FJMP4CXA.js';
|
|
2
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
3
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
2
|
+
export { PowerlinesAPIContext } from '../chunk-W5W4YR3Q.js';
|
|
3
|
+
export { PowerlinesEnvironmentContext } from '../chunk-26EMHPES.js';
|
|
4
4
|
export { createPluginContext } from '../chunk-6OGQTUXF.js';
|
|
5
|
-
export { PowerlinesContext } from '../chunk-
|
|
5
|
+
export { PowerlinesContext } from '../chunk-M446NHAJ.js';
|
|
6
6
|
import '../chunk-45D4XIOK.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-NXUMUI2Z.js';
|
|
8
8
|
import '../chunk-YJEZASNU.js';
|
|
9
9
|
import '../chunk-5QMQ5G73.js';
|
|
10
10
|
import '../chunk-CTMPQSK7.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ResolvedConfig, h as Plugin, i as PluginContext } from '../config-
|
|
2
|
-
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-
|
|
1
|
+
import { g as ResolvedConfig, h as Plugin, i as PluginContext } from '../config-C6f56gi9.cjs';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-CXi-inTj.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -28,13 +28,13 @@ import 'semver';
|
|
|
28
28
|
import 'ts-morph';
|
|
29
29
|
import 'undici';
|
|
30
30
|
import 'unplugin';
|
|
31
|
-
import '../fs-
|
|
31
|
+
import '../fs-BAG-Ofs1.cjs';
|
|
32
32
|
import '@stryke/fs/resolve';
|
|
33
33
|
import '@stryke/types/array';
|
|
34
34
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
35
35
|
import '@stryke/types/tsconfig';
|
|
36
36
|
import 'typescript';
|
|
37
|
-
import '../api-
|
|
37
|
+
import '../api-DUNpZZaT.cjs';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Create a Proxy-based PluginContext
|