powerlines 0.30.10 → 0.30.12
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-CiRl_6fp.d.ts → api-CXv3AaZq.d.ts} +1 -1
- package/dist/{api-Ckoiw4hw.d.cts → api-jxhfIQp9.d.cts} +1 -1
- package/dist/api.cjs +3 -3
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/astro.cjs +5 -5
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +4 -4
- package/dist/chunk-3QPWBUQF.cjs +12 -0
- package/dist/{chunk-XOVTDDW3.cjs → chunk-3YOLTBW7.cjs} +2 -2
- package/dist/{chunk-TGULIA3I.cjs → chunk-4PIQOC7T.cjs} +5 -5
- package/dist/{chunk-XSHI4YXA.js → chunk-6S6OZJYJ.js} +3 -3
- package/dist/{chunk-TLNZXWBF.cjs → chunk-73HMVW7B.cjs} +4 -4
- package/dist/{chunk-Y6BHFF2K.js → chunk-753CT77J.js} +3 -3
- package/dist/{chunk-7GYPWBEP.js → chunk-BLQAOMJB.js} +3 -3
- package/dist/chunk-CA4T7HLA.cjs +12 -0
- package/dist/{chunk-YRYNUZMV.js → chunk-E2IMELHG.js} +3 -3
- package/dist/{chunk-LAAYAZCS.js → chunk-LMASEANM.js} +3 -3
- package/dist/{chunk-Z2YRWYQH.cjs → chunk-R4HDRLOF.cjs} +4 -4
- package/dist/{chunk-IDLTP3CA.js → chunk-VLTSN4BC.js} +3 -3
- package/dist/{chunk-JCQNCKL6.cjs → chunk-XUT7OSUL.cjs} +4 -4
- package/dist/{chunk-I4AHLCX3.js → chunk-ZYU7E7JL.js} +2 -2
- package/dist/{context-BxxXbYgm.d.cts → context-Bzahbvre.d.cts} +5 -5
- package/dist/{context-DxiwOhYU.d.ts → context-DIXLOQWy.d.ts} +5 -5
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +3 -3
- 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-BZmSz-33.d.ts → api-D1XGInIf.d.ts} +1 -1
- package/dist/lib/{api-DUNpZZaT.d.cts → api-JesRJRuE.d.cts} +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.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsdown.d.cts +1 -1
- package/dist/lib/build/tsdown.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-5FVICSI2.js → chunk-DMQ7IY4L.js} +2 -2
- package/dist/lib/{chunk-5FVICSI2.js.map → chunk-DMQ7IY4L.js.map} +1 -1
- package/dist/lib/{chunk-QOTSQ6ZF.js → chunk-NRH2VGE4.js} +3 -3
- package/dist/lib/{chunk-QOTSQ6ZF.js.map → chunk-NRH2VGE4.js.map} +1 -1
- package/dist/lib/{chunk-Q2CL3VW4.cjs → chunk-OSLTVUMN.cjs} +2 -2
- package/dist/lib/{chunk-Q2CL3VW4.cjs.map → chunk-OSLTVUMN.cjs.map} +1 -1
- package/dist/lib/{chunk-D7GUAMYL.js → chunk-TMQFJ5FK.js} +3 -3
- package/dist/lib/{chunk-D7GUAMYL.js.map → chunk-TMQFJ5FK.js.map} +1 -1
- package/dist/lib/{chunk-75KYTRYW.cjs → chunk-VXSQ52OZ.cjs} +4 -4
- package/dist/lib/{chunk-75KYTRYW.cjs.map → chunk-VXSQ52OZ.cjs.map} +1 -1
- package/dist/lib/{chunk-5KOLVUSY.cjs → chunk-YV2TNMIL.cjs} +4 -4
- package/dist/lib/{chunk-5KOLVUSY.cjs.map → chunk-YV2TNMIL.cjs.map} +1 -1
- package/dist/lib/{config-C6f56gi9.d.cts → config-DQwfksQx.d.cts} +3 -3
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/{config-Fp7jibtY.d.ts → config-jmSBo5Uf.d.ts} +3 -3
- package/dist/lib/contexts/api-context.cjs +3 -3
- package/dist/lib/contexts/api-context.d.cts +3 -3
- package/dist/lib/contexts/api-context.d.ts +3 -3
- package/dist/lib/contexts/api-context.js +2 -2
- package/dist/lib/contexts/context.d.cts +3 -3
- package/dist/lib/contexts/context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.cjs +2 -2
- package/dist/lib/contexts/environment-context.d.cts +3 -3
- package/dist/lib/contexts/environment-context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.js +1 -1
- package/dist/lib/contexts/index.cjs +4 -4
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +2 -2
- 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 +6 -6
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +3 -3
- package/dist/lib/{internal-CgeJlAcu.d.ts → internal-BM4-dK4g.d.ts} +2 -2
- package/dist/lib/{internal-CXi-inTj.d.cts → internal-BVDm0kBL.d.cts} +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 +4 -4
- package/dist/lib/unplugin/factory.d.cts +3 -3
- package/dist/lib/unplugin/factory.d.ts +3 -3
- package/dist/lib/unplugin/factory.js +3 -3
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +4 -4
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +3 -3
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/{unplugin-BeguWiS6.d.cts → unplugin-BZkVo2w3.d.cts} +2 -2
- package/dist/lib/{unplugin-CK0n8Ng1.d.ts → unplugin-DZeOgtvW.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 +5 -5
- package/dist/next.js +4 -4
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +6 -6
- package/dist/plugin-utils/{context-BKDpmw6M.d.cts → context-BusdtMHI.d.cts} +3 -3
- package/dist/plugin-utils/{context-BKDpmw6M.d.ts → context-BusdtMHI.d.ts} +3 -3
- 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 +7 -7
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +4 -4
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -3
- package/dist/tsdown.cjs +5 -5
- package/dist/tsdown.js +4 -4
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- 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/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.d.cts +1 -1
- package/dist/types/context.d.ts +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.cjs +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/plugin.js +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 +4 -4
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +3 -3
- package/dist/unplugin.cjs +6 -6
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +4 -4
- package/package.json +9 -9
- package/dist/chunk-F7QESYUW.cjs +0 -12
- package/dist/chunk-QCTZQ37E.cjs +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOSLTVUMN_cjs = require('./chunk-OSLTVUMN.cjs');
|
|
4
4
|
var chunkCLLQO726_cjs = require('./chunk-CLLQO726.cjs');
|
|
5
5
|
var chunk2JR645O3_cjs = require('./chunk-2JR645O3.cjs');
|
|
6
6
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
@@ -153,7 +153,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkCLLQO726_cjs
|
|
|
153
153
|
if (this.environments[environment.name]) {
|
|
154
154
|
context = this.environments[environment.name];
|
|
155
155
|
} else {
|
|
156
|
-
context = await
|
|
156
|
+
context = await chunkOSLTVUMN_cjs.PowerlinesEnvironmentContext.fromConfig(this.workspaceConfig, this.config);
|
|
157
157
|
}
|
|
158
158
|
if (isSetObject.isSetObject(this.config.inlineConfig)) {
|
|
159
159
|
await context.withInlineConfig(this.config.inlineConfig);
|
|
@@ -236,5 +236,5 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkCLLQO726_cjs
|
|
|
236
236
|
};
|
|
237
237
|
|
|
238
238
|
exports.PowerlinesAPIContext = PowerlinesAPIContext;
|
|
239
|
-
//# sourceMappingURL=chunk-
|
|
240
|
-
//# sourceMappingURL=chunk-
|
|
239
|
+
//# sourceMappingURL=chunk-YV2TNMIL.cjs.map
|
|
240
|
+
//# sourceMappingURL=chunk-YV2TNMIL.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/internal/helpers/environment.ts","../../src/lib/contexts/api-context.ts"],"names":["DEFAULT_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"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBO,IAAMA,mBAAAA,GAAsB,SAAA;AAE5B,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,EAAOH,UAAAA,CAAWG,KAAAA,IAASC,mBAAAA,CAAUJ,UAAAA,CAAWD,IAAI,CAAA;IACpDM,GAAAA,EAAK,KAAA;IACLC,UAAAA,EACEN,UAAAA,CAAWO,KAAAA,EAAOC,QAAAA,KAAa,SAAA,GAC3B;AAAC,MAAA,SAAA;AAAW,MAAA,QAAA;AAAU,MAAA,aAAA;AAAe,MAAA;AACrC,KAAA,GAAA;AAAC,MAAA,QAAA;AAAU,MAAA,aAAA;AAAe,MAAA;;IAChCC,UAAAA,EAAY;AAAC,MAAA,MAAA;AAAQ,MAAA,KAAA;AAAO,MAAA,MAAA;AAAQ,MAAA,KAAA;AAAO,MAAA,MAAA;AAAQ,MAAA,MAAA;AAAQ,MAAA;;AAC3DC,IAAAA,QAAAA,EAAUV,UAAAA,CAAWO,KAAAA,EAAOC,QAAAA,KAAa,SAAA,GA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,cAAAA,CAAe9D,IAAAA,CAAAA;IACnC,CAAA,CAAA,MAAQ;AACN,MAAA,OAAOoB,MAAAA;AACT,IAAA;AACF,EAAA;AACF","file":"chunk-5KOLVUSY.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;\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} 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 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"]}
|
|
1
|
+
{"version":3,"sources":["../../src/internal/helpers/environment.ts","../../src/lib/contexts/api-context.ts"],"names":["DEFAULT_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"],"mappings":";;;;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,sBAAAA,CAAMC,IAAAA,CAAKC,UAAAA,CACtD/B,WAAAA,EAAaA,WAAAA,CAAYpC,IAAAA,CAAAA,CAAAA,CACxB,CAAA;AAEP,IAAA;AAEA,IAAA,IAAI,CAACoC,WAAAA,EAAa;AAChB,MAAA,IAAIpC,IAAAA,EAAM;AACR,QAAA,MAAM,IAAIiC,KAAAA,CAAM,CAAA,aAAA,EAAgBjC,IAAAA,CAAAA,YAAAA,CAAkB,CAAA;AACpD,MAAA;AAEAoC,MAAAA,WAAAA,GAAc,MAAM,IAAA,CAAKe,EAAAA,CACvB9B,yBAAyB,IAAA,CAAKK,MAAAA,CAAOzB,UAAU,CAAA,CAAA;AAGjD,MAAA,IAAA,CAAKsC,GAAAA,CACHwB,mBAAAA,CAAcK,IAAAA,EACd,CAAA,mGAAA,EAAsGH,sBAAAA,CAAMC,IAAAA,CAAKC,UAAAA,CAC/G/B,WAAAA,EAAaA,WAAAA,CAAYpC,IAAAA,CAAAA,CAAAA,CACxB,CAAA;AAEP,IAAA;AAEA,IAAA,OAAOoC,WAAAA;AACT,EAAA;AAEA,EAAA,MAAaiC,mBACXrE,IAAAA,EAC0D;AAC1D,IAAA,IAAI;AACF,MAAA,OAAO,MAAM,IAAA,CAAK8D,cAAAA,CAAe9D,IAAAA,CAAAA;IACnC,CAAA,CAAA,MAAQ;AACN,MAAA,OAAOoB,MAAAA;AACT,IAAA;AACF,EAAA;AACF","file":"chunk-YV2TNMIL.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;\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} 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 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"]}
|
|
@@ -498,18 +498,18 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
498
498
|
* @param other - The other plugin to compare against.
|
|
499
499
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
500
500
|
*/
|
|
501
|
-
dedupe?: false | ((other: Plugin<
|
|
501
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
502
502
|
/**
|
|
503
503
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
504
504
|
*/
|
|
505
|
-
dependsOn?: PluginConfig<
|
|
505
|
+
dependsOn?: PluginConfig<TContext>[];
|
|
506
506
|
/**
|
|
507
507
|
* Define environments where this plugin should be active. By default, the plugin is active in all environments.
|
|
508
508
|
*
|
|
509
509
|
* @param environment - The environment to check.
|
|
510
510
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
511
511
|
*/
|
|
512
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<
|
|
512
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<TContext>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
|
|
@@ -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-DQwfksQx.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-jmSBo5Uf.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -498,18 +498,18 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
498
498
|
* @param other - The other plugin to compare against.
|
|
499
499
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
500
500
|
*/
|
|
501
|
-
dedupe?: false | ((other: Plugin<
|
|
501
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
502
502
|
/**
|
|
503
503
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
504
504
|
*/
|
|
505
|
-
dependsOn?: PluginConfig<
|
|
505
|
+
dependsOn?: PluginConfig<TContext>[];
|
|
506
506
|
/**
|
|
507
507
|
* Define environments where this plugin should be active. By default, the plugin is active in all environments.
|
|
508
508
|
*
|
|
509
509
|
* @param environment - The environment to check.
|
|
510
510
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
511
511
|
*/
|
|
512
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<
|
|
512
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<TContext>;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
type BaseHooks<TContext extends PluginContext = PluginContext> = BasePluginHookFunctions<TContext>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkYV2TNMIL_cjs = require('../chunk-YV2TNMIL.cjs');
|
|
4
|
+
require('../chunk-OSLTVUMN.cjs');
|
|
5
5
|
require('../chunk-63DAS6TJ.cjs');
|
|
6
6
|
require('../chunk-CLLQO726.cjs');
|
|
7
7
|
require('../chunk-BJGMF356.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 chunkYV2TNMIL_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-DQwfksQx.cjs';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-BVDm0kBL.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-JesRJRuE.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-jmSBo5Uf.js';
|
|
2
|
+
import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-BM4-dK4g.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-D1XGInIf.js';
|
|
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
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPIContext } from '../chunk-NRH2VGE4.js';
|
|
2
|
+
import '../chunk-DMQ7IY4L.js';
|
|
3
3
|
import '../chunk-6OGQTUXF.js';
|
|
4
4
|
import '../chunk-VN2OA25X.js';
|
|
5
5
|
import '../chunk-45D4XIOK.js';
|
|
@@ -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-DQwfksQx.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-BVDm0kBL.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-JesRJRuE.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-jmSBo5Uf.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-BM4-dK4g.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-D1XGInIf.js';
|
|
37
37
|
import '@stryke/types/tsconfig';
|
|
38
38
|
import 'typescript';
|
|
39
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOSLTVUMN_cjs = require('../chunk-OSLTVUMN.cjs');
|
|
4
4
|
require('../chunk-63DAS6TJ.cjs');
|
|
5
5
|
require('../chunk-CLLQO726.cjs');
|
|
6
6
|
require('../chunk-BJGMF356.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 chunkOSLTVUMN_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-DQwfksQx.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-BVDm0kBL.cjs';
|
|
39
|
+
import '../api-JesRJRuE.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-jmSBo5Uf.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-BM4-dK4g.js';
|
|
39
|
+
import '../api-D1XGInIf.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
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-QMKA57N4.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkYV2TNMIL_cjs = require('../chunk-YV2TNMIL.cjs');
|
|
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');
|
|
8
8
|
require('../chunk-BJGMF356.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 chunkYV2TNMIL_cjs.PowerlinesAPIContext; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkOSLTVUMN_cjs.PowerlinesEnvironmentContext; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createPluginContext", {
|
|
33
33
|
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-DQwfksQx.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-BVDm0kBL.cjs';
|
|
41
|
+
import '../api-JesRJRuE.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-jmSBo5Uf.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-BM4-dK4g.js';
|
|
41
|
+
import '../api-D1XGInIf.js';
|
|
42
42
|
import 'flat-cache';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-FJMP4CXA.js';
|
|
2
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
3
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
2
|
+
export { PowerlinesAPIContext } from '../chunk-NRH2VGE4.js';
|
|
3
|
+
export { PowerlinesEnvironmentContext } from '../chunk-DMQ7IY4L.js';
|
|
4
4
|
export { createPluginContext } from '../chunk-6OGQTUXF.js';
|
|
5
5
|
export { PowerlinesContext } from '../chunk-VN2OA25X.js';
|
|
6
6
|
import '../chunk-45D4XIOK.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-DQwfksQx.cjs';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-BVDm0kBL.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-JesRJRuE.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-jmSBo5Uf.js';
|
|
2
|
+
import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-BM4-dK4g.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-D1XGInIf.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-DQwfksQx.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-jmSBo5Uf.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-DQwfksQx.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-jmSBo5Uf.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-DQwfksQx.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-jmSBo5Uf.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 chunkVXSQ52OZ_cjs = require('./chunk-VXSQ52OZ.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,8 +17,8 @@ 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
|
|
21
|
-
var
|
|
20
|
+
var chunkYV2TNMIL_cjs = require('./chunk-YV2TNMIL.cjs');
|
|
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');
|
|
24
24
|
var chunkBJGMF356_cjs = require('./chunk-BJGMF356.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 chunkVXSQ52OZ_cjs.createUnpluginFactory; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "getBaseFileHeader", {
|
|
75
75
|
enumerable: true,
|
|
@@ -101,11 +101,11 @@ Object.defineProperty(exports, "createImportTransformer", {
|
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkYV2TNMIL_cjs.PowerlinesAPIContext; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkOSLTVUMN_cjs.PowerlinesEnvironmentContext; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "createPluginContext", {
|
|
111
111
|
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-DQwfksQx.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-BVDm0kBL.cjs';
|
|
61
|
+
import './api-JesRJRuE.cjs';
|
|
62
62
|
import 'flat-cache';
|
|
63
|
-
import './unplugin-
|
|
63
|
+
import './unplugin-BZkVo2w3.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-jmSBo5Uf.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-BM4-dK4g.js';
|
|
61
|
+
import './api-D1XGInIf.js';
|
|
62
62
|
import 'flat-cache';
|
|
63
|
-
import './unplugin-
|
|
63
|
+
import './unplugin-DZeOgtvW.js';
|