@powerlines/engine 0.44.9 → 0.44.10
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 +135 -60
- package/dist/_internal/worker.mjs +136 -61
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +5 -10
- package/dist/api.d.cts +3 -3
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +3 -3
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +5 -10
- package/dist/api.mjs.map +1 -1
- package/dist/{base-context-fOM4ZWUo.mjs → base-context-C6yzgs6K.mjs} +50 -21
- package/dist/base-context-C6yzgs6K.mjs.map +1 -0
- package/dist/{base-context-CAA1druQ.cjs → base-context-trNQZNsX.cjs} +49 -20
- package/dist/context/index.cjs +3 -3
- package/dist/context/index.d.cts +50 -17
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +50 -17
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +3 -3
- package/dist/{engine-context-BWGxMU_n.mjs → engine-context-C-11i43N.mjs} +2 -2
- package/dist/{engine-context-BWGxMU_n.mjs.map → engine-context-C-11i43N.mjs.map} +1 -1
- package/dist/{engine-context-CUPubmrM.cjs → engine-context-D1_U6xVC.cjs} +1 -1
- package/dist/{execution-context-BVn7D0Ax.cjs → execution-context-CsQO4NOI.cjs} +86 -41
- package/dist/{execution-context-UJPngOZR.mjs → execution-context-DlQIqoRZ.mjs} +88 -43
- package/dist/execution-context-DlQIqoRZ.mjs.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/base-context-fOM4ZWUo.mjs.map +0 -1
- package/dist/execution-context-UJPngOZR.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-CsQO4NOI.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");
|
|
@@ -12,7 +12,6 @@ let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-stri
|
|
|
12
12
|
let _stryke_unique_id_uuid = require("@stryke/unique-id/uuid");
|
|
13
13
|
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
14
14
|
let _powerlines_core_plugin_utils_logging = require("@powerlines/core/plugin-utils/logging");
|
|
15
|
-
let _stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
16
15
|
let _stryke_path_append = require("@stryke/path/append");
|
|
17
16
|
let _stryke_path_replace = require("@stryke/path/replace");
|
|
18
17
|
let chalk = require("chalk");
|
|
@@ -20,7 +19,6 @@ chalk = require_chunk.__toESM(chalk, 1);
|
|
|
20
19
|
let defu = require("defu");
|
|
21
20
|
defu = require_chunk.__toESM(defu, 1);
|
|
22
21
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
23
|
-
let _stryke_env_environment_checks = require("@stryke/env/environment-checks");
|
|
24
22
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
25
23
|
let _powerlines_core_lib_utilities_file_header = require("@powerlines/core/lib/utilities/file-header");
|
|
26
24
|
let _powerlines_core_lib_utilities_format = require("@powerlines/core/lib/utilities/format");
|
|
@@ -47,6 +45,7 @@ let _stryke_string_format_pretty_bytes = require("@stryke/string-format/pretty-b
|
|
|
47
45
|
let ts_morph = require("ts-morph");
|
|
48
46
|
let _stryke_string_format_package = require("@stryke/string-format/package");
|
|
49
47
|
let _donedeal0_superdiff = require("@donedeal0/superdiff");
|
|
48
|
+
let _stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
50
49
|
|
|
51
50
|
//#region src/_internal/helpers/generate-types.ts
|
|
52
51
|
/**
|
|
@@ -1088,12 +1087,8 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
|
|
|
1088
1087
|
static async fromOptions(options, override) {
|
|
1089
1088
|
const api = new PowerlinesAPI(await require_execution_context.PowerlinesExecutionContext.fromOptions({
|
|
1090
1089
|
executionId: (0, _stryke_unique_id_uuid.uuid)(),
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
framework: "powerlines",
|
|
1094
|
-
logLevel: "info",
|
|
1095
|
-
...options,
|
|
1096
|
-
executionIndex: 0
|
|
1090
|
+
executionIndex: 0,
|
|
1091
|
+
...options
|
|
1097
1092
|
}));
|
|
1098
1093
|
if (override) {
|
|
1099
1094
|
api.context.config.inlineConfig = override;
|
|
@@ -1151,7 +1146,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
|
|
|
1151
1146
|
*/
|
|
1152
1147
|
async prepare(inlineConfig = { command: "prepare" }) {
|
|
1153
1148
|
const timer = this.context.timer("Prepare");
|
|
1154
|
-
this.context.info("🏗️
|
|
1149
|
+
this.context.info("🏗️ Preparing the Powerlines project");
|
|
1155
1150
|
this.context.debug(" Aggregating configuration options for the Powerlines project");
|
|
1156
1151
|
await super.prepare(inlineConfig);
|
|
1157
1152
|
this.context.debug("✔ Powerlines preparation has completed successfully");
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
2
|
-
import { API, BuildInlineConfig, CallHookOptions, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig,
|
|
2
|
+
import { API, BuildInlineConfig, CallHookOptions, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentContext, Execution, ExecutionContext, ExecutionOptions, InferHookParameters, InlineConfig, LintInlineConfig, NewInlineConfig, PluginConfig, PluginContext, PrepareInlineConfig, ResolvedConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
3
3
|
import { PartialKeys } from "@stryke/types/base";
|
|
4
4
|
|
|
5
5
|
//#region src/_internal/execution.d.ts
|
|
@@ -23,7 +23,7 @@ declare class PowerlinesExecution<TResolvedConfig extends ResolvedConfig = Resol
|
|
|
23
23
|
* @param options - The options to initialize the API with
|
|
24
24
|
* @returns A new instance of the Powerlines API
|
|
25
25
|
*/
|
|
26
|
-
static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options:
|
|
26
|
+
static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, config: InlineConfig): Promise<PowerlinesExecution<TResolvedConfig>>;
|
|
27
27
|
/**
|
|
28
28
|
* Generate the Powerlines typescript declaration file
|
|
29
29
|
*
|
|
@@ -161,7 +161,7 @@ declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
161
161
|
* @param options - The options to initialize the API with
|
|
162
162
|
* @returns A new instance of the Powerlines API
|
|
163
163
|
*/
|
|
164
|
-
static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options:
|
|
164
|
+
static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: PartialKeys<ExecutionOptions, "executionId" | "executionIndex">, override?: InlineConfig): Promise<PowerlinesAPI<TResolvedConfig>>;
|
|
165
165
|
/**
|
|
166
166
|
* Generate the Powerlines typescript declaration file
|
|
167
167
|
*
|
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":";;;;;;;AAyGA;;;;;;cAAa,mBAAA,yBACa,cAAA,GAAiB,cAAA,aAC9B,SAAA;EAAA;EA0qBgC;;;EAA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eAAA,eAA2B,OAAA;EDygCc;;;;;;;;;ECr/B/C,KAAA,CACpB,YAAA,GACI,WAAA,CAAY,iBAAA,eACZ,WAAA,CAAY,mBAAA,eAEf,OAAA;EDqkCmE;;;;;;ECpjChD,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EDynCvB;;;;;;;;;ECrmCxB,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EDomCD;;;;;;;;;EChlC9C,KAAA,CACpB,YAAA,GAAc,WAAA,CAAY,iBAAA,eAEzB,OAAA;EDjMiB;;;;;;ECkNE,IAAA,CACpB,YAAA,GAAc,gBAAA,GAAsC,OAAA;ED4chC;;;;;;;;ECvbA,MAAA,CACpB,YAAA,GAAc,WAAA,CAAY,kBAAA,eAEzB,OAAA;EDkcD;;;;;;;;EC/aoB,QAAA,CAAA,GAAQ,OAAA;ED0nBjB;;;;;;EAAA,CC1mBC,MAAA,CAAO,YAAA,KAAa,OAAA;AAAA"}
|
package/dist/api.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _$_powerlines_core0 from "@powerlines/core";
|
|
2
|
-
import { API, BuildInlineConfig, CallHookOptions, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig,
|
|
2
|
+
import { API, BuildInlineConfig, CallHookOptions, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, EnvironmentContext, Execution, ExecutionContext, ExecutionOptions, InferHookParameters, InlineConfig, LintInlineConfig, NewInlineConfig, PluginConfig, PluginContext, PrepareInlineConfig, ResolvedConfig, TestInlineConfig, TypesInlineConfig } from "@powerlines/core";
|
|
3
3
|
import { PartialKeys } from "@stryke/types/base";
|
|
4
4
|
|
|
5
5
|
//#region src/_internal/execution.d.ts
|
|
@@ -23,7 +23,7 @@ declare class PowerlinesExecution<TResolvedConfig extends ResolvedConfig = Resol
|
|
|
23
23
|
* @param options - The options to initialize the API with
|
|
24
24
|
* @returns A new instance of the Powerlines API
|
|
25
25
|
*/
|
|
26
|
-
static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options:
|
|
26
|
+
static fromConfig<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: ExecutionOptions, config: InlineConfig): Promise<PowerlinesExecution<TResolvedConfig>>;
|
|
27
27
|
/**
|
|
28
28
|
* Generate the Powerlines typescript declaration file
|
|
29
29
|
*
|
|
@@ -161,7 +161,7 @@ declare class PowerlinesAPI<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
161
161
|
* @param options - The options to initialize the API with
|
|
162
162
|
* @returns A new instance of the Powerlines API
|
|
163
163
|
*/
|
|
164
|
-
static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options:
|
|
164
|
+
static fromOptions<TResolvedConfig extends ResolvedConfig = ResolvedConfig>(options: PartialKeys<ExecutionOptions, "executionId" | "executionIndex">, override?: InlineConfig): Promise<PowerlinesAPI<TResolvedConfig>>;
|
|
165
165
|
/**
|
|
166
166
|
* Generate the Powerlines typescript declaration file
|
|
167
167
|
*
|
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":";;;;;;;AAyGA;;;;;;cAAa,mBAAA,yBACa,cAAA,GAAiB,cAAA,aAC9B,SAAA;EAAA;EA0qBgC;;;EAAA,IAXhC,OAAA,CAAA,GAAW,gBAAA,CAAiB,eAAA;EAe5B;;;;;;EAAA,OALS,UAAA,yBACM,cAAA,GAAiB,cAAA,CAAA,CAEzC,OAAA,EAAS,gBAAA,EACT,MAAA,EAAQ,YAAA,GACP,OAAA,CAAQ,mBAAA,CAAoB,eAAA;EA6Mb;;;;;;;;EA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AAmD,OAAA;EDynCvB;;;;;;;;;ECrmCxB,IAAA,CACpB,YAAA,GACI,WAAA,CAAY,gBAAA,eACZ,WAAA,CAAY,iBAAA,eAAmD,OAAA;EDomCD;;;;;;;;;EChlC9C,KAAA,CACpB,YAAA,GAAc,WAAA,CAAY,iBAAA,eAEzB,OAAA;EDjMiB;;;;;;ECkNE,IAAA,CACpB,YAAA,GAAc,gBAAA,GAAsC,OAAA;ED4chC;;;;;;;;ECvbA,MAAA,CACpB,YAAA,GAAc,WAAA,CAAY,kBAAA,eAEzB,OAAA;EDkcD;;;;;;;;EC/aoB,QAAA,CAAA,GAAQ,OAAA;ED0nBjB;;;;;;EAAA,CC1mBC,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-
|
|
1
|
+
import { a as mergeConfigs, i as callHook, s as writeMetaFile, t as PowerlinesExecutionContext } from "./execution-context-DlQIqoRZ.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";
|
|
@@ -10,13 +10,11 @@ import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
|
10
10
|
import { uuid } from "@stryke/unique-id/uuid";
|
|
11
11
|
import { findInvalidPluginConfig, isDuplicate, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple } from "@powerlines/core/plugin-utils";
|
|
12
12
|
import { colorText } from "@powerlines/core/plugin-utils/logging";
|
|
13
|
-
import { StormJSON } from "@stryke/json/storm-json";
|
|
14
13
|
import { appendPath } from "@stryke/path/append";
|
|
15
14
|
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
16
15
|
import chalk from "chalk";
|
|
17
16
|
import defu from "defu";
|
|
18
17
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
19
|
-
import { isDevelopment, isTest } from "@stryke/env/environment-checks";
|
|
20
18
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
21
19
|
import { getTypescriptFileHeader } from "@powerlines/core/lib/utilities/file-header";
|
|
22
20
|
import { format, formatFolder } from "@powerlines/core/lib/utilities/format";
|
|
@@ -42,6 +40,7 @@ import { prettyBytes } from "@stryke/string-format/pretty-bytes";
|
|
|
42
40
|
import { DiagnosticCategory, Node, Project } from "ts-morph";
|
|
43
41
|
import { getPackageName, getPackageVersion, hasPackageVersion } from "@stryke/string-format/package";
|
|
44
42
|
import { getObjectDiff } from "@donedeal0/superdiff";
|
|
43
|
+
import { StormJSON } from "@stryke/json/storm-json";
|
|
45
44
|
|
|
46
45
|
//#region src/_internal/helpers/generate-types.ts
|
|
47
46
|
/**
|
|
@@ -1083,12 +1082,8 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
|
|
|
1083
1082
|
static async fromOptions(options, override) {
|
|
1084
1083
|
const api = new PowerlinesAPI(await PowerlinesExecutionContext.fromOptions({
|
|
1085
1084
|
executionId: uuid(),
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
framework: "powerlines",
|
|
1089
|
-
logLevel: "info",
|
|
1090
|
-
...options,
|
|
1091
|
-
executionIndex: 0
|
|
1085
|
+
executionIndex: 0,
|
|
1086
|
+
...options
|
|
1092
1087
|
}));
|
|
1093
1088
|
if (override) {
|
|
1094
1089
|
api.context.config.inlineConfig = override;
|
|
@@ -1146,7 +1141,7 @@ var PowerlinesAPI = class PowerlinesAPI extends PowerlinesExecution {
|
|
|
1146
1141
|
*/
|
|
1147
1142
|
async prepare(inlineConfig = { command: "prepare" }) {
|
|
1148
1143
|
const timer = this.context.timer("Prepare");
|
|
1149
|
-
this.context.info("🏗️
|
|
1144
|
+
this.context.info("🏗️ Preparing the Powerlines project");
|
|
1150
1145
|
this.context.debug(" Aggregating configuration options for the Powerlines project");
|
|
1151
1146
|
await super.prepare(inlineConfig);
|
|
1152
1147
|
this.context.debug("✔ Powerlines preparation has completed successfully");
|