@powerlines/engine 0.0.10 → 0.0.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.
@@ -3051,10 +3051,9 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3051
3051
  if (this.config.resolve.noExternal) this.config.resolve.noExternal = (0, _stryke_helpers_get_unique.getUnique)(this.config.resolve.noExternal);
3052
3052
  this.config.output.format = (0, _stryke_helpers_get_unique.getUnique)((0, _stryke_convert_to_array.toArray)(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
3053
3053
  if (this.config.output.dts !== false && !this.config.output.types) this.config.output.types = `${this.config.root ? `${this.config.root}/` : ""}${this.config.framework ?? "powerlines"}.d.ts`;
3054
- if (this.config.root && this.config.root !== "." && this.config.root !== "./" && this.config.root !== this.options.cwd) this.config.output.path ??= (0, _stryke_path_join.joinPaths)(this.config.root, "dist");
3055
- else this.config.output.path ??= "dist";
3054
+ if (!this.config.output.path) this.config.output.path ??= (0, _stryke_path_join.joinPaths)(this.config.root, "dist");
3056
3055
  if (this.config.root && this.config.output.copy !== false) this.config.output.copy = {
3057
- path: (0, _stryke_path_join.joinPaths)(this.options.cwd, "dist", (0, _stryke_path_replace.replacePath)(this.config.root, this.options.cwd)),
3056
+ path: (0, _stryke_path_join.joinPaths)(this.config.cwd, "dist", (0, _stryke_path_replace.replacePath)(this.config.root, this.config.cwd)),
3058
3057
  ...this.config.output.copy || {}
3059
3058
  };
3060
3059
  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 = (0, _stryke_helpers_get_unique.getUniqueBy)(this.config.output.copy.assets.map((asset) => {
@@ -3018,10 +3018,9 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3018
3018
  if (this.config.resolve.noExternal) this.config.resolve.noExternal = getUnique(this.config.resolve.noExternal);
3019
3019
  this.config.output.format = getUnique(toArray(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
3020
3020
  if (this.config.output.dts !== false && !this.config.output.types) this.config.output.types = `${this.config.root ? `${this.config.root}/` : ""}${this.config.framework ?? "powerlines"}.d.ts`;
3021
- if (this.config.root && this.config.root !== "." && this.config.root !== "./" && this.config.root !== this.options.cwd) this.config.output.path ??= joinPaths$1(this.config.root, "dist");
3022
- else this.config.output.path ??= "dist";
3021
+ if (!this.config.output.path) this.config.output.path ??= joinPaths$1(this.config.root, "dist");
3023
3022
  if (this.config.root && this.config.output.copy !== false) this.config.output.copy = {
3024
- path: joinPaths$1(this.options.cwd, "dist", replacePath(this.config.root, this.options.cwd)),
3023
+ path: joinPaths$1(this.config.cwd, "dist", replacePath(this.config.root, this.config.cwd)),
3025
3024
  ...this.config.output.copy || {}
3026
3025
  };
3027
3026
  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) => {