@powerlines/engine 0.0.9 → 0.0.11
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/_internal/worker.cjs +2 -3
- package/dist/_internal/worker.mjs +2 -3
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +1 -1
- package/dist/api.mjs +1 -1
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{execution-context-CsXwiYub.cjs → execution-context-BfQt0NWO.cjs} +2 -3
- package/dist/{execution-context-Bs1yg85h.mjs → execution-context-DaplwLr4.mjs} +3 -4
- package/dist/{execution-context-Bs1yg85h.mjs.map → execution-context-DaplwLr4.mjs.map} +1 -1
- package/package.json +3 -3
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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) => {
|