@powerlines/engine 0.0.23 → 0.0.25

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.
@@ -2562,7 +2562,11 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
2562
2562
  */
2563
2563
  get additionalArgs() {
2564
2564
  return Object.entries(this.config.inlineConfig?.additionalArgs ?? {}).reduce((ret, [key, value]) => {
2565
- ret[key.replace(/^--?/, "")] = value;
2565
+ const formattedKey = key.replace(/^--?/, "");
2566
+ if (ret[formattedKey]) if (Array.isArray(ret[formattedKey])) if (Array.isArray(value)) ret[formattedKey] = [...(0, _stryke_convert_to_array.toArray)(ret[formattedKey]), ...value];
2567
+ else ret[formattedKey] = [...(0, _stryke_convert_to_array.toArray)(ret[formattedKey]), value];
2568
+ else ret[formattedKey] = [ret[formattedKey], ...Array.isArray(value) ? value : [value]];
2569
+ else ret[formattedKey] = value;
2566
2570
  return ret;
2567
2571
  }, {});
2568
2572
  }
@@ -2529,7 +2529,11 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
2529
2529
  */
2530
2530
  get additionalArgs() {
2531
2531
  return Object.entries(this.config.inlineConfig?.additionalArgs ?? {}).reduce((ret, [key, value]) => {
2532
- ret[key.replace(/^--?/, "")] = value;
2532
+ const formattedKey = key.replace(/^--?/, "");
2533
+ if (ret[formattedKey]) if (Array.isArray(ret[formattedKey])) if (Array.isArray(value)) ret[formattedKey] = [...toArray(ret[formattedKey]), ...value];
2534
+ else ret[formattedKey] = [...toArray(ret[formattedKey]), value];
2535
+ else ret[formattedKey] = [ret[formattedKey], ...Array.isArray(value) ? value : [value]];
2536
+ else ret[formattedKey] = value;
2533
2537
  return ret;
2534
2538
  }, {});
2535
2539
  }