@powerlines/engine 0.46.5 → 0.47.0
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 +8 -39
- package/dist/_internal/worker.mjs +9 -40
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +19 -32
- package/dist/api.d.cts +1 -1
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +17 -30
- package/dist/api.mjs.map +1 -1
- package/dist/{base-context-CbFlRUd-.cjs → base-context-DLemGRbd.cjs} +12 -12
- package/dist/{base-context-Ce9PuQ9z.mjs → base-context-DUha4Lz-.mjs} +17 -17
- package/dist/{base-context-Ce9PuQ9z.mjs.map → base-context-DUha4Lz-.mjs.map} +1 -1
- package/dist/context/index.cjs +3 -3
- package/dist/context/index.d.cts +1 -1
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +3 -3
- package/dist/{engine-context-CEbC9dHR.mjs → engine-context-BfFiKN53.mjs} +3 -3
- package/dist/{engine-context-CEbC9dHR.mjs.map → engine-context-BfFiKN53.mjs.map} +1 -1
- package/dist/{engine-context-D-rpz-J2.cjs → engine-context-D0y88i_J.cjs} +2 -2
- package/dist/{execution-context-D-djno_x.mjs → execution-context-CE5H90Um.mjs} +59 -76
- package/dist/execution-context-CE5H90Um.mjs.map +1 -0
- package/dist/{execution-context-Lj_23Ps4.cjs → execution-context-CnyaM3Ul.cjs} +40 -57
- package/dist/{execution-context-CghMd-eP.d.cts → execution-context-NyDjVZ6T.d.cts} +1 -2
- package/dist/{execution-context-CghMd-eP.d.cts.map → execution-context-NyDjVZ6T.d.cts.map} +1 -1
- package/dist/{execution-context-rKd-zSZy.d.mts → execution-context-YrjFeD9k.d.mts} +1 -2
- package/dist/{execution-context-rKd-zSZy.d.mts.map → execution-context-YrjFeD9k.d.mts.map} +1 -1
- package/dist/{fs-D1nIP45P.mjs → fs-Dcle8lUp.mjs} +1 -1
- package/dist/{fs-D1nIP45P.mjs.map → fs-Dcle8lUp.mjs.map} +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +5 -5
- package/dist/rpc/client.cjs +74 -0
- package/dist/rpc/client.d.cts +31 -0
- package/dist/rpc/client.d.cts.map +1 -0
- package/dist/rpc/client.d.mts +31 -0
- package/dist/rpc/client.d.mts.map +1 -0
- package/dist/rpc/client.mjs +71 -0
- package/dist/rpc/client.mjs.map +1 -0
- package/dist/rpc/serialization.cjs +82 -0
- package/dist/rpc/serialization.d.cts +46 -0
- package/dist/rpc/serialization.d.cts.map +1 -0
- package/dist/rpc/serialization.d.mts +46 -0
- package/dist/rpc/serialization.d.mts.map +1 -0
- package/dist/rpc/serialization.mjs +76 -0
- package/dist/rpc/serialization.mjs.map +1 -0
- package/dist/rpc/server.cjs +69 -0
- package/dist/rpc/server.d.cts +29 -0
- package/dist/rpc/server.d.cts.map +1 -0
- package/dist/rpc/server.d.mts +29 -0
- package/dist/rpc/server.d.mts.map +1 -0
- package/dist/rpc/server.mjs +66 -0
- package/dist/rpc/server.mjs.map +1 -0
- package/dist/rpc/types.cjs +0 -0
- package/dist/rpc/types.d.cts +70 -0
- package/dist/rpc/types.d.cts.map +1 -0
- package/dist/rpc/types.d.mts +70 -0
- package/dist/rpc/types.d.mts.map +1 -0
- package/dist/rpc/types.mjs +1 -0
- package/dist/schemas.cjs +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/storage/base.cjs +216 -0
- package/dist/storage/base.d.cts +199 -0
- package/dist/storage/base.d.cts.map +1 -0
- package/dist/storage/base.d.mts +199 -0
- package/dist/storage/base.d.mts.map +1 -0
- package/dist/storage/base.mjs +215 -0
- package/dist/storage/base.mjs.map +1 -0
- package/dist/storage/file-system.cjs +180 -0
- package/dist/storage/file-system.d.cts +127 -0
- package/dist/storage/file-system.d.cts.map +1 -0
- package/dist/storage/file-system.d.mts +127 -0
- package/dist/storage/file-system.d.mts.map +1 -0
- package/dist/storage/file-system.mjs +179 -0
- package/dist/storage/file-system.mjs.map +1 -0
- package/dist/storage/helpers.cjs +37 -0
- package/dist/storage/helpers.d.cts +25 -0
- package/dist/storage/helpers.d.cts.map +1 -0
- package/dist/storage/helpers.d.mts +25 -0
- package/dist/storage/helpers.d.mts.map +1 -0
- package/dist/storage/helpers.mjs +34 -0
- package/dist/storage/helpers.mjs.map +1 -0
- package/dist/storage/index.cjs +10 -7
- package/dist/storage/index.d.cts +5 -419
- package/dist/storage/index.d.mts +5 -419
- package/dist/storage/index.mjs +4 -1
- package/dist/storage/virtual.cjs +98 -0
- package/dist/storage/virtual.d.cts +80 -0
- package/dist/storage/virtual.d.cts.map +1 -0
- package/dist/storage/virtual.d.mts +80 -0
- package/dist/storage/virtual.d.mts.map +1 -0
- package/dist/storage/virtual.mjs +97 -0
- package/dist/storage/virtual.mjs.map +1 -0
- package/dist/{ts-morph-D0CaA37w.mjs → ts-morph-C6YBNc46.mjs} +1 -1
- package/dist/{ts-morph-D0CaA37w.mjs.map → ts-morph-C6YBNc46.mjs.map} +1 -1
- package/dist/{tsconfig-BUDqmOaT.cjs → tsconfig-DeKMGasE.cjs} +2 -2
- package/dist/{tsconfig-MeFEs21S.mjs → tsconfig-HzJsMUrr.mjs} +3 -3
- package/dist/{tsconfig-MeFEs21S.mjs.map → tsconfig-HzJsMUrr.mjs.map} +1 -1
- package/dist/typescript/index.cjs +2 -2
- package/dist/typescript/index.mjs +2 -2
- package/package.json +7 -4
- package/dist/execution-context-D-djno_x.mjs.map +0 -1
- package/dist/storage/index.d.cts.map +0 -1
- package/dist/storage/index.d.mts.map +0 -1
- package/dist/virtual-CYGZHTDd.mjs +0 -513
- package/dist/virtual-CYGZHTDd.mjs.map +0 -1
- package/dist/virtual-Ct3ZqPeN.cjs +0 -548
- /package/dist/{fs-XogSgMqT.cjs → fs-CeEdzPKE.cjs} +0 -0
- /package/dist/{ts-morph-BaLPVAdB.cjs → ts-morph-BbM83PT9.cjs} +0 -0
package/dist/api.cjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
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-
|
|
4
|
-
const require_tsconfig = require('./tsconfig-
|
|
5
|
-
const require_ts_morph = require('./ts-morph-
|
|
6
|
-
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
7
|
-
let _stryke_fs_resolve = require("@stryke/fs/resolve");
|
|
8
|
-
let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
9
|
-
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
10
|
-
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
11
|
-
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
3
|
+
const require_execution_context = require('./execution-context-CnyaM3Ul.cjs');
|
|
4
|
+
const require_tsconfig = require('./tsconfig-DeKMGasE.cjs');
|
|
5
|
+
const require_ts_morph = require('./ts-morph-BbM83PT9.cjs');
|
|
12
6
|
let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
|
|
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
|
-
let _stryke_path_append = require("@stryke/path/append");
|
|
16
|
-
let _stryke_path_replace = require("@stryke/path/replace");
|
|
17
|
-
let chalk = require("chalk");
|
|
18
|
-
chalk = require_chunk.__toESM(chalk, 1);
|
|
19
|
-
let defu = require("defu");
|
|
20
|
-
defu = require_chunk.__toESM(defu, 1);
|
|
21
|
-
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
22
7
|
let _powerlines_core_lib_utilities_file_header = require("@powerlines/core/lib/utilities/file-header");
|
|
23
8
|
let _powerlines_core_lib_utilities_format = require("@powerlines/core/lib/utilities/format");
|
|
9
|
+
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
10
|
+
let _powerlines_core_plugin_utils_logging = require("@powerlines/core/plugin-utils/logging");
|
|
24
11
|
let _storm_software_config_tools_logger_console = require("@storm-software/config-tools/logger/console");
|
|
12
|
+
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
25
13
|
let _stryke_fs_copy_file = require("@stryke/fs/copy-file");
|
|
26
14
|
let _stryke_fs_exists = require("@stryke/fs/exists");
|
|
27
15
|
let _stryke_fs_helpers = require("@stryke/fs/helpers");
|
|
28
16
|
let _stryke_fs_install = require("@stryke/fs/install");
|
|
29
17
|
let _stryke_fs_list_files = require("@stryke/fs/list-files");
|
|
30
18
|
let _stryke_fs_package_fns = require("@stryke/fs/package-fns");
|
|
19
|
+
let _stryke_fs_resolve = require("@stryke/fs/resolve");
|
|
31
20
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
32
21
|
let _stryke_helpers_omit = require("@stryke/helpers/omit");
|
|
22
|
+
let _stryke_path_append = require("@stryke/path/append");
|
|
33
23
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
34
24
|
let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
25
|
+
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
26
|
+
let _stryke_path_replace = require("@stryke/path/replace");
|
|
35
27
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
36
28
|
let _stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
|
|
37
29
|
let _stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
|
38
30
|
let _stryke_type_checks_is_number = require("@stryke/type-checks/is-number");
|
|
39
31
|
let _stryke_type_checks_is_object = require("@stryke/type-checks/is-object");
|
|
40
32
|
let _stryke_type_checks_is_promise = require("@stryke/type-checks/is-promise");
|
|
33
|
+
let _stryke_type_checks_is_set = require("@stryke/type-checks/is-set");
|
|
34
|
+
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
35
|
+
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
36
|
+
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
37
|
+
let chalk = require("chalk");
|
|
38
|
+
chalk = require_chunk.__toESM(chalk, 1);
|
|
39
|
+
let defu = require("defu");
|
|
40
|
+
defu = require_chunk.__toESM(defu, 1);
|
|
41
41
|
let handlebars = require("handlebars");
|
|
42
42
|
handlebars = require_chunk.__toESM(handlebars, 1);
|
|
43
43
|
let _stryke_fs_json = require("@stryke/fs/json");
|
|
@@ -557,20 +557,7 @@ var PowerlinesExecution = class PowerlinesExecution {
|
|
|
557
557
|
});
|
|
558
558
|
context.trace({
|
|
559
559
|
meta: { category: "config" },
|
|
560
|
-
message: `Powerlines configuration after configResolved hook: \n${(0,
|
|
561
|
-
...(0, _stryke_helpers_omit.omit)(context.config, [
|
|
562
|
-
"inlineConfig",
|
|
563
|
-
"userConfig",
|
|
564
|
-
"initialConfig",
|
|
565
|
-
"pluginConfig",
|
|
566
|
-
"plugins"
|
|
567
|
-
]),
|
|
568
|
-
plugins: context.plugins.map((plugin) => plugin.plugin.name),
|
|
569
|
-
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(context.config.inlineConfig, ["plugins"]) : void 0,
|
|
570
|
-
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.userConfig) ? (0, _stryke_helpers_omit.omit)(context.config.userConfig, ["plugins"]) : void 0,
|
|
571
|
-
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(context.config.initialConfig, ["plugins"]) : void 0,
|
|
572
|
-
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(context.config.pluginConfig, ["plugins"]) : void 0
|
|
573
|
-
})}`
|
|
560
|
+
message: `Powerlines configuration after configResolved hook: \n${(0, _powerlines_core_plugin_utils.formatConfig)(context.config)}`
|
|
574
561
|
});
|
|
575
562
|
if (!context.fs.existsSync(context.cachePath)) await (0, _stryke_fs_helpers.createDirectory)(context.cachePath);
|
|
576
563
|
if (!context.fs.existsSync(context.dataPath)) await (0, _stryke_fs_helpers.createDirectory)(context.dataPath);
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PowerlinesExecutionContext } from "./execution-context-
|
|
1
|
+
import { t as PowerlinesExecutionContext } from "./execution-context-NyDjVZ6T.cjs";
|
|
2
2
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
3
3
|
import { API, BuildInlineConfig, CallHookOptions, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentContext, Execution, ExecutionOptions, InferHookParameters, LintInlineConfig, NewInlineConfig, PluginConfig, PluginContext, PrepareInlineConfig, ResolvedConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
4
4
|
import { PartialKeys } from "@stryke/types/base";
|
package/dist/api.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.cts","names":[],"sources":["../src/_internal/execution.ts","../src/api.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"api.d.cts","names":[],"sources":["../src/_internal/execution.ts","../src/api.ts"],"mappings":";;;;;;;;AAuGA;;;;;;cAAa,mBAAA,yBACa,cAAA,GAAiB,cAAA,aAC9B,SAAA;EAAA;EAgBO;;;;;;EAAA,OAJE,IAAA,yBACM,cAAA,GAAiB,cAAA,CAAA,CAEzC,OAAA,EAAS,gBAAA,EACT,aAAA,GAAgB,eAAA,oBACf,OAAA,CAAQ,mBAAA,CAAoB,eAAA;EA4Bf;;;EAAA,IAbL,OAAA,CAAA,GAAW,0BAAA,CAA2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A2B,OAAA;EDyVpD;;;;;;;;;ECrUmB,KAAA,CACpB,YAAA,GACI,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,mBAAA,eAEf,OAAA;EDyXkE;;;;;;ECxW/C,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;ED6brD;;;;;;;;;ECzaM,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;ED2d1D;;;;;;;;;ECvcW,KAAA,CACpB,YAAA,GAAc,WAAA,CAAY,iBAAA,eAEzB,OAAA;ED4diB;;;;;;EC3cE,IAAA,CACpB,YAAA,GAAc,gBAAA,GAAsC,OAAA;EDxJlC;;;;;;;;EC6KE,MAAA,CACpB,YAAA,GAAc,WAAA,CAAY,kBAAA,eAEzB,OAAA;EDnKwC;;;;;;;;ECsLrB,QAAA,CAAA,GAAQ,OAAA;EDnKR;;;;;;EAAA,CCmLR,MAAA,CAAO,YAAA,KAAa,OAAA;ED/BrB;;;;;EAAA,UCwCJ,WAAA,CAAa,OAAA,EAAS,0BAAA,CAA2B,eAAA;AAAA"}
|
package/dist/api.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PowerlinesExecutionContext } from "./execution-context-
|
|
1
|
+
import { t as PowerlinesExecutionContext } from "./execution-context-YrjFeD9k.mjs";
|
|
2
2
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
3
3
|
import { API, BuildInlineConfig, CallHookOptions, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentContext, Execution, ExecutionOptions, InferHookParameters, LintInlineConfig, NewInlineConfig, PluginConfig, PluginContext, PrepareInlineConfig, ResolvedConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
4
4
|
import { PartialKeys } from "@stryke/types/base";
|
package/dist/api.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","names":[],"sources":["../src/_internal/execution.ts","../src/api.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"api.d.mts","names":[],"sources":["../src/_internal/execution.ts","../src/api.ts"],"mappings":";;;;;;;;AAuGA;;;;;;cAAa,mBAAA,yBACa,cAAA,GAAiB,cAAA,aAC9B,SAAA;EAAA;EAgBO;;;;;;EAAA,OAJE,IAAA,yBACM,cAAA,GAAiB,cAAA,CAAA,CAEzC,OAAA,EAAS,gBAAA,EACT,aAAA,GAAgB,eAAA,oBACf,OAAA,CAAQ,mBAAA,CAAoB,eAAA;EA4Bf;;;EAAA,IAbL,OAAA,CAAA,GAAW,0BAAA,CAA2B,eAAA;EAuJ/B;;;;;;;;EA3IL,KAAA,CACX,YAAA,GAAc,WAAA,CAAY,iBAAA,eAEzB,OAAA;EA4IG;;;;;;;;EAPO,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;EAqH1C;;;;;;;;;EAAlB,GAAA,CAAI,YAAA,EAAc,WAAA,CAAY,eAAA,eAA2B,OAAA;EAoHhE;;;;;;;;;EAxCO,KAAA,CACX,YAAA,GACI,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,mBAAA,eAEf,OAAA;EAwH6B;;;;;;EAxFnB,IAAA,CACX,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EAgK1D;;;;;;EA7IE,IAAA,CACX,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EA6ID;;;;;;;;;EAvHvD,KAAA,CACX,YA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1
|
-
import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-
|
|
2
|
-
import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-
|
|
3
|
-
import { n as createProgram } from "./ts-morph-
|
|
4
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
5
|
-
import { resolvePackage } from "@stryke/fs/resolve";
|
|
6
|
-
import { isSet } from "@stryke/type-checks/is-set";
|
|
7
|
-
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
8
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
9
|
-
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
1
|
+
import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-CE5H90Um.mjs";
|
|
2
|
+
import { a as isIncludeMatchFound, i as getTsconfigFilePath, r as getParsedTypeScriptConfig } from "./tsconfig-HzJsMUrr.mjs";
|
|
3
|
+
import { n as createProgram } from "./ts-morph-C6YBNc46.mjs";
|
|
10
4
|
import { uuid } from "@stryke/unique-id/uuid";
|
|
11
|
-
import { findInvalidPluginConfig, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple } from "@powerlines/core/plugin-utils";
|
|
12
|
-
import { colorText } from "@powerlines/core/plugin-utils/logging";
|
|
13
|
-
import { appendPath } from "@stryke/path/append";
|
|
14
|
-
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
15
|
-
import chalk from "chalk";
|
|
16
|
-
import defu from "defu";
|
|
17
|
-
import { joinPaths } from "@stryke/path/join-paths";
|
|
18
5
|
import { getTypescriptFileHeader } from "@powerlines/core/lib/utilities/file-header";
|
|
19
6
|
import { format, formatFolder } from "@powerlines/core/lib/utilities/format";
|
|
7
|
+
import { findInvalidPluginConfig, formatConfig, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple } from "@powerlines/core/plugin-utils";
|
|
8
|
+
import { colorText } from "@powerlines/core/plugin-utils/logging";
|
|
20
9
|
import { formatLogMessage } from "@storm-software/config-tools/logger/console";
|
|
10
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
21
11
|
import { copyFiles } from "@stryke/fs/copy-file";
|
|
22
12
|
import { existsSync } from "@stryke/fs/exists";
|
|
23
13
|
import { createDirectory, removeDirectory } from "@stryke/fs/helpers";
|
|
24
14
|
import { install } from "@stryke/fs/install";
|
|
25
15
|
import { listFiles } from "@stryke/fs/list-files";
|
|
26
16
|
import { doesPackageMatch, getPackageListing, isPackageExists, isPackageListed } from "@stryke/fs/package-fns";
|
|
17
|
+
import { resolvePackage } from "@stryke/fs/resolve";
|
|
27
18
|
import { getUnique } from "@stryke/helpers/get-unique";
|
|
28
19
|
import { omit } from "@stryke/helpers/omit";
|
|
20
|
+
import { appendPath } from "@stryke/path/append";
|
|
29
21
|
import { findFileName, findFilePath, relativePath } from "@stryke/path/file-path-fns";
|
|
30
22
|
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
23
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
24
|
+
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
31
25
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
32
26
|
import { isError } from "@stryke/type-checks/is-error";
|
|
33
27
|
import { isFunction } from "@stryke/type-checks/is-function";
|
|
34
28
|
import { isNumber } from "@stryke/type-checks/is-number";
|
|
35
29
|
import { isObject } from "@stryke/type-checks/is-object";
|
|
36
30
|
import { isPromiseLike } from "@stryke/type-checks/is-promise";
|
|
31
|
+
import { isSet } from "@stryke/type-checks/is-set";
|
|
32
|
+
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
33
|
+
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
34
|
+
import { isString } from "@stryke/type-checks/is-string";
|
|
35
|
+
import chalk from "chalk";
|
|
36
|
+
import defu from "defu";
|
|
37
37
|
import Handlebars from "handlebars";
|
|
38
38
|
import { readJsonFile } from "@stryke/fs/json";
|
|
39
39
|
import { prettyBytes } from "@stryke/string-format/pretty-bytes";
|
|
@@ -552,20 +552,7 @@ var PowerlinesExecution = class PowerlinesExecution {
|
|
|
552
552
|
});
|
|
553
553
|
context.trace({
|
|
554
554
|
meta: { category: "config" },
|
|
555
|
-
message: `Powerlines configuration after configResolved hook: \n${
|
|
556
|
-
...omit(context.config, [
|
|
557
|
-
"inlineConfig",
|
|
558
|
-
"userConfig",
|
|
559
|
-
"initialConfig",
|
|
560
|
-
"pluginConfig",
|
|
561
|
-
"plugins"
|
|
562
|
-
]),
|
|
563
|
-
plugins: context.plugins.map((plugin) => plugin.plugin.name),
|
|
564
|
-
inlineConfig: isSetObject(context.config.inlineConfig) ? omit(context.config.inlineConfig, ["plugins"]) : void 0,
|
|
565
|
-
userConfig: isSetObject(context.config.userConfig) ? omit(context.config.userConfig, ["plugins"]) : void 0,
|
|
566
|
-
initialConfig: isSetObject(context.config.initialConfig) ? omit(context.config.initialConfig, ["plugins"]) : void 0,
|
|
567
|
-
pluginConfig: isSetObject(context.config.pluginConfig) ? omit(context.config.pluginConfig, ["plugins"]) : void 0
|
|
568
|
-
})}`
|
|
555
|
+
message: `Powerlines configuration after configResolved hook: \n${formatConfig(context.config)}`
|
|
569
556
|
});
|
|
570
557
|
if (!context.fs.existsSync(context.cachePath)) await createDirectory(context.cachePath);
|
|
571
558
|
if (!context.fs.existsSync(context.dataPath)) await createDirectory(context.dataPath);
|