powerlines 0.30.12 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{api-CXv3AaZq.d.ts → api-BRIoFOTT.d.ts} +1 -1
- package/dist/{api-jxhfIQp9.d.cts → api-C5PtjSRg.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +3 -3
- package/dist/{chunk-ZFMDBIE2.js → chunk-D5WIJFI4.js} +2 -2
- package/dist/{chunk-VLTSN4BC.js → chunk-FEUMPTI5.js} +60 -28
- package/dist/{chunk-YFKHICPO.cjs → chunk-GHDZ3BE6.cjs} +2 -2
- package/dist/chunk-HXXWVQTP.cjs +12 -0
- package/dist/{chunk-BLQAOMJB.js → chunk-IBFNIPIR.js} +3 -3
- package/dist/{chunk-LMASEANM.js → chunk-KPWA3KOR.js} +18 -5
- package/dist/{chunk-4PIQOC7T.cjs → chunk-KQYU7NEW.cjs} +5 -5
- package/dist/chunk-MR2NLHRG.cjs +12 -0
- package/dist/{chunk-73HMVW7B.cjs → chunk-OEVQP6D7.cjs} +4 -4
- package/dist/{chunk-753CT77J.js → chunk-RDOMGKBJ.js} +3 -3
- package/dist/{chunk-E2IMELHG.js → chunk-SQIM3F6T.js} +3 -3
- package/dist/{chunk-R4HDRLOF.cjs → chunk-VE44XK7Y.cjs} +19 -6
- package/dist/{chunk-6S6OZJYJ.js → chunk-VLYCW5HT.js} +3 -3
- package/dist/{chunk-XUT7OSUL.cjs → chunk-YTOYGFEW.cjs} +60 -28
- package/dist/{context-Bzahbvre.d.cts → context-DJvxz8N2.d.cts} +18 -0
- package/dist/{context-DIXLOQWy.d.ts → context-Dqh6K9hi.d.ts} +18 -0
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +11 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/lib/{api-JesRJRuE.d.cts → api-BOoviz4b.d.cts} +1 -1
- package/dist/lib/{api-D1XGInIf.d.ts → api-CiIWy-Vc.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.cjs +3 -3
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/index.js +1 -1
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsdown.d.cts +1 -1
- package/dist/lib/build/tsdown.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.cjs +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/vite.js +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-TMQFJ5FK.js → chunk-6DKPDJD4.js} +35 -28
- package/dist/lib/chunk-6DKPDJD4.js.map +1 -0
- package/dist/lib/{chunk-YFB6OGXJ.js → chunk-CRH3UFPJ.js} +17 -4
- package/dist/lib/chunk-CRH3UFPJ.js.map +1 -0
- package/dist/lib/{chunk-7OO4SKFN.cjs → chunk-DJR7QB4T.cjs} +17 -4
- package/dist/lib/chunk-DJR7QB4T.cjs.map +1 -0
- package/dist/lib/{chunk-VXSQ52OZ.cjs → chunk-ICJTE3CW.cjs} +36 -29
- package/dist/lib/chunk-ICJTE3CW.cjs.map +1 -0
- package/dist/lib/{chunk-NRH2VGE4.js → chunk-NTFCDHRQ.js} +28 -3
- package/dist/lib/chunk-NTFCDHRQ.js.map +1 -0
- package/dist/lib/{chunk-YV2TNMIL.cjs → chunk-Z2B4GDQQ.cjs} +28 -3
- package/dist/lib/chunk-Z2B4GDQQ.cjs.map +1 -0
- package/dist/lib/{config-DQwfksQx.d.cts → config-B5EDHK9f.d.cts} +31 -2
- package/dist/lib/{config-jmSBo5Uf.d.ts → config-DeSsuqM6.d.ts} +31 -2
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/contexts/api-context.cjs +2 -2
- package/dist/lib/contexts/api-context.d.cts +18 -3
- package/dist/lib/contexts/api-context.d.ts +18 -3
- package/dist/lib/contexts/api-context.js +1 -1
- package/dist/lib/contexts/context.d.cts +3 -3
- package/dist/lib/contexts/context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.d.cts +3 -3
- package/dist/lib/contexts/environment-context.d.ts +3 -3
- package/dist/lib/contexts/index.cjs +2 -2
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +1 -1
- package/dist/lib/contexts/plugin-context.d.cts +3 -3
- package/dist/lib/contexts/plugin-context.d.ts +3 -3
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/fs/index.d.cts +1 -1
- package/dist/lib/fs/index.d.ts +1 -1
- package/dist/lib/fs/vfs.d.cts +1 -1
- package/dist/lib/fs/vfs.d.ts +1 -1
- package/dist/lib/index.cjs +4 -4
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +2 -2
- package/dist/lib/{internal-BVDm0kBL.d.cts → internal-BwORkUPq.d.cts} +2 -2
- package/dist/lib/{internal-BM4-dK4g.d.ts → internal-C4hnA4cM.d.ts} +2 -2
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +3 -3
- package/dist/lib/unplugin/factory.d.cts +3 -3
- package/dist/lib/unplugin/factory.d.ts +3 -3
- package/dist/lib/unplugin/factory.js +2 -2
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +3 -3
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +2 -2
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/{unplugin-BZkVo2w3.d.cts → unplugin-CfHbKMyU.d.cts} +2 -2
- package/dist/lib/{unplugin-DZeOgtvW.d.ts → unplugin-Dv4C-7KO.d.ts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{context-BusdtMHI.d.cts → context-BXSkiZ5z.d.cts} +18 -0
- package/dist/plugin-utils/{context-BusdtMHI.d.ts → context-BXSkiZ5z.d.ts} +18 -0
- 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 -6
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +2 -2
- package/dist/types/api.d.ts +2 -2
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/build.d.cts +13 -2
- package/dist/types/build.d.ts +13 -2
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.cjs +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -1
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +5 -5
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +11 -11
- package/dist/chunk-3QPWBUQF.cjs +0 -12
- package/dist/chunk-CA4T7HLA.cjs +0 -12
- package/dist/lib/chunk-7OO4SKFN.cjs.map +0 -1
- package/dist/lib/chunk-NRH2VGE4.js.map +0 -1
- package/dist/lib/chunk-TMQFJ5FK.js.map +0 -1
- package/dist/lib/chunk-VXSQ52OZ.cjs.map +0 -1
- package/dist/lib/chunk-YFB6OGXJ.js.map +0 -1
- package/dist/lib/chunk-YV2TNMIL.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/internal/helpers/environment.ts","../../src/lib/contexts/api-context.ts"],"names":["DEFAULT_ENVIRONMENT","GLOBAL_ENVIRONMENT","createEnvironment","name","userConfig","defu","environments","title","titleCase","ssr","mainFields","build","platform","extensions","consumer","preview","port","open","strictPort","host","allowedHosts","cors","headers","undefined","createDefaultEnvironment","PowerlinesAPIContext","PowerlinesContext","from","workspaceRoot","config","context","loadWorkspaceConfig","root","withUserConfig","powerlinesPath","resolvePackage","Error","$$internal","value","environment","Object","values","log","createLog","plugins","workspaceConfig","init","Promise","all","toArray","keys","length","map","env","in","PowerlinesEnvironmentContext","fromConfig","isSetObject","inlineConfig","withInlineConfig","plugin","addPlugin","options","isHighPriority","push","getEnvironment","LogLevelLabel","DEBUG","chalk","bold","cyanBright","WARN","getEnvironmentSafe","toEnvironment"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBO,IAAMA,mBAAAA,GAAsB,aAAA;AAC5B,IAAMC,kBAAAA,GAAqB,YAAA;AAE3B,SAASC,iBAAAA,CACdC,MACAC,UAAAA,EAA4C;AAE5C,EAAA,OAAOC,sBACLD,UAAAA,CAAWE,YAAAA,GAAeH,IAAAA,CAAAA,IAAS,EAAC,EACpC;AACEA,IAAAA,IAAAA;AACAI,IAAAA,KAAAA,EAA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AAAA;AACT,EAAA;AACF","file":"chunk-Z2B4GDQQ.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 { titleCase } from \"@stryke/string-format/title-case\";\nimport defu from \"defu\";\nimport { APIContext, Context } from \"../../types/context\";\nimport { EnvironmentResolvedConfig } from \"../../types/resolved\";\n\nexport const DEFAULT_ENVIRONMENT = \"__DEFAULT__\" as const;\nexport const GLOBAL_ENVIRONMENT = \"__GLOBAL__\" as const;\n\nexport function createEnvironment<TContext extends Context = Context>(\n name: string,\n userConfig: TContext[\"config\"][\"userConfig\"]\n): EnvironmentResolvedConfig {\n return defu(\n userConfig.environments?.[name] ?? {},\n {\n name,\n title: userConfig.title || titleCase(userConfig.name),\n ssr: false,\n mainFields:\n userConfig.build?.platform === \"browser\"\n ? [\"browser\", \"module\", \"jsnext:main\", \"jsnext\"]\n : [\"module\", \"jsnext:main\", \"jsnext\"],\n extensions: [\".mjs\", \".js\", \".mts\", \".ts\", \".jsx\", \".tsx\", \".json\"],\n consumer: userConfig.build?.platform === \"browser\" ? \"client\" : \"server\",\n preview:\n userConfig.build?.platform === \"browser\"\n ? {\n port: 5173,\n open: true,\n strictPort: false,\n // https: false,\n host: \"localhost\",\n allowedHosts: [\".\"],\n cors: true,\n headers: {}\n }\n : undefined\n },\n userConfig\n ) as EnvironmentResolvedConfig;\n}\n\nexport function createDefaultEnvironment<\n TContext extends APIContext = APIContext\n>(userConfig: TContext[\"config\"][\"userConfig\"]): EnvironmentResolvedConfig {\n return createEnvironment(DEFAULT_ENVIRONMENT, userConfig);\n}\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 { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport chalk from \"chalk\";\nimport {\n createDefaultEnvironment,\n createEnvironment,\n GLOBAL_ENVIRONMENT\n} from \"../../internal/helpers/environment\";\nimport {\n InitialUserConfig,\n InlineConfig,\n LogFn,\n UserConfig,\n WorkspaceConfig\n} from \"../../types/config\";\nimport {\n APIContext,\n EnvironmentContext,\n InitContextOptions,\n PluginContext\n} from \"../../types/context\";\nimport {\n UNSAFE_ContextInternal,\n UNSAFE_EnvironmentContext\n} from \"../../types/internal\";\nimport { Plugin } from \"../../types/plugin\";\nimport {\n EnvironmentResolvedConfig,\n ResolvedConfig\n} from \"../../types/resolved\";\nimport { loadWorkspaceConfig } from \"../config-file\";\nimport { PowerlinesContext } from \"./context\";\nimport { PowerlinesEnvironmentContext } from \"./environment-context\";\n\nexport class PowerlinesAPIContext<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n>\n extends PowerlinesContext<TResolvedConfig>\n implements APIContext<TResolvedConfig>\n{\n #environments: Record<string, UNSAFE_EnvironmentContext<TResolvedConfig>> =\n {};\n\n #plugins: Plugin<PluginContext<TResolvedConfig>>[] = [];\n\n #log!: LogFn;\n\n /**\n * Create a new Storm context from the workspace root and user config.\n *\n * @param workspaceRoot - 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 override async from<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n >(\n workspaceRoot: string,\n config: InitialUserConfig<TResolvedConfig[\"userConfig\"]>\n ): Promise<APIContext<TResolvedConfig>> {\n const context = new PowerlinesAPIContext<TResolvedConfig>(\n await loadWorkspaceConfig(workspaceRoot, config.root)\n );\n await context.withUserConfig(config);\n\n const powerlinesPath = await resolvePackage(\"powerlines\");\n if (!powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n\n context.powerlinesPath = powerlinesPath;\n\n return context;\n }\n\n /**\n * Internal context fields and methods\n *\n * @danger\n * This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.\n *\n * @internal\n */\n public override get $$internal(): UNSAFE_ContextInternal<TResolvedConfig> {\n return super.$$internal;\n }\n\n /**\n * Internal context fields and methods\n *\n * @danger\n * This field is for internal use only and should not be accessed or modified directly. It is unstable and can be changed at anytime.\n *\n * @internal\n */\n public override set $$internal(\n value: UNSAFE_ContextInternal<TResolvedConfig>\n ) {\n super.$$internal = value;\n for (const environment of Object.values(this.environments)) {\n environment.$$internal = super.$$internal;\n }\n }\n\n /**\n * A record of all environments by name\n */\n public get environments(): Record<\n string,\n UNSAFE_EnvironmentContext<TResolvedConfig>\n > {\n return this.#environments;\n }\n\n public override get log(): LogFn {\n if (!this.#log) {\n this.#log = this.createLog(\"engine\");\n }\n\n return this.#log;\n }\n\n public get plugins(): Array<Plugin<PluginContext<TResolvedConfig>>> {\n return this.#plugins;\n }\n\n protected constructor(workspaceConfig: WorkspaceConfig) {\n super(workspaceConfig);\n }\n\n /**\n * Initialize the context with the provided configuration options\n *\n * @param config - The partial user configuration to use for initialization.\n */\n protected override async init(\n config: Partial<TResolvedConfig[\"userConfig\"]> = {}\n ) {\n await super.init(config);\n\n await Promise.all(\n toArray(\n this.config.userConfig.environments &&\n Object.keys(this.config.userConfig.environments).length > 0\n ? Object.keys(this.config.userConfig.environments).map(name =>\n createEnvironment(name, this.config.userConfig)\n )\n : createDefaultEnvironment(this.config.userConfig)\n ).map(async env => {\n this.#environments[env.name] = await this.in(env);\n })\n );\n }\n\n /**\n * A function to copy the context and update the fields for a specific environment\n *\n * @param environment - The environment configuration to use.\n * @returns A new context instance with the updated environment.\n */\n public async in(\n environment: EnvironmentResolvedConfig\n ): Promise<UNSAFE_EnvironmentContext<TResolvedConfig>> {\n let context: UNSAFE_EnvironmentContext<TResolvedConfig>;\n if (this.environments[environment.name]) {\n context = this.environments[environment.name] as any;\n } else {\n context = (await PowerlinesEnvironmentContext.fromConfig(\n this.workspaceConfig,\n this.config\n )) as any;\n }\n\n if (isSetObject(this.config.inlineConfig)) {\n await context.withInlineConfig(this.config.inlineConfig);\n }\n\n context.environment = environment;\n context.plugins = [];\n\n for (const plugin of this.plugins) {\n await context.addPlugin(plugin);\n }\n\n return context;\n }\n\n /**\n * Update the context using a new user configuration options\n *\n * @param userConfig - The new user configuration options.\n */\n public override async withUserConfig(\n userConfig: InitialUserConfig<TResolvedConfig[\"userConfig\"]>,\n options: InitContextOptions = {\n isHighPriority: true\n }\n ) {\n await super.withUserConfig(userConfig, options);\n\n await Promise.all(\n Object.keys(this.#environments).map(async name => {\n await this.#environments[name]!.withUserConfig(\n userConfig as UserConfig,\n options\n );\n })\n );\n }\n\n /**\n * Update the context using a new inline configuration options\n *\n * @param inlineConfig - The new inline configuration options.\n */\n public override async withInlineConfig(\n inlineConfig: TResolvedConfig[\"inlineConfig\"],\n options: InitContextOptions = {\n isHighPriority: true\n }\n ) {\n await super.withInlineConfig(inlineConfig, options);\n\n await Promise.all(\n Object.keys(this.#environments).map(async name => {\n await this.#environments[name]!.withInlineConfig(\n inlineConfig as InlineConfig,\n options\n );\n })\n );\n }\n\n /**\n * Add a plugin to the API context and all environments\n *\n * @param plugin - The plugin to add.\n */\n public async addPlugin(plugin: Plugin<PluginContext<TResolvedConfig>>) {\n this.plugins.push(plugin);\n\n await Promise.all(\n Object.keys(this.environments).map(async name => {\n await this.environments[name]!.addPlugin(plugin);\n })\n );\n }\n\n /**\n * Get an environment by name, or the default environment if no name is provided\n *\n * @param name - The name of the environment to retrieve.\n * @returns The requested environment context.\n */\n public async getEnvironment(name?: string) {\n let environment: EnvironmentContext<TResolvedConfig> | undefined;\n if (name) {\n environment = this.environments[name];\n }\n\n if (Object.keys(this.environments).length === 1) {\n environment = this.environments[Object.keys(this.environments)[0]!];\n\n this.log(\n LogLevelLabel.DEBUG,\n `Applying the only configured environment: ${chalk.bold.cyanBright(\n environment?.environment.name\n )}`\n );\n }\n\n if (!environment) {\n if (name) {\n throw new Error(`Environment \"${name}\" not found.`);\n }\n\n environment = await this.in(\n createDefaultEnvironment(this.config.userConfig)\n );\n\n this.log(\n LogLevelLabel.WARN,\n `No environment specified, and no default environment found. Using a temporary default environment: ${chalk.bold.cyanBright(\n environment?.environment.name\n )}`\n );\n }\n\n return environment;\n }\n\n /**\n * A safe version of `getEnvironment` that returns `undefined` if the environment is not found\n *\n * @param name - The name of the environment to retrieve.\n * @returns The requested environment context or `undefined` if not found.\n */\n public async getEnvironmentSafe(\n name?: string\n ): Promise<EnvironmentContext<TResolvedConfig> | undefined> {\n try {\n return await this.getEnvironment(name);\n } catch {\n return undefined;\n }\n }\n\n /**\n * A function to merge all configured environments into a single context.\n *\n * @remarks\n * If only one environment is configured, that environment will be returned directly.\n *\n * @returns A promise that resolves to a merged/global environment context.\n */\n public async toEnvironment(): Promise<EnvironmentContext<TResolvedConfig>> {\n let environment: EnvironmentContext<TResolvedConfig>;\n if (Object.keys(this.environments).length > 1) {\n environment = await this.in(\n createEnvironment(GLOBAL_ENVIRONMENT, this.config.userConfig)\n );\n\n this.log(\n LogLevelLabel.DEBUG,\n `Combined all ${Object.keys(this.environments).length} environments into a single global context.`\n );\n } else {\n environment = await this.getEnvironment();\n }\n\n return environment;\n }\n}\n"]}
|
|
@@ -5,7 +5,7 @@ import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
|
5
5
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
6
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
7
|
import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
|
|
8
|
-
import { UserConfig as UserConfig$1, ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
8
|
+
import { UserConfig as UserConfig$1, DepOptimizationOptions, ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
9
9
|
import { UserConfig as UserConfig$3 } from '@farmfe/core';
|
|
10
10
|
import { Configuration as Configuration$1 } from '@rspack/core';
|
|
11
11
|
import { BuildOptions as BuildOptions$1 } from '@storm-software/tsup/types';
|
|
@@ -158,6 +158,12 @@ interface BuildConfig {
|
|
|
158
158
|
* Should the Powerlines CLI processes skip bundling the `node_modules` directory?
|
|
159
159
|
*/
|
|
160
160
|
skipNodeModulesBundle?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime. Otherwise, it is statically replaced as an empty object.
|
|
163
|
+
*
|
|
164
|
+
* @defaultValue false
|
|
165
|
+
*/
|
|
166
|
+
keepProcessEnv?: boolean;
|
|
161
167
|
/**
|
|
162
168
|
* An optional set of override options to apply to the selected build variant.
|
|
163
169
|
*
|
|
@@ -169,7 +175,12 @@ interface BuildConfig {
|
|
|
169
175
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
170
176
|
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
171
177
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
172
|
-
type ViteBuildConfig = Omit<UserConfig$1, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig
|
|
178
|
+
type ViteBuildConfig = Omit<UserConfig$1, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
179
|
+
/**
|
|
180
|
+
* Optimize deps config
|
|
181
|
+
*/
|
|
182
|
+
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
183
|
+
};
|
|
173
184
|
type ViteResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
174
185
|
type WebpackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
175
186
|
type WebpackResolvedBuildConfig = Configuration & BuildResolvedConfig;
|
|
@@ -950,6 +961,12 @@ interface APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> ex
|
|
|
950
961
|
* @returns A new context instance with the updated environment.
|
|
951
962
|
*/
|
|
952
963
|
in: (environment: EnvironmentResolvedConfig) => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
964
|
+
/**
|
|
965
|
+
* A function to merge all configured environments into a single context
|
|
966
|
+
*
|
|
967
|
+
* @returns A promise that resolves to the merged environment context.
|
|
968
|
+
*/
|
|
969
|
+
toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
953
970
|
}
|
|
954
971
|
interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
955
972
|
plugin: Plugin<PluginContext<TResolvedConfig>>;
|
|
@@ -1286,6 +1303,18 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1286
1303
|
* Environment-specific configurations
|
|
1287
1304
|
*/
|
|
1288
1305
|
environments?: Record<string, EnvironmentConfig>;
|
|
1306
|
+
/**
|
|
1307
|
+
* Should a single `build` process be ran for each environment?
|
|
1308
|
+
*
|
|
1309
|
+
* @remarks
|
|
1310
|
+
* This option determines how environments are managed during the `build` process. The available options are:
|
|
1311
|
+
*
|
|
1312
|
+
* - `false`: A separate build is ran for each environment.
|
|
1313
|
+
* - `true`: A single build is ran for all environments.
|
|
1314
|
+
*
|
|
1315
|
+
* @defaultValue false
|
|
1316
|
+
*/
|
|
1317
|
+
singleBuild?: boolean;
|
|
1289
1318
|
/**
|
|
1290
1319
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
1291
1320
|
*
|
|
@@ -5,7 +5,7 @@ import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
|
5
5
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
6
6
|
import { AssetGlob } from '@stryke/types/file';
|
|
7
7
|
import { ResolvedConfig as ResolvedConfig$1, ConfigLayer } from 'c12';
|
|
8
|
-
import { UserConfig as UserConfig$1, ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
8
|
+
import { UserConfig as UserConfig$1, DepOptimizationOptions, ResolvedPreviewOptions, PreviewOptions } from 'vite';
|
|
9
9
|
import { UserConfig as UserConfig$3 } from '@farmfe/core';
|
|
10
10
|
import { Configuration as Configuration$1 } from '@rspack/core';
|
|
11
11
|
import { BuildOptions as BuildOptions$1 } from '@storm-software/tsup/types';
|
|
@@ -158,6 +158,12 @@ interface BuildConfig {
|
|
|
158
158
|
* Should the Powerlines CLI processes skip bundling the `node_modules` directory?
|
|
159
159
|
*/
|
|
160
160
|
skipNodeModulesBundle?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime. Otherwise, it is statically replaced as an empty object.
|
|
163
|
+
*
|
|
164
|
+
* @defaultValue false
|
|
165
|
+
*/
|
|
166
|
+
keepProcessEnv?: boolean;
|
|
161
167
|
/**
|
|
162
168
|
* An optional set of override options to apply to the selected build variant.
|
|
163
169
|
*
|
|
@@ -169,7 +175,12 @@ interface BuildConfig {
|
|
|
169
175
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
170
176
|
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
171
177
|
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
172
|
-
type ViteBuildConfig = Omit<UserConfig$1, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig
|
|
178
|
+
type ViteBuildConfig = Omit<UserConfig$1, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
179
|
+
/**
|
|
180
|
+
* Optimize deps config
|
|
181
|
+
*/
|
|
182
|
+
optimizeDeps?: Omit<DepOptimizationOptions, "extensions">;
|
|
183
|
+
};
|
|
173
184
|
type ViteResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
174
185
|
type WebpackBuildConfig = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw"> & BuildConfig;
|
|
175
186
|
type WebpackResolvedBuildConfig = Configuration & BuildResolvedConfig;
|
|
@@ -950,6 +961,12 @@ interface APIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> ex
|
|
|
950
961
|
* @returns A new context instance with the updated environment.
|
|
951
962
|
*/
|
|
952
963
|
in: (environment: EnvironmentResolvedConfig) => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
964
|
+
/**
|
|
965
|
+
* A function to merge all configured environments into a single context
|
|
966
|
+
*
|
|
967
|
+
* @returns A promise that resolves to the merged environment context.
|
|
968
|
+
*/
|
|
969
|
+
toEnvironment: () => Promise<EnvironmentContext<TResolvedConfig>>;
|
|
953
970
|
}
|
|
954
971
|
interface EnvironmentContextPlugin<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
955
972
|
plugin: Plugin<PluginContext<TResolvedConfig>>;
|
|
@@ -1286,6 +1303,18 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1286
1303
|
* Environment-specific configurations
|
|
1287
1304
|
*/
|
|
1288
1305
|
environments?: Record<string, EnvironmentConfig>;
|
|
1306
|
+
/**
|
|
1307
|
+
* Should a single `build` process be ran for each environment?
|
|
1308
|
+
*
|
|
1309
|
+
* @remarks
|
|
1310
|
+
* This option determines how environments are managed during the `build` process. The available options are:
|
|
1311
|
+
*
|
|
1312
|
+
* - `false`: A separate build is ran for each environment.
|
|
1313
|
+
* - `true`: A single build is ran for all environments.
|
|
1314
|
+
*
|
|
1315
|
+
* @defaultValue false
|
|
1316
|
+
*/
|
|
1317
|
+
singleBuild?: boolean;
|
|
1289
1318
|
/**
|
|
1290
1319
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
1291
1320
|
*
|
|
@@ -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-B5EDHK9f.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -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-DeSsuqM6.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZ2B4GDQQ_cjs = require('../chunk-Z2B4GDQQ.cjs');
|
|
4
4
|
require('../chunk-OSLTVUMN.cjs');
|
|
5
5
|
require('../chunk-63DAS6TJ.cjs');
|
|
6
6
|
require('../chunk-CLLQO726.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 chunkZ2B4GDQQ_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-B5EDHK9f.cjs';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-BwORkUPq.cjs';
|
|
3
3
|
import { PowerlinesContext } from './context.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -35,7 +35,7 @@ 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-BOoviz4b.cjs';
|
|
39
39
|
import 'flat-cache';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
@@ -111,7 +111,22 @@ declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = Reso
|
|
|
111
111
|
* @returns The requested environment context.
|
|
112
112
|
*/
|
|
113
113
|
getEnvironment(name?: string): Promise<EnvironmentContext<TResolvedConfig>>;
|
|
114
|
+
/**
|
|
115
|
+
* A safe version of `getEnvironment` that returns `undefined` if the environment is not found
|
|
116
|
+
*
|
|
117
|
+
* @param name - The name of the environment to retrieve.
|
|
118
|
+
* @returns The requested environment context or `undefined` if not found.
|
|
119
|
+
*/
|
|
114
120
|
getEnvironmentSafe(name?: string): Promise<EnvironmentContext<TResolvedConfig> | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* A function to merge all configured environments into a single context.
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* If only one environment is configured, that environment will be returned directly.
|
|
126
|
+
*
|
|
127
|
+
* @returns A promise that resolves to a merged/global environment context.
|
|
128
|
+
*/
|
|
129
|
+
toEnvironment(): Promise<EnvironmentContext<TResolvedConfig>>;
|
|
115
130
|
}
|
|
116
131
|
|
|
117
132
|
export { PowerlinesAPIContext };
|
|
@@ -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-DeSsuqM6.js';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-C4hnA4cM.js';
|
|
3
3
|
import { PowerlinesContext } from './context.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -35,7 +35,7 @@ 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-CiIWy-Vc.js';
|
|
39
39
|
import 'flat-cache';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
@@ -111,7 +111,22 @@ declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = Reso
|
|
|
111
111
|
* @returns The requested environment context.
|
|
112
112
|
*/
|
|
113
113
|
getEnvironment(name?: string): Promise<EnvironmentContext<TResolvedConfig>>;
|
|
114
|
+
/**
|
|
115
|
+
* A safe version of `getEnvironment` that returns `undefined` if the environment is not found
|
|
116
|
+
*
|
|
117
|
+
* @param name - The name of the environment to retrieve.
|
|
118
|
+
* @returns The requested environment context or `undefined` if not found.
|
|
119
|
+
*/
|
|
114
120
|
getEnvironmentSafe(name?: string): Promise<EnvironmentContext<TResolvedConfig> | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* A function to merge all configured environments into a single context.
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* If only one environment is configured, that environment will be returned directly.
|
|
126
|
+
*
|
|
127
|
+
* @returns A promise that resolves to a merged/global environment context.
|
|
128
|
+
*/
|
|
129
|
+
toEnvironment(): Promise<EnvironmentContext<TResolvedConfig>>;
|
|
115
130
|
}
|
|
116
131
|
|
|
117
132
|
export { PowerlinesAPIContext };
|
|
@@ -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-
|
|
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-B5EDHK9f.cjs';
|
|
10
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-
|
|
11
|
+
import { a as UNSAFE_ContextInternal } from '../internal-BwORkUPq.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-BOoviz4b.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-
|
|
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-DeSsuqM6.js';
|
|
10
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-
|
|
11
|
+
import { a as UNSAFE_ContextInternal } from '../internal-C4hnA4cM.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-CiIWy-Vc.js';
|
|
37
37
|
import '@stryke/types/tsconfig';
|
|
38
38
|
import 'typescript';
|
|
39
39
|
|
|
@@ -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-B5EDHK9f.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -35,8 +35,8 @@ 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-BwORkUPq.cjs';
|
|
39
|
+
import '../api-BOoviz4b.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-DeSsuqM6.js';
|
|
2
2
|
import { PowerlinesContext } from './context.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -35,8 +35,8 @@ 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-C4hnA4cM.js';
|
|
39
|
+
import '../api-CiIWy-Vc.js';
|
|
40
40
|
|
|
41
41
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
42
42
|
#private;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-QMKA57N4.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkZ2B4GDQQ_cjs = require('../chunk-Z2B4GDQQ.cjs');
|
|
5
5
|
var chunkOSLTVUMN_cjs = require('../chunk-OSLTVUMN.cjs');
|
|
6
6
|
var chunk63DAS6TJ_cjs = require('../chunk-63DAS6TJ.cjs');
|
|
7
7
|
var chunkCLLQO726_cjs = require('../chunk-CLLQO726.cjs');
|
|
@@ -23,7 +23,7 @@ require('../chunk-PK6SKIKE.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZ2B4GDQQ_cjs.PowerlinesAPIContext; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
29
29
|
enumerable: true,
|
|
@@ -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-B5EDHK9f.cjs';
|
|
6
6
|
import '@storm-software/build-tools/types';
|
|
7
7
|
import '@storm-software/config-tools/types';
|
|
8
8
|
import '@storm-software/config/types';
|
|
@@ -37,6 +37,6 @@ 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-BwORkUPq.cjs';
|
|
41
|
+
import '../api-BOoviz4b.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-DeSsuqM6.js';
|
|
6
6
|
import '@storm-software/build-tools/types';
|
|
7
7
|
import '@storm-software/config-tools/types';
|
|
8
8
|
import '@storm-software/config/types';
|
|
@@ -37,6 +37,6 @@ 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-C4hnA4cM.js';
|
|
41
|
+
import '../api-CiIWy-Vc.js';
|
|
42
42
|
import 'flat-cache';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-FJMP4CXA.js';
|
|
2
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
+
export { PowerlinesAPIContext } from '../chunk-NTFCDHRQ.js';
|
|
3
3
|
export { PowerlinesEnvironmentContext } from '../chunk-DMQ7IY4L.js';
|
|
4
4
|
export { createPluginContext } from '../chunk-6OGQTUXF.js';
|
|
5
5
|
export { PowerlinesContext } from '../chunk-VN2OA25X.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-B5EDHK9f.cjs';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-BwORkUPq.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -34,7 +34,7 @@ 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-BOoviz4b.cjs';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Create a Proxy-based PluginContext
|
|
@@ -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-DeSsuqM6.js';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-C4hnA4cM.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -34,7 +34,7 @@ import '@stryke/types/array';
|
|
|
34
34
|
import '../tsconfig-Bz-CiFqD.js';
|
|
35
35
|
import '@stryke/types/tsconfig';
|
|
36
36
|
import 'typescript';
|
|
37
|
-
import '../api-
|
|
37
|
+
import '../api-CiIWy-Vc.js';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Create a Proxy-based PluginContext
|
package/dist/lib/entry.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
-
import { C as Context, R as ResolvedEntryTypeDefinition } from './config-
|
|
2
|
+
import { C as Context, R as ResolvedEntryTypeDefinition } from './config-B5EDHK9f.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
package/dist/lib/entry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
-
import { C as Context, R as ResolvedEntryTypeDefinition } from './config-
|
|
2
|
+
import { C as Context, R as ResolvedEntryTypeDefinition } from './config-DeSsuqM6.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
package/dist/lib/fs/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { VirtualFileSystem } from './vfs.cjs';
|
|
2
2
|
import '@stryke/types/file';
|
|
3
3
|
import 'flat-cache';
|
|
4
|
-
import '../config-
|
|
4
|
+
import '../config-B5EDHK9f.cjs';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
|
7
7
|
import '@storm-software/config/types';
|
package/dist/lib/fs/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { VirtualFileSystem } from './vfs.js';
|
|
2
2
|
import '@stryke/types/file';
|
|
3
3
|
import 'flat-cache';
|
|
4
|
-
import '../config-
|
|
4
|
+
import '../config-DeSsuqM6.js';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
|
7
7
|
import '@storm-software/config/types';
|
package/dist/lib/fs/vfs.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssetGlob } from '@stryke/types/file';
|
|
2
2
|
import { FlatCache } from 'flat-cache';
|
|
3
|
-
import { C as Context } from '../config-
|
|
3
|
+
import { C as Context } from '../config-B5EDHK9f.cjs';
|
|
4
4
|
import { V as VirtualFileSystemInterface, d as VirtualFileMetadata, W as WriteOptions, R as ResolveOptions } from '../fs-BAG-Ofs1.cjs';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
package/dist/lib/fs/vfs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssetGlob } from '@stryke/types/file';
|
|
2
2
|
import { FlatCache } from 'flat-cache';
|
|
3
|
-
import { C as Context } from '../config-
|
|
3
|
+
import { C as Context } from '../config-DeSsuqM6.js';
|
|
4
4
|
import { V as VirtualFileSystemInterface, d as VirtualFileMetadata, W as WriteOptions, R as ResolveOptions } from '../fs-BAG-Ofs1.js';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
package/dist/lib/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var chunk23BFL3LB_cjs = require('./chunk-23BFL3LB.cjs');
|
|
|
7
7
|
var chunkHYQXPNVP_cjs = require('./chunk-HYQXPNVP.cjs');
|
|
8
8
|
var chunkOGEFARN2_cjs = require('./chunk-OGEFARN2.cjs');
|
|
9
9
|
require('./chunk-3GMJQ5G3.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkICJTE3CW_cjs = require('./chunk-ICJTE3CW.cjs');
|
|
11
11
|
var chunkMFC7UJHT_cjs = require('./chunk-MFC7UJHT.cjs');
|
|
12
12
|
var chunk3DKBH67A_cjs = require('./chunk-3DKBH67A.cjs');
|
|
13
13
|
var chunkA4RSMLXW_cjs = require('./chunk-A4RSMLXW.cjs');
|
|
@@ -17,7 +17,7 @@ require('./chunk-K3FDM5F3.cjs');
|
|
|
17
17
|
require('./chunk-XBOHJTOI.cjs');
|
|
18
18
|
var chunk62ZJYXT3_cjs = require('./chunk-62ZJYXT3.cjs');
|
|
19
19
|
var chunkGDODHF3Y_cjs = require('./chunk-GDODHF3Y.cjs');
|
|
20
|
-
var
|
|
20
|
+
var chunkZ2B4GDQQ_cjs = require('./chunk-Z2B4GDQQ.cjs');
|
|
21
21
|
var chunkOSLTVUMN_cjs = require('./chunk-OSLTVUMN.cjs');
|
|
22
22
|
var chunk63DAS6TJ_cjs = require('./chunk-63DAS6TJ.cjs');
|
|
23
23
|
var chunkCLLQO726_cjs = require('./chunk-CLLQO726.cjs');
|
|
@@ -69,7 +69,7 @@ Object.defineProperty(exports, "createWorker", {
|
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "createUnpluginFactory", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkICJTE3CW_cjs.createUnpluginFactory; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "getBaseFileHeader", {
|
|
75
75
|
enumerable: true,
|
|
@@ -101,7 +101,7 @@ Object.defineProperty(exports, "createImportTransformer", {
|
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkZ2B4GDQQ_cjs.PowerlinesAPIContext; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
107
107
|
enumerable: true,
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -23,7 +23,7 @@ export { generateSourceMap } from './utilities/source-map.cjs';
|
|
|
23
23
|
export { Worker, WorkerOptions, __ΩWorkerOptions, createWorker } from './utilities/worker.cjs';
|
|
24
24
|
export { writeFile } from './utilities/write-file.cjs';
|
|
25
25
|
import 'jiti';
|
|
26
|
-
import './config-
|
|
26
|
+
import './config-B5EDHK9f.cjs';
|
|
27
27
|
import '@storm-software/build-tools/types';
|
|
28
28
|
import '@storm-software/config-tools/types';
|
|
29
29
|
import '@storm-software/config/types';
|
|
@@ -57,7 +57,7 @@ import '@stryke/types/array';
|
|
|
57
57
|
import './tsconfig-Bz-CiFqD.cjs';
|
|
58
58
|
import '@stryke/types/tsconfig';
|
|
59
59
|
import 'typescript';
|
|
60
|
-
import './internal-
|
|
61
|
-
import './api-
|
|
60
|
+
import './internal-BwORkUPq.cjs';
|
|
61
|
+
import './api-BOoviz4b.cjs';
|
|
62
62
|
import 'flat-cache';
|
|
63
|
-
import './unplugin-
|
|
63
|
+
import './unplugin-CfHbKMyU.cjs';
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { generateSourceMap } from './utilities/source-map.js';
|
|
|
23
23
|
export { Worker, WorkerOptions, __ΩWorkerOptions, createWorker } from './utilities/worker.js';
|
|
24
24
|
export { writeFile } from './utilities/write-file.js';
|
|
25
25
|
import 'jiti';
|
|
26
|
-
import './config-
|
|
26
|
+
import './config-DeSsuqM6.js';
|
|
27
27
|
import '@storm-software/build-tools/types';
|
|
28
28
|
import '@storm-software/config-tools/types';
|
|
29
29
|
import '@storm-software/config/types';
|
|
@@ -57,7 +57,7 @@ import '@stryke/types/array';
|
|
|
57
57
|
import './tsconfig-Bz-CiFqD.js';
|
|
58
58
|
import '@stryke/types/tsconfig';
|
|
59
59
|
import 'typescript';
|
|
60
|
-
import './internal-
|
|
61
|
-
import './api-
|
|
60
|
+
import './internal-C4hnA4cM.js';
|
|
61
|
+
import './api-CiIWy-Vc.js';
|
|
62
62
|
import 'flat-cache';
|
|
63
|
-
import './unplugin-
|
|
63
|
+
import './unplugin-Dv4C-7KO.js';
|