@powerlines/engine 0.44.2 → 0.44.4

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-BoJhCK0d.cjs');
3
+ const require_execution_context = require('./execution-context-DYfAOOP2.cjs');
4
4
  const require_tsconfig = require('./tsconfig-QMSxSwBD.cjs');
5
5
  const require_ts_morph = require('./ts-morph-BaLPVAdB.cjs');
6
6
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
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-CFJst4Fz.mjs";
1
+ import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-2BaxsoMK.mjs";
2
2
  import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-CI6bla4E.mjs";
3
3
  import { n as createProgram } from "./ts-morph-D0CaA37w.mjs";
4
4
  import { toArray } from "@stryke/convert/to-array";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_base_context = require('../base-context-CAA1druQ.cjs');
3
3
  const require_engine_context = require('../engine-context-CUPubmrM.cjs');
4
- const require_execution_context = require('../execution-context-BoJhCK0d.cjs');
4
+ const require_execution_context = require('../execution-context-DYfAOOP2.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-fOM4ZWUo.mjs";
2
2
  import { t as PowerlinesEngineContext } from "../engine-context-BWGxMU_n.mjs";
3
- import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-CFJst4Fz.mjs";
3
+ import { n as PowerlinesEnvironmentContext, o as PowerlinesContext, r as createPluginContext, t as PowerlinesExecutionContext } from "../execution-context-2BaxsoMK.mjs";
4
4
 
5
5
  export { PowerlinesBaseContext, PowerlinesContext, PowerlinesEngineContext, PowerlinesEnvironmentContext, PowerlinesExecutionContext, createPluginContext };
@@ -2012,6 +2012,21 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
2012
2012
  */
2013
2013
  async innerSetup() {
2014
2014
  const logger = this.extendLogger({ category: "config" });
2015
+ this.config.output = defu(this.config.output ?? {}, {
2016
+ copy: { assets: [
2017
+ { glob: "LICENSE" },
2018
+ {
2019
+ input: this.config.root,
2020
+ glob: "*.md"
2021
+ },
2022
+ {
2023
+ input: this.config.root,
2024
+ glob: "package.json"
2025
+ }
2026
+ ] },
2027
+ artifactsPath: `.${this.config.framework ?? "powerlines"}`,
2028
+ dts: true
2029
+ });
2015
2030
  logger.trace(`Pre-setup Powerlines configuration object: \n${JSON.stringify({
2016
2031
  ...omit(this.config, ["plugins"]),
2017
2032
  userConfig: this.config.userConfig ? omit(this.config.userConfig, ["plugins"]) : {},
@@ -2044,21 +2059,6 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
2044
2059
  else this.config.logLevel = DEFAULT_PRODUCTION_LOG_LEVEL;
2045
2060
  if (!this.config.userConfig?.tsconfig && !this.config.inlineConfig?.tsconfig) this.config.tsconfig = getTsconfigFilePath(this.config.cwd, this.config.root);
2046
2061
  else if (this.config.tsconfig) this.config.tsconfig = replacePath(replacePathTokens(this, this.config.tsconfig), this.config.cwd);
2047
- this.config.output = defu(this.config.output ?? {}, {
2048
- copy: { assets: [
2049
- { glob: "LICENSE" },
2050
- {
2051
- input: this.config.root,
2052
- glob: "*.md"
2053
- },
2054
- {
2055
- input: this.config.root,
2056
- glob: "package.json"
2057
- }
2058
- ] },
2059
- artifactsPath: `.${this.config.framework ?? "powerlines"}`,
2060
- dts: true
2061
- });
2062
2062
  this.config.output.format = getUnique(toArray(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
2063
2063
  if (this.config.output.path) this.config.output.path = appendPath(replacePathTokens(this, this.config.output.path), this.config.cwd);
2064
2064
  else this.config.output.path = appendPath(joinPaths(this.config.root, "dist"), this.config.cwd);
@@ -2683,4 +2683,4 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
2683
2683
 
2684
2684
  //#endregion
2685
2685
  export { mergeConfigs as a, callHook as i, PowerlinesEnvironmentContext as n, PowerlinesContext as o, createPluginContext as r, writeMetaFile as s, PowerlinesExecutionContext as t };
2686
- //# sourceMappingURL=execution-context-CFJst4Fz.mjs.map
2686
+ //# sourceMappingURL=execution-context-2BaxsoMK.mjs.map