@powerlines/engine 0.14.4 → 0.15.0

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-CyDSAifN.cjs');
3
+ const require_execution_context = require('./execution-context-BgGV4xyW.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-Cq9cjr28.mjs";
1
+ import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-D_CXpe9I.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";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_base_context = require('../base-context-CFvO2N9I.cjs');
3
3
  const require_engine_context = require('../engine-context-NO6enYev.cjs');
4
- const require_execution_context = require('../execution-context-CyDSAifN.cjs');
4
+ const require_execution_context = require('../execution-context-BgGV4xyW.cjs');
5
5
 
6
6
  exports.PowerlinesBaseContext = require_base_context.PowerlinesBaseContext;
7
7
  exports.PowerlinesContext = require_execution_context.PowerlinesContext;
@@ -1,5 +1,5 @@
1
1
  import { t as PowerlinesBaseContext } from "../base-context-BUnL_9z8.mjs";
2
2
  import { t as PowerlinesEngineContext } from "../engine-context-BuD9AGfd.mjs";
3
- import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-Cq9cjr28.mjs";
3
+ import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-D_CXpe9I.mjs";
4
4
 
5
5
  export { PowerlinesBaseContext, PowerlinesContext, PowerlinesEngineContext, PowerlinesEnvironmentContext, PowerlinesExecutionContext, createPluginContext };
@@ -1966,7 +1966,7 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
1966
1966
  async innerSetup() {
1967
1967
  this.resolvedConfig.compatibilityDate = (0, compatx.resolveCompatibilityDates)(this.config.inlineConfig.compatibilityDate ?? this.config.userConfig.compatibilityDate ?? this.config.pluginConfig.compatibilityDate, "latest");
1968
1968
  this.resolvedConfig.output = (0, defu.default)(this.resolvedConfig.output ?? {}, {
1969
- path: this.config.root ? (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(this.config.root, "dist"), this.config.cwd) : void 0,
1969
+ path: (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(this.config.root, "dist"), this.config.cwd),
1970
1970
  copy: { assets: [
1971
1971
  { glob: "LICENSE" },
1972
1972
  {
@@ -2001,7 +2001,6 @@ var PowerlinesContext = class PowerlinesContext extends require_base_context.Pow
2001
2001
  if (this.config.resolve.noExternal) this.config.resolve.noExternal = (0, _stryke_helpers_get_unique.getUnique)(this.config.resolve.noExternal);
2002
2002
  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"])));
2003
2003
  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`;
2004
- if (!this.config.output.path) this.config.output.path ??= (0, _stryke_path_join.joinPaths)(this.config.root, "dist");
2005
2004
  if (this.config.root && this.config.output.copy !== false) this.config.output.copy = {
2006
2005
  path: (0, _stryke_path_join.joinPaths)(this.config.cwd, "dist", (0, _stryke_path_replace.replacePath)(this.config.root, this.config.cwd)),
2007
2006
  ...this.config.output.copy || {}
@@ -1962,7 +1962,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
1962
1962
  async innerSetup() {
1963
1963
  this.resolvedConfig.compatibilityDate = resolveCompatibilityDates(this.config.inlineConfig.compatibilityDate ?? this.config.userConfig.compatibilityDate ?? this.config.pluginConfig.compatibilityDate, "latest");
1964
1964
  this.resolvedConfig.output = defu(this.resolvedConfig.output ?? {}, {
1965
- path: this.config.root ? appendPath(joinPaths(this.config.root, "dist"), this.config.cwd) : void 0,
1965
+ path: appendPath(joinPaths(this.config.root, "dist"), this.config.cwd),
1966
1966
  copy: { assets: [
1967
1967
  { glob: "LICENSE" },
1968
1968
  {
@@ -1997,7 +1997,6 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
1997
1997
  if (this.config.resolve.noExternal) this.config.resolve.noExternal = getUnique(this.config.resolve.noExternal);
1998
1998
  this.config.output.format = getUnique(toArray(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
1999
1999
  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`;
2000
- if (!this.config.output.path) this.config.output.path ??= joinPaths(this.config.root, "dist");
2001
2000
  if (this.config.root && this.config.output.copy !== false) this.config.output.copy = {
2002
2001
  path: joinPaths(this.config.cwd, "dist", replacePath(this.config.root, this.config.cwd)),
2003
2002
  ...this.config.output.copy || {}
@@ -2568,4 +2567,4 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
2568
2567
 
2569
2568
  //#endregion
2570
2569
  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-Cq9cjr28.mjs.map
2570
+ //# sourceMappingURL=execution-context-D_CXpe9I.mjs.map