@powerlines/engine 0.44.7 → 0.44.9

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.
@@ -3166,7 +3166,6 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3166
3166
  glob: "package.json"
3167
3167
  }
3168
3168
  ] },
3169
- artifactsPath: `.${this.config.framework ?? "powerlines"}`,
3170
3169
  dts: true
3171
3170
  });
3172
3171
  logger.trace(`Pre-setup Powerlines configuration object: \n${JSON.stringify({
@@ -3222,6 +3221,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3222
3221
  else this.config.output.sourceMap = false;
3223
3222
  if (!this.config.userConfig?.output?.minify && !this.config.inlineConfig?.output?.minify) if (this.config.mode === "production") this.config.output.minify = true;
3224
3223
  else this.config.output.minify = false;
3224
+ if (!this.config.userConfig?.output?.artifactsPath && !this.config.inlineConfig?.output?.artifactsPath && !this.config.pluginConfig?.output?.artifactsPath) this.config.output.artifactsPath = `.${this.config.framework || "powerlines"}`;
3225
3225
  if (this.config.output.copy && this.config.output.copy.assets) this.config.output.copy.assets = this.config.output.copy.assets.map((asset) => ({
3226
3226
  ...asset,
3227
3227
  glob: (0, _powerlines_core_plugin_utils.replacePathTokens)(this, asset.glob),
@@ -4586,8 +4586,14 @@ ${formatTypes(code)}
4586
4586
  };
4587
4587
  const timer = api.context.timer("Initialization");
4588
4588
  for (const plugin of api.context.config.plugins.flatMap((p) => (0, _stryke_convert_to_array.toArray)(p)) ?? []) await api.addPlugin(plugin);
4589
- if (api.context.plugins.length === 0) api.context.warn("No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended.");
4590
- else api.context.info(`Loaded ${api.context.plugins.length} ${(0, _stryke_string_format_title_case.titleCase)(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(plugin.name)}`).join("\n")}`);
4589
+ if (api.context.plugins.length === 0) api.context.warn({
4590
+ meta: { category: "plugins" },
4591
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
4592
+ });
4593
+ else api.context.info({
4594
+ meta: { category: "plugins" },
4595
+ message: `Loaded ${api.context.plugins.length} ${(0, _stryke_string_format_title_case.titleCase)(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(plugin.name)}`).join("\n")}`
4596
+ });
4591
4597
  const pluginConfig = await api.callHook("config", {
4592
4598
  environment: await api.context.getEnvironment(),
4593
4599
  sequential: true,
@@ -4917,7 +4923,10 @@ ${formatTypes(code)}
4917
4923
  const result = await this.#initPlugin(config);
4918
4924
  if (!result) return;
4919
4925
  for (const plugin of result) {
4920
- this.context.debug(`Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`);
4926
+ this.context.debug({
4927
+ meta: { category: "plugins" },
4928
+ message: `Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`
4929
+ });
4921
4930
  await this.context.addPlugin(plugin);
4922
4931
  }
4923
4932
  }
@@ -3133,7 +3133,6 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3133
3133
  glob: "package.json"
3134
3134
  }
3135
3135
  ] },
3136
- artifactsPath: `.${this.config.framework ?? "powerlines"}`,
3137
3136
  dts: true
3138
3137
  });
3139
3138
  logger.trace(`Pre-setup Powerlines configuration object: \n${JSON.stringify({
@@ -3189,6 +3188,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
3189
3188
  else this.config.output.sourceMap = false;
3190
3189
  if (!this.config.userConfig?.output?.minify && !this.config.inlineConfig?.output?.minify) if (this.config.mode === "production") this.config.output.minify = true;
3191
3190
  else this.config.output.minify = false;
3191
+ if (!this.config.userConfig?.output?.artifactsPath && !this.config.inlineConfig?.output?.artifactsPath && !this.config.pluginConfig?.output?.artifactsPath) this.config.output.artifactsPath = `.${this.config.framework || "powerlines"}`;
3192
3192
  if (this.config.output.copy && this.config.output.copy.assets) this.config.output.copy.assets = this.config.output.copy.assets.map((asset) => ({
3193
3193
  ...asset,
3194
3194
  glob: replacePathTokens(this, asset.glob),
@@ -4553,8 +4553,14 @@ ${formatTypes(code)}
4553
4553
  };
4554
4554
  const timer = api.context.timer("Initialization");
4555
4555
  for (const plugin of api.context.config.plugins.flatMap((p) => toArray(p)) ?? []) await api.addPlugin(plugin);
4556
- if (api.context.plugins.length === 0) api.context.warn("No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended.");
4557
- else api.context.info(`Loaded ${api.context.plugins.length} ${titleCase(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${colorText(plugin.name)}`).join("\n")}`);
4556
+ if (api.context.plugins.length === 0) api.context.warn({
4557
+ meta: { category: "plugins" },
4558
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
4559
+ });
4560
+ else api.context.info({
4561
+ meta: { category: "plugins" },
4562
+ message: `Loaded ${api.context.plugins.length} ${titleCase(api.context.config.framework)} plugin${api.context.plugins.length > 1 ? "s" : ""}: \n${api.context.plugins.map((plugin, index) => ` ${index + 1}. ${colorText(plugin.name)}`).join("\n")}`
4563
+ });
4558
4564
  const pluginConfig = await api.callHook("config", {
4559
4565
  environment: await api.context.getEnvironment(),
4560
4566
  sequential: true,
@@ -4884,7 +4890,10 @@ ${formatTypes(code)}
4884
4890
  const result = await this.#initPlugin(config);
4885
4891
  if (!result) return;
4886
4892
  for (const plugin of result) {
4887
- this.context.debug(`Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`);
4893
+ this.context.debug({
4894
+ meta: { category: "plugins" },
4895
+ message: `Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`
4896
+ });
4888
4897
  await this.context.addPlugin(plugin);
4889
4898
  }
4890
4899
  }