@powerlines/engine 0.44.0 → 0.44.2

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.
Files changed (44) hide show
  1. package/dist/_internal/worker.cjs +186 -169
  2. package/dist/_internal/worker.d.cts.map +1 -1
  3. package/dist/_internal/worker.d.mts.map +1 -1
  4. package/dist/_internal/worker.mjs +187 -170
  5. package/dist/_internal/worker.mjs.map +1 -1
  6. package/dist/api.cjs +7 -7
  7. package/dist/api.mjs +5 -5
  8. package/dist/api.mjs.map +1 -1
  9. package/dist/{base-context-5_AZZYFu.cjs → base-context-CAA1druQ.cjs} +62 -33
  10. package/dist/{base-context-D_ZidDDm.mjs → base-context-fOM4ZWUo.mjs} +67 -38
  11. package/dist/base-context-fOM4ZWUo.mjs.map +1 -0
  12. package/dist/context/index.cjs +3 -3
  13. package/dist/context/index.d.cts +38 -52
  14. package/dist/context/index.d.cts.map +1 -1
  15. package/dist/context/index.d.mts +38 -52
  16. package/dist/context/index.d.mts.map +1 -1
  17. package/dist/context/index.mjs +3 -3
  18. package/dist/{engine-context-PQ3BgcgR.mjs → engine-context-BWGxMU_n.mjs} +2 -2
  19. package/dist/{engine-context-PQ3BgcgR.mjs.map → engine-context-BWGxMU_n.mjs.map} +1 -1
  20. package/dist/{engine-context-w4fts28j.cjs → engine-context-CUPubmrM.cjs} +1 -1
  21. package/dist/{execution-context-0GmpbWbs.cjs → execution-context-BoJhCK0d.cjs} +125 -117
  22. package/dist/{execution-context-zedP0h4Z.mjs → execution-context-CFJst4Fz.mjs} +127 -119
  23. package/dist/execution-context-CFJst4Fz.mjs.map +1 -0
  24. package/dist/index.cjs +114 -53
  25. package/dist/index.d.cts +8 -0
  26. package/dist/index.d.cts.map +1 -1
  27. package/dist/index.d.mts +8 -0
  28. package/dist/index.d.mts.map +1 -1
  29. package/dist/index.mjs +114 -53
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/storage/index.cjs +1 -1
  32. package/dist/storage/index.mjs +1 -1
  33. package/dist/{tsconfig-Cstsoprg.mjs → tsconfig-CI6bla4E.mjs} +2 -2
  34. package/dist/{tsconfig-Cstsoprg.mjs.map → tsconfig-CI6bla4E.mjs.map} +1 -1
  35. package/dist/{tsconfig-DeyWQC2N.cjs → tsconfig-QMSxSwBD.cjs} +1 -1
  36. package/dist/typescript/index.cjs +1 -1
  37. package/dist/typescript/index.mjs +1 -1
  38. package/dist/{virtual-CUgOdyIa.mjs → virtual-CYGZHTDd.mjs} +5 -5
  39. package/dist/virtual-CYGZHTDd.mjs.map +1 -0
  40. package/dist/{virtual-1hYa9zCy.cjs → virtual-Ct3ZqPeN.cjs} +2 -2
  41. package/package.json +3 -3
  42. package/dist/base-context-D_ZidDDm.mjs.map +0 -1
  43. package/dist/execution-context-zedP0h4Z.mjs.map +0 -1
  44. package/dist/virtual-CUgOdyIa.mjs.map +0 -1
package/dist/api.cjs CHANGED
@@ -1,18 +1,19 @@
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-0GmpbWbs.cjs');
4
- const require_tsconfig = require('./tsconfig-DeyWQC2N.cjs');
3
+ const require_execution_context = require('./execution-context-BoJhCK0d.cjs');
4
+ const require_tsconfig = require('./tsconfig-QMSxSwBD.cjs');
5
5
  const require_ts_morph = require('./ts-morph-BaLPVAdB.cjs');
