@powerlines/engine 0.43.28 → 0.43.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('./chunk-C0xms8kb.cjs');
3
- const require_execution_context = require('./execution-context-R45_zd18.cjs');
3
+ const require_execution_context = require('./execution-context-CprxWvYn.cjs');
4
4
  const require_tsconfig = require('./tsconfig-DeyWQC2N.cjs');
5
5
  const require_ts_morph = require('./ts-morph-BaLPVAdB.cjs');
6
6
  let _stryke_fs_resolve = require("@stryke/fs/resolve");
package/dist/api.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-BmRT3Anb.mjs";
1
+ import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-CBJxP2B2.mjs";
2
2
  import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-Cstsoprg.mjs";
3
3
  import { n as createProgram } from "./ts-morph-D0CaA37w.mjs";
4
4
  import { resolvePackage } from "@stryke/fs/resolve";
@@ -6,6 +6,7 @@ let _powerlines_core_lib_config = require("@powerlines/core/lib/config");
6
6
  let _powerlines_core_lib_logger = require("@powerlines/core/lib/logger");
7
7
  let _stryke_env_get_env_paths = require("@stryke/env/get-env-paths");
8
8
  let _stryke_json_storm_json = require("@stryke/json/storm-json");
9
+ let _stryke_path_is_equal = require("@stryke/path/is-equal");
9
10
  let _stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
10
11
  let chalk = require("chalk");
11
12
  chalk = require_chunk.__toESM(chalk, 1);
@@ -59,6 +60,10 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
59
60
  */
60
61
  options;
61
62
  /**
63
+ * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
64
+ */
65
+ inputOptions = {};
66
+ /**
62
67
  * The parsed configuration file for the project
63
68
  */
64
69
  configFile;
@@ -211,13 +216,14 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
211
216
  * @param options - The configuration options to initialize the context with
212
217
  */
