@powerlines/engine 0.0.16 → 0.0.18

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.
@@ -3021,7 +3021,9 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3021
3021
  context.persistedMeta = this.persistedMeta ? (0, _stryke_helpers_deep_clone.deepClone)(this.persistedMeta) : void 0;
3022
3022
  context.packageJson = (0, _stryke_helpers_deep_clone.deepClone)(this.packageJson);
3023
3023
  context.projectJson = this.projectJson ? (0, _stryke_helpers_deep_clone.deepClone)(this.projectJson) : void 0;
3024
- context.tsconfig = (0, _stryke_helpers_deep_clone.deepClone)(this.tsconfig);
3024
+ context.tsconfig ??= (0, _stryke_helpers_deep_clone.deepClone)(this.tsconfig);
3025
+ context.resolver ??= this.resolver;
3026
+ context.fs ??= this.#fs;
3025
3027
  context.$$internal = this.$$internal;
3026
3028
  return context;
3027
3029
  }
@@ -3585,8 +3587,7 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
3585
3587
  * @returns A new context instance with the updated environment.
3586
3588
  */
3587
3589
  async in(environment) {
3588
- const context = await PowerlinesEnvironmentContext.fromConfig((0, _stryke_helpers_deep_clone.deepClone)(this.options), (0, _stryke_helpers_deep_clone.deepClone)(this.config), (0, _stryke_helpers_deep_clone.deepClone)(environment));
3589
- context.$$internal = this.$$internal;
3590
+ const context = this.copyTo(await PowerlinesEnvironmentContext.fromConfig((0, _stryke_helpers_deep_clone.deepClone)(this.options), (0, _stryke_helpers_deep_clone.deepClone)(this.config), (0, _stryke_helpers_deep_clone.deepClone)(environment)));
3590
3591
  context.plugins = [];
3591
3592
  for (const plugin of this.plugins) await context.addPlugin(plugin);
3592
3593
  return context;
@@ -2988,7 +2988,9 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
2988
2988
  context.persistedMeta = this.persistedMeta ? deepClone(this.persistedMeta) : void 0;
2989
2989
  context.packageJson = deepClone(this.packageJson);
2990
2990
  context.projectJson = this.projectJson ? deepClone(this.projectJson) : void 0;
2991
- context.tsconfig = deepClone(this.tsconfig);
2991
+ context.tsconfig ??= deepClone(this.tsconfig);
2992
+ context.resolver ??= this.resolver;
2993
+ context.fs ??= this.#fs;
2992
2994
  context.$$internal = this.$$internal;
2993
2995
  return context;
2994
2996
  }
@@ -3552,8 +3554,7 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
3552
3554
  * @returns A new context instance with the updated environment.
3553
3555
  */
3554
3556
  async in(environment) {
3555
- const context = await PowerlinesEnvironmentContext.fromConfig(deepClone(this.options), deepClone(this.config), deepClone(environment));
3556
- context.$$internal = this.$$internal;
3557
+ const context = this.copyTo(await PowerlinesEnvironmentContext.fromConfig(deepClone(this.options), deepClone(this.config), deepClone(environment)));
3557
3558
  context.plugins = [];
3558
3559
  for (const plugin of this.plugins) await context.addPlugin(plugin);
3559
3560
  return context;