6
+ let _stryke_convert_to_array = require("@stryke/convert/to-array");
6
7
  let _stryke_fs_resolve = require("@stryke/fs/resolve");
7
8
  let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
8
9
  let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
9
10
  let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
10
- let _stryke_convert_to_array = require("@stryke/convert/to-array");
11
11
  let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
12
12
  let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
13
- let _powerlines_core_lib_logger = require("@powerlines/core/lib/logger");
14
13
  let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
14
+ let _powerlines_core_plugin_utils_logging = require("@powerlines/core/plugin-utils/logging");
15
15
  let _stryke_json_storm_json = require("@stryke/json/storm-json");
16
+ let _stryke_path_append = require("@stryke/path/append");
16
17
  let _stryke_path_replace = require("@stryke/path/replace");
17
18
  let chalk = require("chalk");
18
19
  chalk = require_chunk.__toESM(chalk, 1);
@@ -32,7 +33,6 @@ let _stryke_fs_list_files = require("@stryke/fs/list-files");
32
33
  let _stryke_fs_package_fns = require("@stryke/fs/package-fns");
33
34
  let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
34
35
  let _stryke_helpers_omit = require("@stryke/helpers/omit");
35
- let _stryke_path_append = require("@stryke/path/append");
36
36
  let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
37
37
  let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
38
38
  let _stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
@@ -714,7 +714,7 @@ ${formatTypes(code)}
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
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_lib_logger.colorText)(plugin.name)}`).join("\n")}`);
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")}`);
718
718
  const pluginConfig = await api.callHook("config", {
719
719
  environment: await api.context.getEnvironment(),
720
720
  sequential: true,
@@ -1097,7 +1097,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
1097
1097
  const timer = api.context.timer("Initialization");
1098
1098
  for (const plugin of api.context.config.plugins.flat(10) ?? []) await api.addPlugin(plugin);
1099
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_lib_logger.colorText)(plugin.name)}`).join("\n")}`);
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")}`);
1101
1101
  const pluginConfig = await api.callHook("config", {
1102
1102
  environment: await api.context.getEnvironment(),
1103
1103
  sequential: true,
package/dist/api.mjs CHANGED
@@ -1,16 +1,17 @@
1
- import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-zedP0h4Z.mjs";
2
- import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-Cstsoprg.mjs";
1
+ import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-CFJst4Fz.mjs";
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
+ import { toArray } from "@stryke/convert/to-array";
4
5
  import { resolvePackage } from "@stryke/fs/resolve";
5
6
  import { isSet } from "@stryke/type-checks/is-set";
6
7
  import { isSetObject } from "@stryke/type-checks/is-set-object";
7
8
  import { isString } from "@stryke/type-checks/is-string";
8
- import { toArray } from "@stryke/convert/to-array";
9
9
  import { isSetString } from "@stryke/type-checks/is-set-string";
10
10
  import { uuid } from "@stryke/unique-id/uuid";
11
- import { colorText } from "@powerlines/core/lib/logger";
12
11
  import { findInvalidPluginConfig, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple } from "@powerlines/core/plugin-utils";
12
+ import { colorText } from "@powerlines/core/plugin-utils/logging";
13
13
  import { StormJSON } from "@stryke/json/storm-json";
14
+ import { appendPath } from "@stryke/path/append";
14
15
  import { replaceExtension, replacePath } from "@stryke/path/replace";
15
16
  import chalk from "chalk";
16
17
  import defu from "defu";
@@ -28,7 +29,6 @@ import { listFiles } from "@stryke/fs/list-files";
28
29
  import { doesPackageMatch, getPackageListing, isPackageExists, isPackageListed } from "@stryke/fs/package-fns";
29
30
  import { getUnique } from "@stryke/helpers/get-unique";
30
31
  import { omit } from "@stryke/helpers/omit";
31
- import { appendPath } from "@stryke/path/append";
32
32
  import { findFileName, findFilePath, relativePath } from "@stryke/path/file-path-fns";
33
33
  import { isParentPath } from "@stryke/path/is-parent-path";
34
34
  import { isError } from "@stryke/type-checks/is-error";