@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.
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-D-XTNs1z.cjs');
3
+ const require_execution_context = require('./execution-context-BVn7D0Ax.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");
@@ -713,8 +713,14 @@ ${formatTypes(code)}
713
713
  };
714
714
  const timer = api.context.timer("Initialization");
715
715
  for (const plugin of api.context.config.plugins.flatMap((p) => (0, _stryke_convert_to_array.toArray)(p)) ?? []) await api.addPlugin(plugin);
716
- 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.");
717
- 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")}`);
716
+ if (api.context.plugins.length === 0) api.context.warn({
717
+ meta: { category: "plugins" },
718
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
719
+ });
720
+ else api.context.info({
721
+ meta: { category: "plugins" },
722
+ 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")}`
723
+ });
718
724
  const pluginConfig = await api.callHook("config", {
719
725
  environment: await api.context.getEnvironment(),
720
726
  sequential: true,
@@ -1044,7 +1050,10 @@ ${formatTypes(code)}
1044
1050
  const result = await this.#initPlugin(config);
1045
1051
  if (!result) return;
1046
1052
  for (const plugin of result) {
1047
- this.context.debug(`Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`);
1053
+ this.context.debug({
1054
+ meta: { category: "plugins" },
1055
+ message: `Successfully initialized the ${chalk.default.bold.cyanBright(plugin.name)} plugin`
1056
+ });
1048
1057
  await this.context.addPlugin(plugin);
1049
1058
  }
1050
1059
  }
@@ -1096,8 +1105,14 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1096
1105
  };
1097
1106
  const timer = api.context.timer("Initialization");
1098
1107
  for (const plugin of api.context.config.plugins.flat(10) ?? []) await api.addPlugin(plugin);
