@powerlines/engine 0.44.0 → 0.44.1
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/_internal/worker.cjs +155 -167
- package/dist/_internal/worker.d.cts.map +1 -1
- package/dist/_internal/worker.d.mts.map +1 -1
- package/dist/_internal/worker.mjs +155 -167
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +4 -4
- package/dist/api.mjs +2 -2
- package/dist/api.mjs.map +1 -1
- package/dist/{base-context-5_AZZYFu.cjs → base-context-DkGTyGX0.cjs} +29 -33
- package/dist/{base-context-D_ZidDDm.mjs → base-context-Dv5OTHxZ.mjs} +30 -34
- package/dist/base-context-Dv5OTHxZ.mjs.map +1 -0
- package/dist/context/index.cjs +3 -3
- package/dist/context/index.d.cts +38 -52
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +38 -52
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +3 -3
- package/dist/{engine-context-w4fts28j.cjs → engine-context-CDSR7PHF.cjs} +1 -1
- package/dist/{engine-context-PQ3BgcgR.mjs → engine-context-CytME-Ht.mjs} +2 -2
- package/dist/{engine-context-PQ3BgcgR.mjs.map → engine-context-CytME-Ht.mjs.map} +1 -1
- package/dist/{execution-context-0GmpbWbs.cjs → execution-context-B-CVP76S.cjs} +119 -111
- package/dist/{execution-context-zedP0h4Z.mjs → execution-context-F7RyGqff.mjs} +121 -113
- package/dist/execution-context-F7RyGqff.mjs.map +1 -0
- package/dist/index.cjs +9 -14
- package/dist/index.mjs +9 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/base-context-D_ZidDDm.mjs.map +0 -1
- package/dist/execution-context-zedP0h4Z.mjs.map +0 -1
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-
|
|
3
|
+
const require_execution_context = require('./execution-context-B-CVP76S.cjs');
|
|
4
4
|
const require_tsconfig = require('./tsconfig-DeyWQC2N.cjs');
|
|
5
5
|
const require_ts_morph = require('./ts-morph-BaLPVAdB.cjs');
|
|
6
6
|
let _stryke_fs_resolve = require("@stryke/fs/resolve");
|
|
@@ -10,8 +10,8 @@ let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
|
10
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
16
|
let _stryke_path_replace = require("@stryke/path/replace");
|
|
17
17
|
let chalk = require("chalk");
|
|
@@ -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,
|
|
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,
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-
|
|
1
|
+
import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-F7RyGqff.mjs";
|
|
2
2
|
import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-Cstsoprg.mjs";
|
|
3
3
|
import { n as createProgram } from "./ts-morph-D0CaA37w.mjs";
|
|
4
4
|
import { resolvePackage } from "@stryke/fs/resolve";
|
|
@@ -8,8 +8,8 @@ import { isString } from "@stryke/type-checks/is-string";
|
|
|
8
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
14
|
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
15
15
|
import chalk from "chalk";
|