213
218
  async init(options = {}) {
219
+ this.inputOptions = options;
214
220
  if (!this.powerlinesPath) {
215
221
  const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
216
222
  if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
217
223
  this.powerlinesPath = powerlinesPath;
218
224
  }
219
225
  const cwd = options.cwd || this.options?.cwd || process.cwd();
220
- const root = (options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && (options.root || this.options.root) !== cwd ? options.root || this.options.root : "./";
226
+ const root = (options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && !(0, _stryke_path_is_equal.isEqual)(options.root || this.options.root, cwd) ? options.root || this.options.root : ".";
221
227
  this.options = (0, defu.default)({
222
228
  root,
223
229
  cwd,
@@ -225,7 +231,10 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
225
231
  framework: options.framework,
226
232
  organization: options.organization,
227
233
  configFile: options.configFile
228
- }, this.options ?? {});
234
+ }, this.options ?? {}, {
235
+ mode: "production",
236
+ framework: "powerlines"
237
+ });
229
238
  this.resolver = createResolver({
230
239
  workspaceRoot: cwd,
231
240
  root,
@@ -5,6 +5,7 @@ import { loadUserConfigFile } from "@powerlines/core/lib/config";
5
5
  import { createLog, extendLog } from "@powerlines/core/lib/logger";
6
6
  import { getEnvPaths } from "@stryke/env/get-env-paths";
7
7
  import { StormJSON } from "@stryke/json/storm-json";
8
+ import { isEqual } from "@stryke/path/is-equal";
8
9
  import { isNull } from "@stryke/type-checks/is-null";
9
10
  import chalk from "chalk";
10
11
  import { formatDistanceToNowStrict } from "date-fns/formatDistanceToNowStrict";
@@ -56,6 +57,10 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
56
57
  */
57
58
  options;
58
59
  /**
60
+ * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
61
+ */
62
+ inputOptions = {};
63
+ /**
59
64
  * The parsed configuration file for the project
60
65
  */
61
66
  configFile;
@@ -208,13 +213,14 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
208
213
  * @param options - The configuration options to initialize the context with
209
214
  */
210
215
  async init(options = {}) {
216
+ this.inputOptions = options;
211
217
  if (!this.powerlinesPath) {
212
218
  const powerlinesPath = await resolvePackage("powerlines");
213
219
  if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
214
220
  this.powerlinesPath = powerlinesPath;
215
221
  }
216
222
  const cwd = options.cwd || this.options?.cwd || process.cwd();
217
- const root = (options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && (options.root || this.options.root) !== cwd ? options.root || this.options.root : "./";
223
+ const root = (options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && !isEqual(options.root || this.options.root, cwd) ? options.root || this.options.root : ".";
218
224
  this.options = defu({
219
225
  root,
220
226
  cwd,
@@ -222,7 +228,10 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
222
228
  framework: options.framework,
223
229
  organization: options.organization,
224
230
  configFile: options.configFile
225
- }, this.options ?? {});
231
+ }, this.options ?? {}, {
232
+ mode: "production",
233
+ framework: "powerlines"
234
+ });
226
235
  this.resolver = createResolver({
227
236
  workspaceRoot: cwd,
228
237
  root,
@@ -236,4 +245,4 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
236
245
 
237
246
  //#endregion
238
247
  export { PowerlinesBaseContext as t };
239
- //# sourceMappingURL=base-context-D9PKchy4.mjs.map
248
+ //# sourceMappingURL=base-context-D8a2XGIK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-context-D8a2XGIK.mjs","names":["#timestamp","#logLevel"],"sources":["../src/_internal/helpers/resolver.ts","../src/context/base-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ResolvedConfig, Resolver } from \"@powerlines/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { JitiOptions, createJiti } from \"jiti\";\n\nexport type CreateResolverOptions = Omit<\n JitiOptions,\n \"fsCache\" | \"moduleCache\" | \"interopDefault\"\n> &\n Pick<ResolvedConfig, \"mode\" | \"logLevel\" | \"skipCache\"> & {\n workspaceRoot: string;\n root: string;\n cacheDir: string;\n };\n\n/**\n * Create a Jiti resolver for the given workspace and project root.\n *\n * @param options - The options for creating the resolver.\n * @returns A Jiti instance configured for the specified workspace and project root.\n */\nfunction resolveOptions(options: CreateResolverOptions): JitiOptions {\n return defu(options, {\n interopDefault: true,\n fsCache:\n options.mode !== \"development\"\n ? joinPaths(options.cacheDir, \"jiti\")\n : false,\n moduleCache: options.mode !== \"development\"\n });\n}\n\n/**\n * Create a Jiti resolver for the given workspace and project root.\n *\n * @param options - The options for creating the resolver.\n * @returns A Jiti instance configured for the specified workspace and project root.\n */\nexport function createResolver(options: CreateResolverOptions): Resolver {\n const baseResolver = createJiti(\n joinPaths(options.workspaceRoot, options.root),\n resolveOptions(options)\n ) as Resolver;\n baseResolver.plugin = createJiti(\n joinPaths(options.workspaceRoot, options.root),\n resolveOptions(options)\n );\n\n return baseResolver;\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 type {\n BaseContext,\n EngineOptions,\n LogFn,\n Logger,\n LogLevel,\n ParsedUserConfig,\n ResolvedEngineOptions,\n Resolver\n} from \"@powerlines/core\";\nimport { loadUserConfigFile } from \"@powerlines/core/lib/config\";\nimport { createLog, extendLog } from \"@powerlines/core/lib/logger\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { EnvPaths, getEnvPaths } from \"@stryke/env/get-env-paths\";\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { isEqual } from \"@stryke/path/is-equal\";\nimport { isNull } from \"@stryke/type-checks/is-null\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport defu from \"defu\";\nimport { UnpluginMessage } from \"unplugin\";\nimport { createResolver } from \"../_internal/helpers/resolver\";\n\nexport class PowerlinesBaseContext implements BaseContext {\n #timestamp: number = Date.now();\n\n #logLevel: LogLevel | null = \"info\";\n\n /**\n * The path to the Powerlines package\n */\n public powerlinesPath!: string;\n\n /**\n * The module resolver for the project\n */\n public resolver!: Resolver;\n\n /**\n * The options provided to the Powerlines process\n */\n public options!: ResolvedEngineOptions;\n\n /**\n * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context\n */\n public inputOptions: Partial<EngineOptions> = {};\n\n /**\n * The parsed configuration file for the project\n */\n public configFile!: ParsedUserConfig;\n\n /**\n * A timestamp representing when the context was initialized\n */\n public get timestamp(): Date {\n return new Date(this.#timestamp);\n }\n\n public get logLevel(): LogLevel | null {\n return this.#logLevel || \"info\";\n }\n\n public set logLevel(level: LogLevel | null) {\n this.#logLevel = level;\n }\n\n /**\n * The logger function\n */\n public get log(): LogFn {\n const level = this.logLevel || \"info\";\n if (!this.logger || this.logger.level !== level) {\n this.logger = {\n log: this.createLog(),\n level\n };\n }\n\n return this.logger.log;\n }\n\n /**\n * The environment paths for the project\n */\n public get envPaths(): EnvPaths {\n return getEnvPaths({\n orgId: this.options.organization,\n appId: this.options.framework || \"powerlines\",\n workspaceRoot: this.options.cwd\n });\n }\n\n /**\n * Creates a clone of the current context with the same configuration and workspace settings. This can be useful for running multiple builds in parallel or for creating isolated contexts for different parts of the build process.\n *\n * @remarks\n * The cloned context will have the same configuration and workspace settings as the original context, but will have a different build ID, release ID, and timestamp. The virtual file system and caches will also be separate between the original and cloned contexts.\n *\n * @returns A promise that resolves to the cloned context.\n */\n public async clone(): Promise<BaseContext> {\n const clone = new PowerlinesBaseContext();\n await clone.init(this.options);\n\n return clone;\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | UnpluginMessage) {\n this.log(\n LogLevelLabel.FATAL,\n isString(message) ? message : StormJSON.stringify(message)\n );\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | UnpluginMessage) {\n this.log(\n LogLevelLabel.ERROR,\n isString(message) ? message : StormJSON.stringify(message)\n );\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | UnpluginMessage) {\n this.log(\n LogLevelLabel.WARN,\n isString(message) ? message : StormJSON.stringify(message)\n );\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | UnpluginMessage) {\n this.log(\n LogLevelLabel.INFO,\n isString(message) ? message : StormJSON.stringify(message)\n );\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | UnpluginMessage) {\n this.log(\n LogLevelLabel.DEBUG,\n isString(message) ? message : StormJSON.stringify(message)\n );\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | UnpluginMessage) {\n this.log(\n LogLevelLabel.TRACE,\n isString(message) ? message : StormJSON.stringify(message)\n );\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.log(\n LogLevelLabel.PERFORMANCE,\n `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n );\n };\n }\n\n /**\n * Create a new logger instance\n *\n * @param name - The name to use for the logger instance\n * @returns A logger function\n */\n public createLog(name: string | null = null): LogFn {\n return createLog(name, {\n ...this.options,\n logLevel: isNull(this.logLevel) ? \"silent\" : this.logLevel\n });\n }\n\n /**\n * Extend the current logger instance with a new name\n *\n * @param name - The name to use for the extended logger instance\n * @returns A logger function\n */\n public extendLog(name: string): LogFn {\n return extendLog(this.log, name);\n }\n\n /**\n * A logger function specific to this context\n */\n protected logger!: Logger;\n\n /**\n * Initialize the context with the provided configuration options\n *\n * @remarks\n * This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.\n *\n * @param options - The configuration options to initialize the context with\n */\n protected async init(options: Partial<EngineOptions> = {}) {\n this.inputOptions = options;\n\n if (!this.powerlinesPath) {\n const powerlinesPath = await resolvePackage(\"powerlines\");\n if (!powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n this.powerlinesPath = powerlinesPath;\n }\n\n const cwd = options.cwd || this.options?.cwd || process.cwd();\n const root =\n (options.root || this.options?.root) &&\n (options.root || this.options.root).replace(/^\\.\\/?/, \"\") &&\n !isEqual(options.root || this.options.root, cwd)\n ? options.root || this.options.root\n : \".\";\n\n this.options = defu(\n {\n root,\n cwd,\n mode: options.mode,\n framework: options.framework,\n organization: options.organization,\n configFile: options.configFile\n },\n this.options ?? {},\n {\n mode: \"production\",\n framework: \"powerlines\"\n }\n ) as ResolvedEngineOptions;\n\n this.resolver = createResolver({\n workspaceRoot: cwd,\n root,\n cacheDir: this.envPaths.cache,\n mode: this.options.mode,\n logLevel: this.logLevel\n });\n\n this.configFile = await loadUserConfigFile(this.options, this.resolver);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA,SAAS,eAAe,SAA6C;AACnE,QAAO,KAAK,SAAS;EACnB,gBAAgB;EAChB,SACE,QAAQ,SAAS,gBACb,UAAU,QAAQ,UAAU,OAAO,GACnC;EACN,aAAa,QAAQ,SAAS;EAC/B,CAAC;;;;;;;;AASJ,SAAgB,eAAe,SAA0C;CACvE,MAAM,eAAe,WACnB,UAAU,QAAQ,eAAe,QAAQ,KAAK,EAC9C,eAAe,QAAQ,CACxB;AACD,cAAa,SAAS,WACpB,UAAU,QAAQ,eAAe,QAAQ,KAAK,EAC9C,eAAe,QAAQ,CACxB;AAED,QAAO;;;;;ACvBT,IAAa,wBAAb,MAAa,sBAA6C;CACxD,aAAqB,KAAK,KAAK;CAE/B,YAA6B;;;;CAK7B,AAAO;;;;CAKP,AAAO;;;;CAKP,AAAO;;;;CAKP,AAAO,eAAuC,EAAE;;;;CAKhD,AAAO;;;;CAKP,IAAW,YAAkB;AAC3B,SAAO,IAAI,KAAK,MAAKA,UAAW;;CAGlC,IAAW,WAA4B;AACrC,SAAO,MAAKC,YAAa;;CAG3B,IAAW,SAAS,OAAwB;AAC1C,QAAKA,WAAY;;;;;CAMnB,IAAW,MAAa;EACtB,MAAM,QAAQ,KAAK,YAAY;AAC/B,MAAI,CAA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Symbol.toStringTag, { value: 'Module' });
2
- const require_base_context = require('../base-context-BgAxrobW.cjs');
3
- const require_engine_context = require('../engine-context-B5zOInDj.cjs');
4
- const require_execution_context = require('../execution-context-R45_zd18.cjs');
2
+ const require_base_context = require('../base-context-B9AROf66.cjs');
3
+ const require_engine_context = require('../engine-context-qCVw66U_.cjs');
4
+ const require_execution_context = require('../execution-context-CprxWvYn.cjs');
5
5
 
6
6
  exports.PowerlinesBaseContext = require_base_context.PowerlinesBaseContext;
7
7
  exports.PowerlinesContext = require_execution_context.PowerlinesContext;
@@ -23,6 +23,10 @@ declare class PowerlinesBaseContext implements BaseContext {
23
23
  * The options provided to the Powerlines process
24
24
  */
25
25
  options: ResolvedEngineOptions;
26
+ /**
27
+ * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
28
+ */
29
+ inputOptions: Partial<EngineOptions>;
26
30
  /**
27
31
  * The parsed configuration file for the project
28
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/context/base-context.ts","../../src/context/context.ts","../../src/context/engine-context.ts","../../src/context/environment-context.ts","../../src/context/execution-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA0Ca,qBAAA,YAAiC,WAAA;EAAA;;;;EAQrC,cAAA;;;AART;EAaS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAUO;;;EALjB,UAAA,EAAa,gBAAA;EAmCG;;;EAAA,IA9BZ,SAAA,CAAA,GAAa,IAAA;EAAA,IAIb,QAAA,CAAA,GAAY,QAAA;EAAA,IAIZ,QAAA,CAAS,KAAA,EAAO,QAAA;EAsFG;;;EAAA,IA/EnB,GAAA,CAAA,GAAO,KAAA;EA+Jc;;;EAAA,IAhJrB,QAAA,CAAA,GAAY,QAAA;EAiKkC;;;;;;;;EAjJ5C,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;EAxDvB;;;;;EAoEA,KAAA,CAAM,OAAA,WAAkB,e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,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;iBCtS3C,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/context/base-context.ts","../../src/context/context.ts","../../src/context/engine-context.ts","../../src/context/environment-context.ts","../../src/context/execution-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA2Ca,qBAAA,YAAiC,WAAA;EAAA;;;;EAQrC,cAAA;;;AART;EAaS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAKI;;;EAAd,YAAA,EAAc,OAAA,CAAQ,aAAA;EAkBF;;;EAbpB,UAAA,EAAa,gBAAA;EAmDE;;;EAAA,IA9CX,SAAA,CAAA,GAAa,IAAA;EAAA,IAIb,QAAA,CAAA,GAAY,QAAA;EAAA,IAIZ,QAAA,CAAS,KAAA,EAAO,QAAA;EA8GI;;;EAAA,IAvGpB,GAAA,CAAA,GAAO,KAAA;EAgLoB;;;EAAA,IAjK3B,QAAA,CAAA,GAAY,QAAA;EA/DgC;;;;;;;;EA+E1C,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;EAxDvB;;;;;EAoEA,KAAA,CAAM,OAAA,WAAkB,eAAA;EA1DP;;;;;EAsEjB,KAAA,CAAM,OAAA,WAAkB,eAAA;EAvDpB;;;;;EAmEJ,IAAA,CAAK,OAAA,WAAkB,eAAA;EApCA;;;;;EAgDvB,IAAA,CAAK,OAAA,WAAkB,eAAA;EAxBjB;;;;;EAoCN,KAAA,CAAM,OAAA,WAAkB,eAAA;EAZnB;;;;;EAwBL,KAAA,CAAM,OAAA,WAAkB,eAAA;EAAlB;;;;;;;;;;;;;EAoBN,KAAA,CAAM,IAAA;EAqDQ;;;;;;EA9Bd,SAAA,C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AAA,GACP,OAAA,CAAQ,gBAAA,CAAiB,eAAA;EJnBJ;;;;;;;;EAAA,II2DJ,UAAA,CAAA,GAAc,wBAAA,CAAyB,eAAA;EJuB7B;;;;;;;;EAAA,IIXV,UAAA,CAClB,KAAA,EAAO,wBAAA,CAAyB,eAAA;EJuHuB;;;EAAA,II5G9C,YAAA,CAAA,GAAgB,MAAA,SAEzB,2BAAA,CAA4B,eAAA;EAAA,IAKnB,OAAA,CAAA,GAAW,KAAA,CAAM,MAAA,CAAO,aAAA,CAAc,eAAA;;;;;;YASxC,WAAA,CAAa,OAAA,EAAS,wBAAA;EJ7GxB;;;;;;;;EIyHe,KAAA,CAAA,GAAS,OAAA,CAAQ,gBAAA,CAAiB,eAAA;EJvG7C;;;;;;EIiIE,EAAA,CACX,WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJ7F1B;;;EIwHS,KAAA,CAAA,GAAK,OAAA;EJ5GI;;;;;EIkIlB,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJ1GvC;;;;;;EI0HjB,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJlG5B;;;;;;EIyIA,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EJpFb;;;;;;;;EIoGJ,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;iBCtS3C,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
@@ -23,6 +23,10 @@ declare class PowerlinesBaseContext implements BaseContext {
23
23
  * The options provided to the Powerlines process
24
24
  */
25
25
  options: ResolvedEngineOptions;
26
+ /**
27
+ * The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
28
+ */
29
+ inputOptions: Partial<EngineOptions>;
26
30
  /**
27
31
  * The parsed configuration file for the project
28
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/context/base-context.ts","../../src/context/context.ts","../../src/context/engine-context.ts","../../src/context/environment-context.ts","../../src/context/execution-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA0Ca,qBAAA,YAAiC,WAAA;EAAA;;;;EAQrC,cAAA;;;AART;EAaS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EAUO;;;EALjB,UAAA,EAAa,gBAAA;EAmCG;;;EAAA,IA9BZ,SAAA,CAAA,GAAa,IAAA;EAAA,IAIb,QAAA,CAAA,GAAY,QAAA;EAAA,IAIZ,QAAA,CAAS,KAAA,EAAO,QAAA;EAsFG;;;EAAA,IA/EnB,GAAA,CAAA,GAAO,KAAA;EA+Jc;;;EAAA,IAhJrB,QAAA,CAAA,GAAY,QAAA;EAiKkC;;;;;;;;EAjJ5C,KAAA,CAAA,GAAS,OAAA,CAAQ,WAAA;EAxDvB;;;;;EAoEA,KAAA,CAAM,OAAA,WAAkB,eAAA;EAtDpB;;;;;EAkEJ,KAAA,CAAM,OAAA,WAAkB,eAAA;EAvDb;;;;;EAmEX,IAAA,CAAK,OAAA,WAAkB,eAAA;EAxBvB;;;;;EAoCA,IAAA,CAAK,OAAA,WAAkB,eAAA;EAZvB;;;;;EAwBA,KAAA,CAAM,OAAA,WAAkB,eAAA;EAAxB;;;;;EAYA,KAAA,CAAM,OAAA,WAAkB,eAAA;EAoBxB;;;;;;;;;;;;;EAAA,KAAA,CAAM,IAAA;EAqD4C;;;;;;EA9BlD,SAAA,CAAU,IAAA,mBAA6B,KAAA;EChGlB;;;;;;ED6GrB,SAAA,CAAU,IAAA,WAAe,KAAA;ECvErB;;;EAAA,UD8ED,MAAA,EAAS,MAAA;EC9DM;;;;;;;;EAAA,UDw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AClB,KAAA,EAAO,wBAAA,CAAyB,eAAA;EJ1GqB;;;EAAA,IIqH5C,YAAA,CAAA,GAAgB,MAAA,SAEzB,2BAAA,CAA4B,eAAA;EAAA,IAKnB,OAAA,CAAA,GAAW,KAAA,CAAM,MAAA,CAAO,aAAA,CAAc,eAAA;EJ/G1C;;;;;EAAA,UIwHE,WAAA,CAAa,OAAA,EAAS,wBAAA;EJzGpB;;;;;;;;EIqHW,KAAA,CAAA,GAAS,OAAA,CAAQ,gBAAA,CAAiB,eAAA;EJvF7C;;;;;;EIiHE,EAAA,CACX,WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJvF1B;;;EIkHS,KAAA,CAAA,GAAK,OAAA;EJ1FpB;;;;;EIgHM,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJxF9D;;;;;;EIwGM,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJxE5B;;;;;;EI+GA,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EJtEpB;;;;;;;;EIsFG,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;iBCtS3C,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/context/base-context.ts","../../src/context/context.ts","../../src/context/engine-context.ts","../../src/context/environment-context.ts","../../src/context/execution-context.ts","../../src/context/plugin-context.ts"],"mappings":";;;;;;;;;;;cA2Ca,qBAAA,YAAiC,WAAA;EAAA;;;;EAQrC,cAAA;;;AART;EAaS,QAAA,EAAW,QAAA;;;;EAKX,OAAA,EAAU,qBAAA;EA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AA,CACX,WAAA,EAAa,yBAAA,GACZ,OAAA,CAAQ,2BAAA,CAA4B,eAAA;EJ7F1B;;;EIwHS,KAAA,CAAA,GAAK,OAAA;EJ5GI;;;;;EIkIlB,SAAA,CAAU,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,KAAiB,OAAA;EJ1GvC;;;;;;EI0HjB,cAAA,CAAe,IAAA,YAAa,OAAA,CAAA,kBAAA,CAAA,eAAA;EJlG5B;;;;;;EIyIA,kBAAA,CACX,IAAA,YACC,OAAA,CAAQ,kBAAA,CAAmB,eAAA;EJpFb;;;;;;;;EIoGJ,aAAA,CAAA,GAAiB,OAAA,CAAQ,kBAAA,CAAmB,eAAA;AAAA;;;;;;;;;;iBCtS3C,mBAAA,yBACU,cAAA,GAAiB,cAAA,CAAA,CAEzC,MAAA,EAAQ,MAAA,CAAO,aAAA,CAAc,eAAA,IAC7B,WAAA,EAAa,2BAAA,CAA4B,eAAA,IACxC,sBAAA,CAAuB,eAAA"}
@@ -1,5 +1,5 @@
1
- import { t as PowerlinesBaseContext } from "../base-context-D9PKchy4.mjs";
2
- import { t as PowerlinesEngineContext } from "../engine-context-B7_Cc9N2.mjs";
3
- import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-BmRT3Anb.mjs";
1
+ import { t as PowerlinesBaseContext } from "../base-context-D8a2XGIK.mjs";
2
+ import { t as PowerlinesEngineContext } from "../engine-context-DsA9XGVb.mjs";
3
+ import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-CBJxP2B2.mjs";
4
4
 
5
5
  export { PowerlinesBaseContext, PowerlinesContext, PowerlinesEngineContext, PowerlinesEnvironmentContext, PowerlinesExecutionContext, createPluginContext };
@@ -1,4 +1,4 @@
1
- import { t as PowerlinesBaseContext } from "./base-context-D9PKchy4.mjs";
1
+ import { t as PowerlinesBaseContext } from "./base-context-D8a2XGIK.mjs";
2
2
 
3
3
  //#region src/context/engine-context.ts
4
4
  var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBaseContext {
@@ -38,4 +38,4 @@ var PowerlinesEngineContext = class PowerlinesEngineContext extends PowerlinesBa
38
38
 
39
39
  //#endregion
40
40
  export { PowerlinesEngineContext as t };
41
- //# sourceMappingURL=engine-context-B7_Cc9N2.mjs.map
41
+ //# sourceMappingURL=engine-context-DsA9XGVb.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"engine-context-B7_Cc9N2.mjs","names":["#executions"],"sources":["../src/context/engine-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n EngineContext,\n EngineOptions,\n ResolvedExecutionOptions\n} from \"@powerlines/core\";\nimport { PowerlinesBaseContext } from \"./base-context\";\n\nexport class PowerlinesEngineContext\n extends PowerlinesBaseContext\n implements EngineContext\n{\n #executions: ResolvedExecutionOptions[] = [];\n\n /**\n * Creates a new instance of the PowerlinesEngineContext class.\n *\n * @param options - The options to initialize the context with.\n * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.\n */\n public static async fromOptions(\n options: EngineOptions\n ): Promise<PowerlinesEngineContext> {\n const context = new PowerlinesEngineContext();\n await context.init(options);\n\n if (!context.configFile?.config) {\n context.fatal(\n \"No configuration file found. Please ensure you have a valid configuration file in your project.\"\n );\n throw new Error(\"No configuration file found\");\n }\n\n if (Array.isArray(context.configFile.config)) {\n context.#executions = await Promise.all(\n context.configFile.config.map(async (_, configIndex) => ({\n ...context.options,\n configIndex\n }))\n );\n } else {\n context.#executions = [\n {\n ...context.options,\n configIndex: 0\n }\n ];\n }\n\n return context;\n }\n\n /**\n * A list of all command executions that will be run during the lifecycle of the engine\n *\n * @returns An array of ResolvedExecutionOptions representing each execution context for the engine.\n */\n public get executions(): ResolvedExecutionOptions[] {\n return this.#executions;\n }\n}\n"],"mappings":";;;AAyBA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CACE,cAA0C,EAAE;;;;;;;CAQ5C,aAAoB,YAClB,SACkC;EAClC,MAAM,UAAU,IAAI,yBAAyB;AAC7C,QAAM,QAAQ,KAAK,QAAQ;AAE3B,MAAI,CAAC,QAAQ,YAAY,QAAQ;AAC/B,WAAQ,MACN,kGACD;AACD,SAAM,IAAI,MAAM,8BAA8B;;AAGhD,MAAI,MAAM,QAAQ,QAAQ,WAAW,OAAO,CAC1C,UAAQA,aAAc,MAAM,QAAQ,IAClC,QAAQ,WAAW,OAAO,IAAI,OAAO,GAAG,iBAAiB;GACvD,GAAG,QAAQ;GACX;GACD,EAAE,CACJ;MAED,UAAQA,aAAc,CACpB;GACE,GAAG,QAAQ;GACX,aAAa;GACd,CACF;AAGH,SAAO;;;;;;;CAQT,IAAW,aAAyC;AAClD,SAAO,MAAKA"}
1
+ {"version":3,"file":"engine-context-DsA9XGVb.mjs","names":["#executions"],"sources":["../src/context/engine-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n EngineContext,\n EngineOptions,\n ResolvedExecutionOptions\n} from \"@powerlines/core\";\nimport { PowerlinesBaseContext } from \"./base-context\";\n\nexport class PowerlinesEngineContext\n extends PowerlinesBaseContext\n implements EngineContext\n{\n #executions: ResolvedExecutionOptions[] = [];\n\n /**\n * Creates a new instance of the PowerlinesEngineContext class.\n *\n * @param options - The options to initialize the context with.\n * @returns A promise that resolves to an instance of the PowerlinesEngineContext class.\n */\n public static async fromOptions(\n options: EngineOptions\n ): Promise<PowerlinesEngineContext> {\n const context = new PowerlinesEngineContext();\n await context.init(options);\n\n if (!context.configFile?.config) {\n context.fatal(\n \"No configuration file found. Please ensure you have a valid configuration file in your project.\"\n );\n throw new Error(\"No configuration file found\");\n }\n\n if (Array.isArray(context.configFile.config)) {\n context.#executions = await Promise.all(\n context.configFile.config.map(async (_, configIndex) => ({\n ...context.options,\n configIndex\n }))\n );\n } else {\n context.#executions = [\n {\n ...context.options,\n configIndex: 0\n }\n ];\n }\n\n return context;\n }\n\n /**\n * A list of all command executions that will be run during the lifecycle of the engine\n *\n * @returns An array of ResolvedExecutionOptions representing each execution context for the engine.\n */\n public get executions(): ResolvedExecutionOptions[] {\n return this.#executions;\n }\n}\n"],"mappings":";;;AAyBA,IAAa,0BAAb,MAAa,gCACH,sBAEV;CACE,cAA0C,EAAE;;;;;;;CAQ5C,aAAoB,YAClB,SACkC;EAClC,MAAM,UAAU,IAAI,yBAAyB;AAC7C,QAAM,QAAQ,KAAK,QAAQ;AAE3B,MAAI,CAAC,QAAQ,YAAY,QAAQ;AAC/B,WAAQ,MACN,kGACD;AACD,SAAM,IAAI,MAAM,8BAA8B;;AAGhD,MAAI,MAAM,QAAQ,QAAQ,WAAW,OAAO,CAC1C,UAAQA,aAAc,MAAM,QAAQ,IAClC,QAAQ,WAAW,OAAO,IAAI,OAAO,GAAG,iBAAiB;GACvD,GAAG,QAAQ;GACX;GACD,EAAE,CACJ;MAED,UAAQA,aAAc,CACpB;GACE,GAAG,QAAQ;GACX,aAAa;GACd,CACF;AAGH,SAAO;;;;;;;CAQT,IAAW,aAAyC;AAClD,SAAO,MAAKA"}
@@ -1,4 +1,4 @@
1
- const require_base_context = require('./base-context-BgAxrobW.cjs');
1
+ const require_base_context = require('./base-context-B9AROf66.cjs');
2
2
 
3
3
  //#region src/context/engine-context.ts
4
4
  var PowerlinesEngineContext = class PowerlinesEngineContext extends require_base_context.PowerlinesBaseContext {
@@ -1,4 +1,4 @@
1
- import { t as PowerlinesBaseContext } from "./base-context-D9PKchy4.mjs";
1
+ import { t as PowerlinesBaseContext } from "./base-context-D8a2XGIK.mjs";
2
2
  import { a as FileSystem } from "./fs-D1nIP45P.mjs";
3
3
  import { n as FileSystemStorageAdapter, t as VirtualStorageAdapter } from "./virtual-gIlTc3Lj.mjs";
4
4
  import { i as getTsconfigFilePath } from "./tsconfig-Cstsoprg.mjs";
@@ -9,6 +9,7 @@ import { LogLevelLabel } from "@storm-software/config-tools/types";
9
9
  import { isSet } from "@stryke/type-checks/is-set";
10
10
  import { isString } from "@stryke/type-checks/is-string";
11
11
  import { colorText, createLog, extendLog } from "@powerlines/core/lib/logger";
12
+ import { isEqual } from "@stryke/path/is-equal";
12
13
  import { isNull } from "@stryke/type-checks/is-null";
13
14
  import chalk from "chalk";
14
15
  import defu, { createDefu, defu as defu$1 } from "defu";
@@ -1919,6 +1920,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
1919
1920
  copyTo(context) {
1920
1921
  for (const [key, value] of Object.entries(this)) if (!SKIP_CLONING_PROPS.includes(key)) if (isObject(value) || Array.isArray(value)) context[key] = deepClone(value);
1921
1922
  else context[key] = value;
1923
+ context.inputOptions = deepClone(this.inputOptions);
1922
1924
  context.dependencies = deepClone(this.dependencies);
1923
1925
  context.devDependencies = deepClone(this.devDependencies);
1924
1926
  context.persistedMeta = this.persistedMeta ? deepClone(this.persistedMeta) : void 0;
@@ -1941,14 +1943,14 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
1941
1943
  async init(options = {}) {
1942
1944
  await super.init(options);
1943
1945
  this.options.configIndex = options.configIndex ?? this.options.configIndex ?? 0;
1944
- const projectJsonPath = joinPaths(this.options.root, "project.json");
1946
+ const projectJsonPath = joinPaths(this.options.cwd, this.options.root, "project.json");
1945
1947
  if (existsSync(projectJsonPath)) this.projectJson = await readJsonFile(projectJsonPath);
1946
- const packageJsonPath = joinPaths(this.options.root, "package.json");
1948
+ const packageJsonPath = joinPaths(this.options.cwd, this.options.root, "package.json");
1947
1949
  if (existsSync(packageJsonPath)) {
1948
1950
  this.packageJson = await readJsonFile(packageJsonPath);
1949
1951
  this.options.organization ??= isSetObject(this.packageJson?.author) ? kebabCase(this.packageJson?.author?.name) : kebabCase(this.packageJson?.author);
1950
1952
  }
1951
- this.#checksum = await this.generateChecksum(this.options.root);
1953
+ this.#checksum = await this.generateChecksum(joinPaths(this.options.cwd, this.options.root));
1952
1954
  const userConfig = this.configFile.config ? Array.isArray(this.configFile.config) && this.configFile.config.length > this.options.configIndex ? this.configFile.config[this.options.configIndex] : this.configFile.config : {};
1953
1955
  this.resolvedConfig = {
1954
1956
  ...this.options,
@@ -1960,11 +1962,11 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
1960
1962
  * Initialize the context with the provided configuration options
1961
1963
  */
1962
1964
  async innerSetup() {
1963
- if (!this.options.mode && !this.config.userConfig?.mode && !this.config.inlineConfig?.mode && !this.config.pluginConfig?.mode) {
1965
+ if (!this.inputOptions.mode && !this.config.userConfig?.mode && !this.config.inlineConfig?.mode && !this.config.pluginConfig?.mode) {
1964
1966
  this.options.mode = "production";
1965
1967
  this.config.mode = "production";
1966
1968
  }
1967
- if (!this.options.framework && !this.config.userConfig?.framework && !this.config.inlineConfig?.framework && !this.config.pluginConfig?.framework) {
1969
+ if (!this.inputOptions.framework && !this.config.userConfig?.framework && !this.config.inlineConfig?.framework && !this.config.pluginConfig?.framework) {
1968
1970
  this.options.framework = "powerlines";
1969
1971
  this.config.framework = "powerlines";
1970
1972
  }
@@ -2016,7 +2018,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
2016
2018
  if (this.config.output.copy && this.config.output.copy.path && this.config.output.copy.assets && Array.isArray(this.config.output.copy.assets)) this.config.output.copy.assets = getUniqueBy(this.config.output.copy.assets.map((asset) => {
2017
2019
  return {
2018
2020
  glob: isSetObject(asset) ? asset.glob : asset,
2019
- input: isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.options.cwd : isParentPath(asset.input, this.config.cwd) || asset.input === this.config.cwd ? asset.input : appendPath(asset.input, this.config.cwd),
2021
+ input: isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.options.cwd : isParentPath(asset.input, this.config.cwd) || isEqual(asset.input, this.config.cwd) ? asset.input : appendPath(asset.input, this.config.cwd),
2020
2022
  output: isSetObject(asset) && asset.output ? isParentPath(asset.output, this.config.cwd) ? asset.output : appendPath(joinPaths(this.config.output.copy.path, replacePath(replacePath(asset.output, replacePath(this.config.output.copy.path, this.config.cwd)), this.config.output.copy.path)), this.config.cwd) : appendPath(this.config.output.copy.path, this.config.cwd),
2021
2023
  ignore: isSetObject(asset) && asset.ignore ? toArray(asset.ignore) : void 0
2022
2024
  };
@@ -2568,4 +2570,4 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
2568
2570
 
2569
2571
  //#endregion
2570
2572
  export { mergeConfigs as a, callHook as i, PowerlinesEnvironmentContext as n, PowerlinesContext as o, createPluginContext as r, writeMetaFile as s, PowerlinesExecutionContext as t };
2571
- //# sourceMappingURL=execution-context-BmRT3Anb.mjs.map
2573
+ //# sourceMappingURL=execution-context-CBJxP2B2.mjs.map