1099
- 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.");
1100
- 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")}`);
1108
+ if (api.context.plugins.length === 0) api.context.warn({
1109
+ meta: { category: "plugins" },
1110
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
1111
+ });
1112
+ else api.context.info({
1113
+ meta: { category: "plugins" },
1114
+ 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")}`
1115
+ });
1101
1116
  const pluginConfig = await api.callHook("config", {
1102
1117
  environment: await api.context.getEnvironment(),
1103
1118
  sequential: true,
@@ -1121,7 +1136,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1121
1136
  */
1122
1137
  async types(inlineConfig = { command: "types" }) {
1123
1138
  const timer = this.context.timer("Types");
1124
- this.context.info(" 🏗️ Generating typescript declarations for the Powerlines project");
1139
+ this.context.info("🏗️ Generating typescript declarations for the Powerlines project");
1125
1140
  await super.types(inlineConfig);
1126
1141
  this.context.debug("✔ Powerlines types generation has completed successfully");
1127
1142
  timer();
@@ -1136,7 +1151,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1136
1151
  */
1137
1152
  async prepare(inlineConfig = { command: "prepare" }) {
1138
1153
  const timer = this.context.timer("Prepare");
1139
- this.context.info(" 🏗️ Preparing the Powerlines project");
1154
+ this.context.info("🏗️ Preparing the Powerlines project");
1140
1155
  this.context.debug(" Aggregating configuration options for the Powerlines project");
1141
1156
  await super.prepare(inlineConfig);
1142
1157
  this.context.debug("✔ Powerlines preparation has completed successfully");
@@ -1153,7 +1168,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1153
1168
  */
1154
1169
  async new(inlineConfig) {
1155
1170
  const timer = this.context.timer("New");
1156
- this.context.info(" 🆕 Creating a new Powerlines project");
1171
+ this.context.info("🆕 Creating a new Powerlines project");
1157
1172
  await super.new(inlineConfig);
1158
1173
  this.context.debug("✔ Powerlines new command completed successfully");
1159
1174
  timer();
@@ -1182,7 +1197,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1182
1197
  */
1183
1198
  async lint(inlineConfig = { command: "lint" }) {
1184
1199
  const timer = this.context.timer("Lint");
1185
- this.context.info(" 📝 Linting the Powerlines project");
1200
+ this.context.info("📝 Linting the Powerlines project");
1186
1201
  await super.lint(inlineConfig);
1187
1202
  this.context.debug("✔ Powerlines linting completed successfully");
1188
1203
  timer();
@@ -1198,7 +1213,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1198
1213
  */
1199
1214
  async test(inlineConfig = { command: "test" }) {
1200
1215
  const timer = this.context.timer("Test");
1201
- this.context.info(" 🧪 Running tests for the Powerlines project");
1216
+ this.context.info("🧪 Running tests for the Powerlines project");
1202
1217
  await super.test(inlineConfig);
1203
1218
  this.context.debug("✔ Powerlines testing completed successfully");
1204
1219
  timer();
@@ -1214,7 +1229,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1214
1229
  */
1215
1230
  async build(inlineConfig = { command: "build" }) {
1216
1231
  const timer = this.context.timer("Build");
1217
- this.context.info(" 📦 Building the Powerlines project");
1232
+ this.context.info("📦 Building the Powerlines project");
1218
1233
  await super.build(inlineConfig);
1219
1234
  this.context.debug("✔ Powerlines build completed successfully");
1220
1235
  timer();
@@ -1227,7 +1242,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1227
1242
  */
1228
1243
  async docs(inlineConfig = { command: "docs" }) {
1229
1244
  const timer = this.context.timer("Docs");
1230
- this.context.info(" 📓 Generating documentation for the Powerlines project");
1245
+ this.context.info("📓 Generating documentation for the Powerlines project");
1231
1246
  await super.docs(inlineConfig);
1232
1247
  this.context.debug("✔ Powerlines documentation generation completed successfully");
1233
1248
  timer();
@@ -1242,7 +1257,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1242
1257
  */
1243
1258
  async deploy(inlineConfig = { command: "deploy" }) {
1244
1259
  const timer = this.context.timer("Deploy");
1245
- this.context.info(" 🚀 Deploying the Powerlines project");
1260
+ this.context.info("🚀 Deploying the Powerlines project");
1246
1261
  await super.deploy(inlineConfig);
1247
1262
  this.context.debug("✔ Powerlines deploy completed successfully");
1248
1263
  timer();
@@ -1257,7 +1272,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1257
1272
  */
1258
1273
  async finalize() {
1259
1274
  const timer = this.context.timer("Finalization");
1260
- this.context.info(" 🏁 Powerlines finalization processes started");
1275
+ this.context.info("🏁 Powerlines finalization processes started");
1261
1276
  await super.finalize();
1262
1277
  this.context.debug("✔ Powerlines finalization completed successfully");
1263
1278
  timer();
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.cts","names":[],"sources":["../src/_internal/execution.ts","../src/api.ts"],"mappings":";;;;;;;;AAyGA;;;;;cAAa,mBAAA,yBACa,cAAA,GAAiB,cAAA,aAC9B,SAAA;EAAA;EA0qBe;;;EAAA,IAXf,OAAA,CAAA,GAAW,gBAAA,CAAiB,eAAA;EAeR;;;;;;EAAA,OALX,UAAA,yBACM,cAAA,GAAiB,cAAA,CAAA,CAEzC,OAAA,EAAS,wBAAA,EACT,MAAA,EAAQ,YAAA,GACP,OAAA,CAAQ,mBAAA,CAAoB,eAAA;EAqMzB;;;;;;;;EA1IO,KAAA,CACX,YAAA,GAAc,WAAA,CAAY,iBAAA,eAEzB,OAAA;EA4Ie;;;;;;;;EAPL,OAAA,CACX,YAAA,GACI,WAAA,CAAY,mBAAA,eACZ,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,eAAA,eACZ,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,kBAAA,eAAuD,OAAA;EAyH9B;;;;;;;;;EAA9B,GAAA,CAAI,YAAA,EAAc,WAAA,CAAY,eAAA,eAA2B,OAAA;EAoHpD;;;;;;;;;EAxCL,KAAA,CACX,YAAA,GACI,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,mBAAA,eAEf,OAAA;EAkFA;;;;;;EAlDU,IAAA,CACX,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EA2J7D;;;;;;EAxIK,IAAA,CACX,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EAyI1D;;;;;;;;;EAnHE,KAAA,CACX,YAAA,GAA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,eACZ,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,eAAA,eACZ,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,kBAAA,eAAuD,OAAA;EDy6BH;;;;;;;;;ECj5BhD,GAAA,CACpB,YAAA,EAAc,WAAA,CAAY,eAAA,eAA2B,OAAA;EDogCc;;;;;;;;;ECh/B/C,KAAA,CACpB,YAAA,GACI,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,mBAAA,eAEf,OAAA;EDgkCmE;;;;;;EC/iChD,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EDonCvB;;;;;;;;;EChmCxB,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;ED+lCD;;;;;;;;;EC3kC9C,KAAA,CACpB,YAAA,GAAc,WAAA,CAAY,iBAAA,eAEzB,OAAA;EDtMiB;;;;;;ECuNE,IAAA,CACpB,YAAA,GAAc,gBAAA,GAAsC,OAAA;EDuchC;;;;;;;;EClbA,MAAA,CACpB,YAAA,GAAc,WAAA,CAAY,kBAAA,eAEzB,OAAA;ED6bD;;;;;;;;EC1aoB,QAAA,CAAA,GAAQ,OAAA;EDqnBjB;;;;;;EAAA,CCrmBC,MAAA,CAAO,YAAA,KAAa,OAAA;AAAA"}
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-BLq0jnIo.mjs";
1
+ import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-UJPngOZR.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";
@@ -708,8 +708,14 @@ ${formatTypes(code)}
708
708
  };
709
709
  const timer = api.context.timer("Initialization");
710
710
  for (const plugin of api.context.config.plugins.flatMap((p) => toArray(p)) ?? []) await api.addPlugin(plugin);
711
- 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.");
712
- 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")}`);
711
+ if (api.context.plugins.length === 0) api.context.warn({
712
+ meta: { category: "plugins" },
713
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
714
+ });
715
+ else api.context.info({
716
+ meta: { category: "plugins" },
717
+ 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")}`
718
+ });
713
719
  const pluginConfig = await api.callHook("config", {
714
720
  environment: await api.context.getEnvironment(),
715
721
  sequential: true,
@@ -1039,7 +1045,10 @@ ${formatTypes(code)}
1039
1045
  const result = await this.#initPlugin(config);
1040
1046
  if (!result) return;
1041
1047
  for (const plugin of result) {
1042
- this.context.debug(`Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`);
1048
+ this.context.debug({
1049
+ meta: { category: "plugins" },
1050
+ message: `Successfully initialized the ${chalk.bold.cyanBright(plugin.name)} plugin`
1051
+ });
1043
1052
  await this.context.addPlugin(plugin);
1044
1053
  }
1045
1054
  }
@@ -1091,8 +1100,14 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1091
1100
  };
1092
1101
  const timer = api.context.timer("Initialization");
1093
1102
  for (const plugin of api.context.config.plugins.flat(10) ?? []) await api.addPlugin(plugin);
1094
- 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.");
1095
- 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")}`);
1103
+ if (api.context.plugins.length === 0) api.context.warn({
1104
+ meta: { category: "plugins" },
1105
+ message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
1106
+ });
1107
+ else api.context.info({
1108
+ meta: { category: "plugins" },
1109
+ 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")}`
1110
+ });
1096
1111
  const pluginConfig = await api.callHook("config", {
1097
1112
  environment: await api.context.getEnvironment(),
1098
1113
  sequential: true,
@@ -1116,7 +1131,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1116
1131
  */
1117
1132
  async types(inlineConfig = { command: "types" }) {
1118
1133
  const timer = this.context.timer("Types");
1119
- this.context.info(" 🏗️ Generating typescript declarations for the Powerlines project");
1134
+ this.context.info("🏗️ Generating typescript declarations for the Powerlines project");
1120
1135
  await super.types(inlineConfig);
1121
1136
  this.context.debug("✔ Powerlines types generation has completed successfully");
1122
1137
  timer();
@@ -1131,7 +1146,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1131
1146
  */
1132
1147
  async prepare(inlineConfig = { command: "prepare" }) {
1133
1148
  const timer = this.context.timer("Prepare");
1134
- this.context.info(" 🏗️ Preparing the Powerlines project");
1149
+ this.context.info("🏗️ Preparing the Powerlines project");
1135
1150
  this.context.debug(" Aggregating configuration options for the Powerlines project");
1136
1151
  await super.prepare(inlineConfig);
1137
1152
  this.context.debug("✔ Powerlines preparation has completed successfully");
@@ -1148,7 +1163,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1148
1163
  */
1149
1164
  async new(inlineConfig) {
1150
1165
  const timer = this.context.timer("New");
1151
- this.context.info(" 🆕 Creating a new Powerlines project");
1166
+ this.context.info("🆕 Creating a new Powerlines project");
1152
1167
  await super.new(inlineConfig);
1153
1168
  this.context.debug("✔ Powerlines new command completed successfully");
1154
1169
  timer();
@@ -1177,7 +1192,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1177
1192
  */
1178
1193
  async lint(inlineConfig = { command: "lint" }) {
1179
1194
  const timer = this.context.timer("Lint");
1180
- this.context.info(" 📝 Linting the Powerlines project");
1195
+ this.context.info("📝 Linting the Powerlines project");
1181
1196
  await super.lint(inlineConfig);
1182
1197
  this.context.debug("✔ Powerlines linting completed successfully");
1183
1198
  timer();
@@ -1193,7 +1208,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1193
1208
  */
1194
1209
  async test(inlineConfig = { command: "test" }) {
1195
1210
  const timer = this.context.timer("Test");
1196
- this.context.info(" 🧪 Running tests for the Powerlines project");
1211
+ this.context.info("🧪 Running tests for the Powerlines project");
1197
1212
  await super.test(inlineConfig);
1198
1213
  this.context.debug("✔ Powerlines testing completed successfully");
1199
1214
  timer();
@@ -1209,7 +1224,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1209
1224
  */
1210
1225
  async build(inlineConfig = { command: "build" }) {
1211
1226
  const timer = this.context.timer("Build");
1212
- this.context.info(" 📦 Building the Powerlines project");
1227
+ this.context.info("📦 Building the Powerlines project");
1213
1228
  await super.build(inlineConfig);
1214
1229
  this.context.debug("✔ Powerlines build completed successfully");
1215
1230
  timer();
@@ -1222,7 +1237,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1222
1237
  */
1223
1238
  async docs(inlineConfig = { command: "docs" }) {
1224
1239
  const timer = this.context.timer("Docs");
1225
- this.context.info(" 📓 Generating documentation for the Powerlines project");
1240
+ this.context.info("📓 Generating documentation for the Powerlines project");
1226
1241
  await super.docs(inlineConfig);
1227
1242
  this.context.debug("✔ Powerlines documentation generation completed successfully");
1228
1243
  timer();
@@ -1237,7 +1252,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1237
1252
  */
1238
1253
  async deploy(inlineConfig = { command: "deploy" }) {
1239
1254
  const timer = this.context.timer("Deploy");
1240
- this.context.info(" 🚀 Deploying the Powerlines project");
1255
+ this.context.info("🚀 Deploying the Powerlines project");
1241
1256
  await super.deploy(inlineConfig);
1242
1257
  this.context.debug("✔ Powerlines deploy completed successfully");
1243
1258
  timer();
@@ -1252,7 +1267,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1252
1267
  */
1253
1268
  async finalize() {
1254
1269
  const timer = this.context.timer("Finalization");
1255
- this.context.info(" 🏁 Powerlines finalization processes started");
1270
+ this.context.info("🏁 Powerlines finalization processes started");
1256
1271
  await super.finalize();
1257
1272
  this.context.debug("✔ Powerlines finalization completed successfully");
1258
1273
  timer();