powerlines 0.42.39 → 0.42.40

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.
@@ -2,7 +2,7 @@ const require_chunk = require('./chunk-AIJqnxB6.cjs');
2
2
  const require_ts_morph = require('./ts-morph-BvE8TMhv.cjs');
3
3
  const require_utils = require('./utils.cjs');
4
4
  const require_plugin_utils = require('./plugin-utils.cjs');
5
- const require_api_context = require('./api-context-g8U0DTyF.cjs');
5
+ const require_api_context = require('./api-context-BDFU_IC7.cjs');
6
6
  const require_tsconfig = require('./tsconfig-BjkktvB9.cjs');
7
7
  let _storm_software_config_tools_logger_console = require("@storm-software/config-tools/logger/console");
8
8
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
@@ -45,7 +45,7 @@ let _stryke_json_storm_json = require("@stryke/json/storm-json");
45
45
 
46
46
  //#region package.json
47
47
  var name = "powerlines";
48
- var version = "0.42.39";
48
+ var version = "0.42.40";
49
49
 
50
50
  //#endregion
51
51
  //#region src/_internal/helpers/generate-types.ts
@@ -2570,6 +2570,8 @@ var PowerlinesContext = class PowerlinesContext {
2570
2570
  if (this.config.tsconfig) this.config.tsconfig = (0, require_plugin_utils.plugin_utils_exports.replacePathTokens)(this, this.config.tsconfig);
2571
2571
  if (this.config.output.types) if ((0, _stryke_type_checks_is_set_string.isSetString)(this.config.output.types)) this.config.output.types = (0, require_plugin_utils.plugin_utils_exports.replacePathTokens)(this, this.config.output.types);
2572
2572
  else this.config.output.types = (0, _stryke_path_join.joinPaths)(this.config.root, `${this.config.framework ?? "powerlines"}.d.ts`);
2573
+ if (!this.config.userConfig?.output?.sourceMap && !this.config.inlineConfig?.output?.sourceMap) if (this.config.mode === "development") this.config.output.sourceMap = true;
2574
+ else this.config.output.sourceMap = false;
2573
2575
  if (this.config.output.copy && this.config.output.copy.assets) this.config.output.copy.assets = this.config.output.copy.assets.map((asset) => ({
2574
2576
  ...asset,
2575
2577
  glob: (0, require_plugin_utils.plugin_utils_exports.replacePathTokens)(this, asset.glob),
@@ -2566,6 +2566,8 @@ var PowerlinesContext = class PowerlinesContext {
2566
2566
  if (this.config.tsconfig) this.config.tsconfig = (0, plugin_utils_exports.replacePathTokens)(this, this.config.tsconfig);
2567
2567
  if (this.config.output.types) if (isSetString(this.config.output.types)) this.config.output.types = (0, plugin_utils_exports.replacePathTokens)(this, this.config.output.types);
2568
2568
  else this.config.output.types = joinPaths$1(this.config.root, `${this.config.framework ?? "powerlines"}.d.ts`);
2569
+ if (!this.config.userConfig?.output?.sourceMap && !this.config.inlineConfig?.output?.sourceMap) if (this.config.mode === "development") this.config.output.sourceMap = true;
2570
+ else this.config.output.sourceMap = false;
2569
2571
  if (this.config.output.copy && this.config.output.copy.assets) this.config.output.copy.assets = this.config.output.copy.assets.map((asset) => ({
2570
2572
  ...asset,
2571
2573
  glob: (0, plugin_utils_exports.replacePathTokens)(this, asset.glob),
@@ -2981,4 +2983,4 @@ var PowerlinesAPIContext = class PowerlinesAPIContext extends PowerlinesContext
2981
2983
 
2982
2984
  //#endregion
2983
2985
  export { FileId as a, FileStorage as c, writeMetaFile as d, callHook as f, PowerlinesContext as i, FileSystem as l, PowerlinesEnvironmentContext as n, FileMetadata as o, mergeConfigs as p, createPluginContext as r, FileMetadata_KeyValuePair as s, PowerlinesAPIContext as t, _capnpFileId as u };
2984
- //# sourceMappingURL=api-context-DuZIIJsm.mjs.map
2986
+ //# sourceMappingURL=api-context-Cb99qIjE.mjs.map