@powerlines/engine 0.44.12 → 0.45.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 +141 -106
- package/dist/_internal/worker.d.cts +16 -8
- package/dist/_internal/worker.d.cts.map +1 -1
- package/dist/_internal/worker.d.mts +16 -8
- package/dist/_internal/worker.d.mts.map +1 -1
- package/dist/_internal/worker.mjs +142 -107
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +60 -46
- package/dist/api.d.cts +18 -13
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +18 -13
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +60 -46
- package/dist/api.mjs.map +1 -1
- package/dist/{base-context-C6yzgs6K.mjs → base-context-BSAC5sO9.mjs} +21 -15
- package/dist/base-context-BSAC5sO9.mjs.map +1 -0
- package/dist/{base-context-trNQZNsX.cjs → base-context-Byizvf4F.cjs} +20 -14
- package/dist/context/index.cjs +3 -3
- package/dist/context/index.d.cts +13 -8
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +13 -8
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +3 -3
- package/dist/{engine-context-D1_U6xVC.cjs → engine-context-CI_0NWIk.cjs} +5 -3
- package/dist/{engine-context-C-11i43N.mjs → engine-context-_RMFwG4J.mjs} +6 -4
- package/dist/engine-context-_RMFwG4J.mjs.map +1 -0
- package/dist/{execution-context-C-M-Mxse.cjs → execution-context-BFCOc0mH.cjs} +61 -48
- package/dist/{execution-context-D9Enw3J5.mjs → execution-context-Cr_VUBrP.mjs} +63 -50
- package/dist/execution-context-Cr_VUBrP.mjs.map +1 -0
- package/dist/index.cjs +30 -20
- package/dist/index.d.cts +9 -8
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +30 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/base-context-C6yzgs6K.mjs.map +0 -1
- package/dist/engine-context-C-11i43N.mjs.map +0 -1
- package/dist/execution-context-D9Enw3J5.mjs.map +0 -1
|
@@ -2206,7 +2206,11 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
|
|
|
2206
2206
|
/**
|
|
2207
2207
|
* The input options used to initialize the context, which may be used when cloning the context to ensure the same configuration is applied to the new context
|
|
2208
2208
|
*/
|
|
2209
|
-
|
|
2209
|
+
initialOptions = {};
|
|
2210
|
+
/**
|
|
2211
|
+
* The initial configuration provided when initializing the context, which may be used during the setup process to ensure that the configuration is properly merged and applied to the context. This is typically the user configuration provided in the Powerlines configuration file, but may also include additional configuration options provided by plugins or other sources.
|
|
2212
|
+
*/
|
|
2213
|
+
initialConfig = {};
|
|
2210
2214
|
/**
|
|
2211
2215
|
* The parsed configuration file for the project
|
|
2212
2216
|
*/
|
|
@@ -2246,7 +2250,7 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
|
|
|
2246
2250
|
*/
|
|
2247
2251
|
async clone() {
|
|
2248
2252
|
const clone = new PowerlinesBaseContext();
|
|
2249
|
-
await clone.init(this.options);
|
|
2253
|
+
await clone.init(this.options, this.initialConfig);
|
|
2250
2254
|
return clone;
|
|
2251
2255
|
}
|
|
2252
2256
|
/**
|
|
@@ -2350,9 +2354,9 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
|
|
|
2350
2354
|
* @returns A promise that resolves to the workspace configuration object, or undefined if no configuration file is found.
|
|
2351
2355
|
*/
|
|
2352
2356
|
async getWorkspaceConfig() {
|
|
2353
|
-
return (0, _storm_software_config_tools_get_config.tryGetWorkspaceConfig)(false, this.options || this.
|
|
2354
|
-
cwd: this.options?.root || this.
|
|
2355
|
-
workspaceRoot: this.options?.cwd || this.
|
|
2357
|
+
return (0, _storm_software_config_tools_get_config.tryGetWorkspaceConfig)(false, this.options || this.initialOptions ? {
|
|
2358
|
+
cwd: this.options?.root || this.initialOptions?.root ? (0, _stryke_path_append.appendPath)(this.options?.root || this.initialOptions?.root || ".", this.options?.cwd || this.initialOptions?.cwd) : void 0,
|
|
2359
|
+
workspaceRoot: this.options?.cwd || this.initialOptions?.cwd
|
|
2356
2360
|
} : void 0);
|
|
2357
2361
|
}
|
|
2358
2362
|
/**
|
|
@@ -2371,7 +2375,7 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
|
|
|
2371
2375
|
*/
|
|
2372
2376
|
async getDefaultLogLevel() {
|
|
2373
2377
|
const workspaceConfig = await this.getWorkspaceConfig();
|
|
2374
|
-
return (0, _powerlines_core_plugin_utils.resolveLogLevel)(workspaceConfig?.logLevel ? workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" ? "info" : workspaceConfig.logLevel === "all" ? "debug" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel : void 0, this.options?.mode || this.
|
|
2378
|
+
return (0, _powerlines_core_plugin_utils.resolveLogLevel)(workspaceConfig?.logLevel ? workspaceConfig.logLevel === "success" || workspaceConfig.logLevel === "performance" ? "info" : workspaceConfig.logLevel === "all" ? "debug" : workspaceConfig.logLevel === "fatal" ? "error" : workspaceConfig.logLevel : void 0, this.options?.mode || this.initialOptions?.mode || workspaceConfig?.mode || await this.getDefaultMode());
|
|
2375
2379
|
}
|
|
2376
2380
|
/**
|
|
2377
2381
|
* Initialize the context with the provided configuration options
|
|
@@ -2380,9 +2384,11 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
|
|
|
2380
2384
|
* This method will set up the resolver and load the user configuration file based on the provided options. It is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup.
|
|
2381
2385
|
*
|
|
2382
2386
|
* @param options - The configuration options to initialize the context with
|
|
2387
|
+
* @param initialConfig - The initial configuration to initialize the context with
|
|
2383
2388
|
*/
|
|
2384
|
-
async init(options) {
|
|
2385
|
-
this.
|
|
2389
|
+
async init(options, initialConfig) {
|
|
2390
|
+
this.initialOptions = { ...options };
|
|
2391
|
+
this.initialConfig = { ...initialConfig };
|
|
2386
2392
|
if (!this.powerlinesPath) {
|
|
2387
2393
|
const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
|
|
2388
2394
|
if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
|
|
@@ -2391,14 +2397,14 @@ var PowerlinesBaseContext = class PowerlinesBaseContext {
|
|
|
2391
2397
|
const cwd = options.cwd || this.options?.cwd || process.cwd();
|
|
2392
2398
|
const root = (0, _stryke_path_replace.replacePath)((options.root || this.options?.root) && (options.root || this.options.root).replace(/^\.\/?/, "") && !(0, _stryke_path_is_equal.isEqual)(options.root || this.options.root, cwd) ? options.root || this.options.root : ".", cwd);
|
|
2393
2399
|
this.options = (0, defu.default)({
|
|
2394
|
-
name: options.name,
|
|
2400
|
+
name: options.name || this.initialConfig.name,
|
|
2395
2401
|
root,
|
|
2396
2402
|
cwd,
|
|
2397
|
-
mode: options.mode,
|
|
2398
|
-
logLevel: options.logLevel,
|
|
2399
|
-
framework: options.framework,
|
|
2400
|
-
organization: options.organization,
|
|
2401
|
-
configFile: options.configFile
|
|
2403
|
+
mode: options.mode || this.initialConfig.mode,
|
|
2404
|
+
logLevel: options.logLevel || this.initialConfig.logLevel,
|
|
2405
|
+
framework: options.framework || this.initialConfig.framework,
|
|
2406
|
+
organization: options.organization || this.initialConfig.organization,
|
|
2407
|
+
configFile: options.configFile || this.initialConfig.configFile
|
|
2402
2408
|
}, this.options ?? {}, {
|
|
2403
2409
|
mode: await this.getDefaultMode(),
|
|
2404
2410
|
logLevel: await this.getDefaultLogLevel()
|
|
@@ -2481,9 +2487,9 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
2481
2487
|
* @param options - The options for resolving the context.
|
|
2482
2488
|
* @returns A promise that resolves to the new context.
|
|
2483
2489
|
*/
|
|
2484
|
-
static async
|
|
2490
|
+
static async init(options, initialConfig) {
|
|
2485
2491
|
const context = new PowerlinesContext(options);
|
|
2486
|
-
await context.init(options);
|
|
2492
|
+
await context.init(options, initialConfig);
|
|
2487
2493
|
const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
|
|
2488
2494
|
if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
|
|
2489
2495
|
context.powerlinesPath = powerlinesPath;
|
|
@@ -2786,7 +2792,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
2786
2792
|
* @returns A promise that resolves to the cloned context.
|
|
2787
2793
|
*/
|
|
2788
2794
|
async clone() {
|
|
2789
|
-
const clone = await PowerlinesContext.
|
|
2795
|
+
const clone = await PowerlinesContext.init(this.options, this.initialConfig);
|
|
2790
2796
|
return this.copyTo(clone);
|
|
2791
2797
|
}
|
|
2792
2798
|
/**
|
|
@@ -3140,8 +3146,9 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3140
3146
|
cwd: this.options.cwd,
|
|
3141
3147
|
inlineConfig: this.config.inlineConfig ?? {},
|
|
3142
3148
|
userConfig: this.config.userConfig ?? {},
|
|
3149
|
+
initialConfig: this.config.initialConfig ?? {},
|
|
3143
3150
|
pluginConfig: this.config.pluginConfig ?? {}
|
|
3144
|
-
}, getConfigProps(this.config.inlineConfig), getConfigProps(this.config.userConfig), getConfigProps(this.config.pluginConfig), this.options, {
|
|
3151
|
+
}, getConfigProps(this.config.inlineConfig), getConfigProps(this.config.userConfig), getConfigProps(this.config.initialConfig), getConfigProps(this.config.pluginConfig), this.options, {
|
|
3145
3152
|
name: this.projectJson?.name || this.packageJson?.name,
|
|
3146
3153
|
version: this.packageJson?.version,
|
|
3147
3154
|
description: this.packageJson?.description
|
|
@@ -3166,7 +3173,8 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3166
3173
|
copyTo(context) {
|
|
3167
3174
|
for (const [key, value] of Object.entries(this)) if (!SKIP_CLONING_PROPS.includes(key)) if ((0, _stryke_type_checks_is_object.isObject)(value) || Array.isArray(value)) context[key] = (0, _stryke_helpers_deep_clone.deepClone)(value);
|
|
3168
3175
|
else context[key] = value;
|
|
3169
|
-
context.
|
|
3176
|
+
context.initialConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.initialConfig);
|
|
3177
|
+
context.initialOptions = (0, _stryke_helpers_deep_clone.deepClone)(this.initialOptions);
|
|
3170
3178
|
context.options = (0, _stryke_helpers_deep_clone.deepClone)(this.options);
|
|
3171
3179
|
context.dependencies = (0, _stryke_helpers_deep_clone.deepClone)(this.dependencies);
|
|
3172
3180
|
context.devDependencies = (0, _stryke_helpers_deep_clone.deepClone)(this.devDependencies);
|
|
@@ -3187,8 +3195,8 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3187
3195
|
*
|
|
3188
3196
|
* @param options - The configuration options to initialize the context with
|
|
3189
3197
|
*/
|
|
3190
|
-
async init(options) {
|
|
3191
|
-
await super.init(options);
|
|
3198
|
+
async init(options, initialConfig) {
|
|
3199
|
+
await super.init(options, initialConfig ?? {});
|
|
3192
3200
|
this.options.executionId = options.executionId ?? this.options.executionId;
|
|
3193
3201
|
this.options.executionIndex = options.executionIndex ?? this.options.executionIndex ?? 0;
|
|
3194
3202
|
const projectJsonPath = (0, _stryke_path_join.joinPaths)(this.options.cwd, this.options.root, "project.json");
|
|
@@ -3201,8 +3209,12 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3201
3209
|
this.#checksum = await this.generateChecksum((0, _stryke_path_join.joinPaths)(this.options.cwd, this.options.root));
|
|
3202
3210
|
const userConfig = this.configFile.config ? Array.isArray(this.configFile.config) && this.configFile.config.length > this.options.executionIndex ? this.configFile.config[this.options.executionIndex] : this.configFile.config : {};
|
|
3203
3211
|
this.resolvedConfig = {
|
|
3204
|
-
|
|
3212
|
+
cwd: this.options.cwd,
|
|
3213
|
+
root: this.options.root,
|
|
3214
|
+
...this.initialOptions,
|
|
3215
|
+
...initialConfig,
|
|
3205
3216
|
...userConfig,
|
|
3217
|
+
initialConfig,
|
|
3206
3218
|
userConfig
|
|
3207
3219
|
};
|
|
3208
3220
|
}
|
|
@@ -3225,28 +3237,33 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3225
3237
|
] },
|
|
3226
3238
|
dts: true
|
|
3227
3239
|
});
|
|
3228
|
-
logger.trace(`Pre-setup Powerlines configuration object: \n${
|
|
3229
|
-
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3240
|
+
logger.trace(`Pre-setup Powerlines configuration object: \n${(0, _storm_software_config_tools_logger_console.formatLogMessage)({
|
|
3241
|
+
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3242
|
+
"inlineConfig",
|
|
3243
|
+
"userConfig",
|
|
3244
|
+
"initialConfig",
|
|
3245
|
+
"pluginConfig",
|
|
3246
|
+
"plugins"
|
|
3247
|
+
]),
|
|
3248
|
+
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(this.config.inlineConfig, ["plugins"]) : void 0,
|
|
3249
|
+
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.userConfig) ? (0, _stryke_helpers_omit.omit)(this.config.userConfig, ["plugins"]) : void 0,
|
|
3250
|
+
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(this.config.initialConfig, ["plugins"]) : void 0,
|
|
3251
|
+
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(this.config.pluginConfig, ["plugins"]) : void 0
|
|
3252
|
+
})}`);
|
|
3253
|
+
if (!this.initialOptions.mode && !this.config.userConfig?.mode && !this.config.inlineConfig?.mode && !this.config.initialConfig?.mode && !this.config.pluginConfig?.mode) {
|
|
3235
3254
|
this.options.mode = "production";
|
|
3236
3255
|
this.config.mode = "production";
|
|
3237
3256
|
}
|
|
3238
|
-
if (!this.
|
|
3257
|
+
if (!this.initialOptions.framework && !this.config.userConfig?.framework && !this.config.inlineConfig?.framework && !this.config.initialConfig?.framework && !this.config.pluginConfig?.framework) {
|
|
3239
3258
|
this.options.framework = "powerlines";
|
|
3240
3259
|
this.config.framework = "powerlines";
|
|
3241
3260
|
}
|
|
3242
|
-
if (!this.config.userConfig?.projectType && !this.config.inlineConfig?.projectType && !this.config.pluginConfig?.projectType) this.config.projectType = "application";
|
|
3243
|
-
if (!this.config.userConfig?.platform && !this.config.inlineConfig?.platform && !this.config.pluginConfig?.platform) this.config.platform = "neutral";
|
|
3244
|
-
this.resolvedConfig.compatibilityDate = (0, compatx.resolveCompatibilityDates)(this.config.inlineConfig.compatibilityDate ?? this.config.userConfig.compatibilityDate ?? this.config.pluginConfig.compatibilityDate, "latest");
|
|
3261
|
+
if (!this.config.userConfig?.projectType && !this.config.inlineConfig?.projectType && !this.config.initialConfig?.projectType && !this.config.pluginConfig?.projectType) this.config.projectType = "application";
|
|
3262
|
+
if (!this.config.userConfig?.platform && !this.config.inlineConfig?.platform && !this.config.initialConfig?.platform && !this.config.pluginConfig?.platform) this.config.platform = "neutral";
|
|
3263
|
+
this.resolvedConfig.compatibilityDate = (0, compatx.resolveCompatibilityDates)(this.config.inlineConfig.compatibilityDate ?? this.config.userConfig.compatibilityDate ?? this.config.initialConfig.compatibilityDate ?? this.config.pluginConfig.compatibilityDate, "latest");
|
|
3245
3264
|
this.config.input = (0, _powerlines_core_lib_entry.getUniqueInputs)(this.config.input);
|
|
3246
3265
|
if (this.config.name?.startsWith("@") && this.config.name.split("/").filter(Boolean).length > 1) this.config.name = this.config.name.split("/").filter(Boolean)[1];
|
|
3247
3266
|
this.config.title ??= (0, _stryke_string_format_title_case.titleCase)(this.config.name);
|
|
3248
|
-
if (this.config.userConfig.resolve?.external) this.config.userConfig.resolve.external = (0, _stryke_helpers_get_unique.getUnique)(this.config.userConfig.resolve.external);
|
|
3249
|
-
if (this.config.userConfig.resolve?.noExternal) this.config.userConfig.resolve.noExternal = (0, _stryke_helpers_get_unique.getUnique)(this.config.userConfig.resolve.noExternal);
|
|
3250
3267
|
if (this.config.resolve.external) this.config.resolve.external = (0, _stryke_helpers_get_unique.getUnique)(this.config.resolve.external);
|
|
3251
3268
|
if (this.config.resolve.noExternal) this.config.resolve.noExternal = (0, _stryke_helpers_get_unique.getUnique)(this.config.resolve.noExternal);
|
|
3252
3269
|
this.config.plugins = (this.config.plugins ?? []).flatMap((plugin) => (0, _stryke_convert_to_array.toArray)(plugin)).filter(Boolean).reduce((ret, plugin) => {
|
|
@@ -3254,10 +3271,10 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3254
3271
|
ret.push(plugin);
|
|
3255
3272
|
return ret;
|
|
3256
3273
|
}, []);
|
|
3257
|
-
if (!this.config.userConfig?.logLevel && !this.config.inlineConfig?.logLevel) if (this.config.mode === "development") this.config.logLevel = _powerlines_core_constants.DEFAULT_DEVELOPMENT_LOG_LEVEL;
|
|
3274
|
+
if (!this.config.userConfig?.logLevel && !this.config.initialConfig?.logLevel && !this.config.pluginConfig?.logLevel && !this.config.inlineConfig?.logLevel) if (this.config.mode === "development") this.config.logLevel = _powerlines_core_constants.DEFAULT_DEVELOPMENT_LOG_LEVEL;
|
|
3258
3275
|
else if (this.config.mode === "test") this.config.logLevel = _powerlines_core_constants.DEFAULT_TEST_LOG_LEVEL;
|
|
3259
3276
|
else this.config.logLevel = _powerlines_core_constants.DEFAULT_PRODUCTION_LOG_LEVEL;
|
|
3260
|
-
if (!this.config.userConfig?.tsconfig && !this.config.inlineConfig?.tsconfig) this.config.tsconfig = getTsconfigFilePath(this.config.cwd, this.config.root);
|
|
3277
|
+
if (!this.config.userConfig?.tsconfig && !this.config.initialConfig?.tsconfig && !this.config.pluginConfig?.tsconfig && !this.config.inlineConfig?.tsconfig) this.config.tsconfig = getTsconfigFilePath(this.config.cwd, this.config.root);
|
|
3261
3278
|
else if (this.config.tsconfig) this.config.tsconfig = (0, _stryke_path_replace.replacePath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, this.config.tsconfig), this.config.cwd);
|
|
3262
3279
|
this.config.output.format = (0, _stryke_helpers_get_unique.getUnique)((0, _stryke_convert_to_array.toArray)(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
|
|
3263
3280
|
if (this.config.output.path) this.config.output.path = (0, _stryke_path_append.appendPath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, this.config.output.path), this.config.cwd);
|
|
@@ -3267,7 +3284,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3267
3284
|
if (!this.config.root.replace(/^\.\/?/, "")) this.config.output.copy.path = this.config.output.copy.path ? (0, _stryke_path_append.appendPath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, this.config.output.copy.path), this.config.cwd) : this.config.output.path;
|
|
3268
3285
|
else this.config.output.copy.path = (0, _stryke_path_append.appendPath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, this.config.output.copy.path || (0, _stryke_path_join.joinPaths)("dist", this.config.root)), this.config.cwd);
|
|
3269
3286
|
}
|
|
3270
|
-
if (this.config.output.types !== false) this.config.output.types = (0, _stryke_path_append.appendPath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, this.config.userConfig?.output?.types || this.config.inlineConfig?.output?.types || this.config.pluginConfig?.output?.types || (0, _stryke_path_join.joinPaths)(this.config.root, `${this.config.framework ?? "powerlines"}.d.ts`)), this.config.cwd);
|
|
3287
|
+
if (this.config.output.types !== false) this.config.output.types = (0, _stryke_path_append.appendPath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, this.config.userConfig?.output?.types || this.config.inlineConfig?.output?.types || this.config.initialConfig?.output?.types || this.config.pluginConfig?.output?.types || (0, _stryke_path_join.joinPaths)(this.config.root, `${this.config.framework ?? "powerlines"}.d.ts`)), this.config.cwd);
|
|
3271
3288
|
if (this.config.output.copy && this.config.output.copy.path && this.config.output.copy.assets && Array.isArray(this.config.output.copy.assets)) this.config.output.copy.assets = (0, _stryke_helpers_get_unique.getUniqueBy)(this.config.output.copy.assets.map((asset) => {
|
|
3272
3289
|
return {
|
|
3273
3290
|
glob: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) ? asset.glob : asset,
|
|
@@ -3276,11 +3293,11 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3276
3293
|
ignore: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.ignore ? (0, _stryke_convert_to_array.toArray)(asset.ignore) : void 0
|
|
3277
3294
|
};
|
|
3278
3295
|
}), (a) => `${a.input}-${a.glob}-${a.output}`);
|
|
3279
|
-
if (!this.config.userConfig?.output?.sourceMap && !this.config.inlineConfig?.output?.sourceMap) if (this.config.mode === "development") this.config.output.sourceMap = true;
|
|
3296
|
+
if (!this.config.userConfig?.output?.sourceMap && !this.config.initialConfig?.output?.sourceMap && !this.config.inlineConfig?.output?.sourceMap && !this.config.pluginConfig?.output?.sourceMap) if (this.config.mode === "development") this.config.output.sourceMap = true;
|
|
3280
3297
|
else this.config.output.sourceMap = false;
|
|
3281
|
-
if (!this.config.userConfig?.output?.minify && !this.config.inlineConfig?.output?.minify) if (this.config.mode === "production") this.config.output.minify = true;
|
|
3298
|
+
if (!this.config.userConfig?.output?.minify && !this.config.initialConfig?.output?.minify && !this.config.inlineConfig?.output?.minify && !this.config.pluginConfig?.output?.minify) if (this.config.mode === "production") this.config.output.minify = true;
|
|
3282
3299
|
else this.config.output.minify = false;
|
|
3283
|
-
if (!this.config.userConfig?.output?.artifactsPath && !this.config.inlineConfig?.output?.artifactsPath && !this.config.pluginConfig?.output?.artifactsPath) this.config.output.artifactsPath = `.${this.config.framework || "powerlines"}`;
|
|
3300
|
+
if (!this.config.userConfig?.output?.artifactsPath && !this.config.initialConfig?.output?.artifactsPath && !this.config.inlineConfig?.output?.artifactsPath && !this.config.pluginConfig?.output?.artifactsPath) this.config.output.artifactsPath = `.${this.config.framework || "powerlines"}`;
|
|
3284
3301
|
if (this.config.output.copy && this.config.output.copy.assets) this.config.output.copy.assets = this.config.output.copy.assets.map((asset) => ({
|
|
3285
3302
|
...asset,
|
|
3286
3303
|
glob: (0, _powerlines_core_plugin_utils.replacePathTokens)(this, asset.glob),
|
|
@@ -3290,24 +3307,24 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3290
3307
|
}));
|
|
3291
3308
|
if ((0, _stryke_type_checks_is_set_string.isSetString)(this.config.output?.storage) && this.config.output.storage === "virtual" || (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.output?.storage) && Object.values(this.config.output.storage).every((adapter) => adapter.preset === "virtual")) this.config.output.overwrite = true;
|
|
3292
3309
|
this.#fs ??= await VirtualFileSystem.create(this);
|
|
3293
|
-
if ((0, _stryke_type_checks_is_set_object.isSetObject)(this.config.userConfig) && (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.
|
|
3294
|
-
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3310
|
+
if ((0, _stryke_type_checks_is_set_object.isSetObject)(this.config.inlineConfig) && (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.userConfig) && (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.initialConfig) && (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.pluginConfig)) logger.debug(`Resolved Powerlines configuration object: \n${(0, _storm_software_config_tools_logger_console.formatLogMessage)({
|
|
3311
|
+
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3312
|
+
"inlineConfig",
|
|
3313
|
+
"userConfig",
|
|
3314
|
+
"initialConfig",
|
|
3315
|
+
"pluginConfig",
|
|
3316
|
+
"plugins"
|
|
3317
|
+
]),
|
|
3318
|
+
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(this.config.inlineConfig, ["plugins"]) : void 0,
|
|
3319
|
+
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.userConfig) ? (0, _stryke_helpers_omit.omit)(this.config.userConfig, ["plugins"]) : void 0,
|
|
3320
|
+
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(this.config.initialConfig, ["plugins"]) : void 0,
|
|
3321
|
+
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(this.config.pluginConfig, ["plugins"]) : void 0
|
|
3322
|
+
})}`);
|
|
3299
3323
|
}
|
|
3300
3324
|
};
|
|
3301
3325
|
|
|
3302
3326
|
//#endregion
|
|
3303
3327
|
//#region src/_internal/helpers/hooks.ts
|
|
3304
|
-
const mergeResultObjects = (0, defu.createDefu)((obj, key, value) => {
|
|
3305
|
-
if ((0, _stryke_type_checks_is_string.isString)(obj[key]) && (0, _stryke_type_checks_is_string.isString)(value)) {
|
|
3306
|
-
obj[key] = `${obj[key] || ""}\n${value || ""}`.trim();
|
|
3307
|
-
return true;
|
|
3308
|
-
}
|
|
3309
|
-
return false;
|
|
3310
|
-
});
|
|
3311
3328
|
/**
|
|
3312
3329
|
* Merges the current hook result with the previous results based on their types.
|
|
3313
3330
|
*
|
|
@@ -3318,7 +3335,7 @@ const mergeResultObjects = (0, defu.createDefu)((obj, key, value) => {
|
|
|
3318
3335
|
function mergeResults(currentResult, previousResults) {
|
|
3319
3336
|
if (!previousResults || previousResults.length === 0) return [currentResult];
|
|
3320
3337
|
if ((0, _stryke_type_checks_is_set_string.isSetString)(currentResult)) previousResults = [`${(0, _stryke_type_checks_is_set_string.isSetString)(previousResults[0]) ? previousResults[0] || "" : ""}\n${(0, _stryke_type_checks_is_set_string.isSetString)(previousResults[0]) ? currentResult.replace(previousResults[0], "") : currentResult}`.trim()];
|
|
3321
|
-
else if ((0, _stryke_type_checks_is_object.isObject)(currentResult)) previousResults = [
|
|
3338
|
+
else if ((0, _stryke_type_checks_is_object.isObject)(currentResult)) previousResults = previousResults.length > 0 ? [(0, defu.defu)(currentResult, previousResults[0])] : [currentResult];
|
|
3322
3339
|
return previousResults;
|
|
3323
3340
|
}
|
|
3324
3341
|
/**
|
|
@@ -3696,9 +3713,9 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3696
3713
|
* @param options - The options for resolving the context.
|
|
3697
3714
|
* @returns A promise that resolves to the new context.
|
|
3698
3715
|
*/
|
|
3699
|
-
static async
|
|
3716
|
+
static async init(options, initialConfig) {
|
|
3700
3717
|
const context = new PowerlinesExecutionContext(options);
|
|
3701
|
-
await context.init(options);
|
|
3718
|
+
await context.init(options, initialConfig);
|
|
3702
3719
|
const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
|
|
3703
3720
|
if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
|
|
3704
3721
|
context.powerlinesPath = powerlinesPath;
|
|
@@ -3710,10 +3727,10 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3710
3727
|
* @param options - The options for resolving the context.
|
|
3711
3728
|
* @returns A promise that resolves to the new context.
|
|
3712
3729
|
*/
|
|
3713
|
-
static async
|
|
3730
|
+
static async inline(options, initialConfig, inlineConfig) {
|
|
3714
3731
|
const context = new PowerlinesExecutionContext(options);
|
|
3715
|
-
await context.init(options);
|
|
3716
|
-
context.config.inlineConfig =
|
|
3732
|
+
await context.init(options, initialConfig);
|
|
3733
|
+
context.config.inlineConfig = inlineConfig;
|
|
3717
3734
|
if (context.config.inlineConfig.command === "new") {
|
|
3718
3735
|
const workspacePackageJsonPath = (0, _stryke_path_join.joinPaths)(context.config.cwd, "package.json");
|
|
3719
3736
|
if (!(0, _stryke_fs_exists.existsSync)(workspacePackageJsonPath)) throw new Error(`The workspace package.json file could not be found at ${workspacePackageJsonPath}`);
|
|
@@ -3807,8 +3824,9 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3807
3824
|
* @returns A promise that resolves to the cloned context.
|
|
3808
3825
|
*/
|
|
3809
3826
|
async clone() {
|
|
3810
|
-
const clone = await PowerlinesExecutionContext.
|
|
3827
|
+
const clone = await PowerlinesExecutionContext.init(this.options, this.initialConfig);
|
|
3811
3828
|
clone.config.userConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.userConfig);
|
|
3829
|
+
clone.config.initialConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.initialConfig);
|
|
3812
3830
|
clone.config.inlineConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.inlineConfig);
|
|
3813
3831
|
clone.config.pluginConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.pluginConfig);
|
|
3814
3832
|
await clone.setup();
|
|
@@ -4640,47 +4658,53 @@ ${formatTypes(code)}
|
|
|
4640
4658
|
`);
|
|
4641
4659
|
}
|
|
4642
4660
|
/**
|
|
4661
|
+
* Initialize a Powerlines API instance
|
|
4662
|
+
*
|
|
4663
|
+
* @param options - The options to initialize the API with
|
|
4664
|
+
* @returns A new instance of the Powerlines API
|
|
4665
|
+
*/
|
|
4666
|
+
static async init(options, initialConfig) {
|
|
4667
|
+
const api = new PowerlinesExecution(await PowerlinesExecutionContext.init(options, initialConfig ?? {}));
|
|
4668
|
+
api.#context.config.initialConfig = initialConfig ?? {};
|
|
4669
|
+
await api.setup();
|
|
4670
|
+
return api;
|
|
4671
|
+
}
|
|
4672
|
+
/**
|
|
4643
4673
|
* The Powerlines context
|
|
4644
4674
|
*/
|
|
4645
4675
|
get context() {
|
|
4646
4676
|
return this.#context;
|
|
4647
4677
|
}
|
|
4648
4678
|
/**
|
|
4649
|
-
* Initialize
|
|
4650
|
-
*
|
|
4651
|
-
* @param options - The options to initialize the API with
|
|
4652
|
-
* @returns A new instance of the Powerlines API
|
|
4679
|
+
* Initialize the execution API with the provided configuration options
|
|
4653
4680
|
*/
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
api,
|
|
4660
|
-
addPlugin: api.addPlugin.bind(api)
|
|
4681
|
+
async setup() {
|
|
4682
|
+
await this.#context.setup();
|
|
4683
|
+
this.#context.$$internal = {
|
|
4684
|
+
api: this,
|
|
4685
|
+
addPlugin: this.addPlugin.bind(this)
|
|
4661
4686
|
};
|
|
4662
|
-
const timer =
|
|
4663
|
-
for (const plugin of
|
|
4664
|
-
if (
|
|
4687
|
+
const timer = this.#context.timer("Initialization");
|
|
4688
|
+
for (const plugin of this.#context.config.plugins.flatMap((p) => (0, _stryke_convert_to_array.toArray)(p)) ?? []) await this.addPlugin(plugin);
|
|
4689
|
+
if (this.#context.plugins.length === 0) this.#context.warn({
|
|
4665
4690
|
meta: { category: "plugins" },
|
|
4666
4691
|
message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
|
|
4667
4692
|
});
|
|
4668
|
-
else
|
|
4693
|
+
else this.#context.info({
|
|
4669
4694
|
meta: { category: "plugins" },
|
|
4670
|
-
message: `Loaded ${
|
|
4695
|
+
message: `Loaded ${this.#context.plugins.length} ${(0, _stryke_string_format_title_case.titleCase)(this.#context.config.framework)} plugin${this.#context.plugins.length > 1 ? "s" : ""}: \n${this.#context.plugins.map((plugin, index) => ` ${index + 1}. ${(0, _powerlines_core_plugin_utils_logging.colorText)(plugin.name)}`).join("\n")}`
|
|
4671
4696
|
});
|
|
4672
|
-
const pluginConfig = await
|
|
4673
|
-
environment: await
|
|
4697
|
+
const pluginConfig = await this.callHook("config", {
|
|
4698
|
+
environment: await this.#context.getEnvironment(),
|
|
4674
4699
|
sequential: true,
|
|
4675
4700
|
result: "merge",
|
|
4676
4701
|
merge: mergeConfigs
|
|
4677
4702
|
});
|
|
4678
4703
|
if (pluginConfig) {
|
|
4679
|
-
|
|
4680
|
-
await
|
|
4704
|
+
this.#context.config.pluginConfig = pluginConfig;
|
|
4705
|
+
await this.#context.setup();
|
|
4681
4706
|
}
|
|
4682
4707
|
timer();
|
|
4683
|
-
return api;
|
|
4684
4708
|
}
|
|
4685
4709
|
/**
|
|
4686
4710
|
* Generate the Powerlines typescript declaration file
|
|
@@ -4694,7 +4718,7 @@ ${formatTypes(code)}
|
|
|
4694
4718
|
this.context.debug(" Aggregating configuration options for the Powerlines project");
|
|
4695
4719
|
inlineConfig.command ??= "types";
|
|
4696
4720
|
this.context.config.inlineConfig = inlineConfig;
|
|
4697
|
-
await this.
|
|
4721
|
+
await this.setup();
|
|
4698
4722
|
await this.#executeEnvironments(async (context) => {
|
|
4699
4723
|
context.debug(`Initializing the processing options for the Powerlines project.`);
|
|
4700
4724
|
await this.callHook("configResolved", {
|
|
@@ -4745,7 +4769,7 @@ ${formatTypes(code)}
|
|
|
4745
4769
|
async prepare(inlineConfig = { command: "prepare" }) {
|
|
4746
4770
|
inlineConfig.command ??= "prepare";
|
|
4747
4771
|
this.context.config.inlineConfig = inlineConfig;
|
|
4748
|
-
await this.
|
|
4772
|
+
await this.setup();
|
|
4749
4773
|
await this.#executeEnvironments(async (context) => {
|
|
4750
4774
|
context.debug(`Initializing the processing options for the Powerlines project.`);
|
|
4751
4775
|
await this.callHook("configResolved", {
|
|
@@ -4765,12 +4789,23 @@ ${formatTypes(code)}
|
|
|
4765
4789
|
environment: context,
|
|
4766
4790
|
order: "post"
|
|
4767
4791
|
});
|
|
4768
|
-
context.trace(
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4792
|
+
context.trace({
|
|
4793
|
+
meta: { category: "config" },
|
|
4794
|
+
message: `Powerlines configuration after configResolved hook: \n${(0, _storm_software_config_tools_logger_console.formatLogMessage)({
|
|
4795
|
+
...(0, _stryke_helpers_omit.omit)(context.config, [
|
|
4796
|
+
"inlineConfig",
|
|
4797
|
+
"userConfig",
|
|
4798
|
+
"initialConfig",
|
|
4799
|
+
"pluginConfig",
|
|
4800
|
+
"plugins"
|
|
4801
|
+
]),
|
|
4802
|
+
plugins: context.plugins.map((plugin) => plugin.plugin.name),
|
|
4803
|
+
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(context.config.inlineConfig, ["plugins"]) : void 0,
|
|
4804
|
+
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.userConfig) ? (0, _stryke_helpers_omit.omit)(context.config.userConfig, ["plugins"]) : void 0,
|
|
4805
|
+
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(context.config.initialConfig, ["plugins"]) : void 0,
|
|
4806
|
+
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(context.config.pluginConfig, ["plugins"]) : void 0
|
|
4807
|
+
})}`
|
|
4808
|
+
});
|
|
4774
4809
|
if (!context.fs.existsSync(context.cachePath)) await (0, _stryke_fs_helpers.createDirectory)(context.cachePath);
|
|
4775
4810
|
if (!context.fs.existsSync(context.dataPath)) await (0, _stryke_fs_helpers.createDirectory)(context.dataPath);
|
|
4776
4811
|
await this.callHook("prepare", {
|
|
@@ -5010,29 +5045,29 @@ ${formatTypes(code)}
|
|
|
5010
5045
|
|
|
5011
5046
|
//#endregion
|
|
5012
5047
|
//#region src/_internal/worker.ts
|
|
5013
|
-
async function clean({ options,
|
|
5014
|
-
await (await PowerlinesExecution.
|
|
5048
|
+
async function clean({ options, initialConfig, inlineConfig }) {
|
|
5049
|
+
await (await PowerlinesExecution.init(options, initialConfig)).clean(inlineConfig);
|
|
5015
5050
|
}
|
|
5016
|
-
async function prepare({ options,
|
|
5017
|
-
await (await PowerlinesExecution.
|
|
5051
|
+
async function prepare({ options, initialConfig, inlineConfig }) {
|
|
5052
|
+
await (await PowerlinesExecution.init(options, initialConfig)).prepare(inlineConfig);
|
|
5018
5053
|
}
|
|
5019
|
-
async function types({ options,
|
|
5020
|
-
await (await PowerlinesExecution.
|
|
5054
|
+
async function types({ options, initialConfig, inlineConfig }) {
|
|
5055
|
+
await (await PowerlinesExecution.init(options, initialConfig)).types(inlineConfig);
|
|
5021
5056
|
}
|
|
5022
|
-
async function lint({ options,
|
|
5023
|
-
await (await PowerlinesExecution.
|
|
5057
|
+
async function lint({ options, initialConfig, inlineConfig }) {
|
|
5058
|
+
await (await PowerlinesExecution.init(options, initialConfig)).lint(inlineConfig);
|
|
5024
5059
|
}
|
|
5025
|
-
async function test({ options,
|
|
5026
|
-
await (await PowerlinesExecution.
|
|
5060
|
+
async function test({ options, initialConfig, inlineConfig }) {
|
|
5061
|
+
await (await PowerlinesExecution.init(options, initialConfig)).test(inlineConfig);
|
|
5027
5062
|
}
|
|
5028
|
-
async function build({ options,
|
|
5029
|
-
await (await PowerlinesExecution.
|
|
5063
|
+
async function build({ options, initialConfig, inlineConfig }) {
|
|
5064
|
+
await (await PowerlinesExecution.init(options, initialConfig)).build(inlineConfig);
|
|
5030
5065
|
}
|
|
5031
|
-
async function docs({ options,
|
|
5032
|
-
await (await PowerlinesExecution.
|
|
5066
|
+
async function docs({ options, initialConfig, inlineConfig }) {
|
|
5067
|
+
await (await PowerlinesExecution.init(options, initialConfig)).docs(inlineConfig);
|
|
5033
5068
|
}
|
|
5034
|
-
async function deploy({ options,
|
|
5035
|
-
await (await PowerlinesExecution.
|
|
5069
|
+
async function deploy({ options, initialConfig, inlineConfig }) {
|
|
5070
|
+
await (await PowerlinesExecution.init(options, initialConfig)).deploy(inlineConfig);
|
|
5036
5071
|
}
|
|
5037
5072
|
|
|
5038
5073
|
//#endregion
|
|
@@ -3,35 +3,43 @@ import { ExecutionWorkerParams } from "@powerlines/core";
|
|
|
3
3
|
//#region src/_internal/worker.d.ts
|
|
4
4
|
declare function clean({
|
|
5
5
|
options,
|
|
6
|
-
|
|
6
|
+
initialConfig,
|
|
7
|
+
inlineConfig
|
|
7
8
|
}: ExecutionWorkerParams): Promise<void>;
|
|
8
9
|
declare function prepare({
|
|
9
10
|
options,
|
|
10
|
-
|
|
11
|
+
initialConfig,
|
|
12
|
+
inlineConfig
|
|
11
13
|
}: ExecutionWorkerParams): Promise<void>;
|
|
12
14
|
declare function types({
|
|
13
15
|
options,
|
|
14
|
-
|
|
16
|
+
initialConfig,
|
|
17
|
+
inlineConfig
|
|
15
18
|
}: ExecutionWorkerParams): Promise<void>;
|
|
16
19
|
declare function lint({
|
|
17
20
|
options,
|
|
18
|
-
|
|
21
|
+
initialConfig,
|
|
22
|
+
inlineConfig
|
|
19
23
|
}: ExecutionWorkerParams): Promise<void>;
|
|
20
24
|
declare function test({
|
|
21
25
|
options,
|
|
22
|
-
|
|
26
|
+
initialConfig,
|
|
27
|
+
inlineConfig
|
|
23
28
|
}: ExecutionWorkerParams): Promise<void>;
|
|
24
29
|
declare function build({
|
|
25
30
|
options,
|
|
26
|
-
|
|
31
|
+
initialConfig,
|
|
32
|
+
inlineConfig
|
|
27
33
|
}: ExecutionWorkerParams): Promise<void>;
|
|
28
34
|
declare function docs({
|
|
29
35
|
options,
|
|
30
|
-
|
|
36
|
+
initialConfig,
|
|
37
|
+
inlineConfig
|
|
31
38
|
}: ExecutionWorkerParams): Promise<void>;
|
|
32
39
|
declare function deploy({
|
|
33
40
|
options,
|
|
34
|
-
|
|
41
|
+
initialConfig,
|
|
42
|
+
inlineConfig
|
|
35
43
|
}: ExecutionWorkerParams): Promise<void>;
|
|
36
44
|
//#endregion
|
|
37
45
|
export { build, clean, deploy, docs, lint, prepare, test, types };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.cts","names":[],"sources":["../../src/_internal/worker.ts"],"mappings":";;;iBAgCsB,KAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,OAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,MAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA"}
|
|
1
|
+
{"version":3,"file":"worker.d.cts","names":[],"sources":["../../src/_internal/worker.ts"],"mappings":";;;iBAgCsB,KAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,OAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,MAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA"}
|
|
@@ -3,35 +3,43 @@ import { ExecutionWorkerParams } from "@powerlines/core";
|
|
|
3
3
|
//#region src/_internal/worker.d.ts
|
|
4
4
|
declare function clean({
|
|
5
5
|
options,
|
|
6
|
-
|
|
6
|
+
initialConfig,
|
|
7
|
+
inlineConfig
|
|
7
8
|
}: ExecutionWorkerParams): Promise<void>;
|
|
8
9
|
declare function prepare({
|
|
9
10
|
options,
|
|
10
|
-
|
|
11
|
+
initialConfig,
|
|
12
|
+
inlineConfig
|
|
11
13
|
}: ExecutionWorkerParams): Promise<void>;
|
|
12
14
|
declare function types({
|
|
13
15
|
options,
|
|
14
|
-
|
|
16
|
+
initialConfig,
|
|
17
|
+
inlineConfig
|
|
15
18
|
}: ExecutionWorkerParams): Promise<void>;
|
|
16
19
|
declare function lint({
|
|
17
20
|
options,
|
|
18
|
-
|
|
21
|
+
initialConfig,
|
|
22
|
+
inlineConfig
|
|
19
23
|
}: ExecutionWorkerParams): Promise<void>;
|
|
20
24
|
declare function test({
|
|
21
25
|
options,
|
|
22
|
-
|
|
26
|
+
initialConfig,
|
|
27
|
+
inlineConfig
|
|
23
28
|
}: ExecutionWorkerParams): Promise<void>;
|
|
24
29
|
declare function build({
|
|
25
30
|
options,
|
|
26
|
-
|
|
31
|
+
initialConfig,
|
|
32
|
+
inlineConfig
|
|
27
33
|
}: ExecutionWorkerParams): Promise<void>;
|
|
28
34
|
declare function docs({
|
|
29
35
|
options,
|
|
30
|
-
|
|
36
|
+
initialConfig,
|
|
37
|
+
inlineConfig
|
|
31
38
|
}: ExecutionWorkerParams): Promise<void>;
|
|
32
39
|
declare function deploy({
|
|
33
40
|
options,
|
|
34
|
-
|
|
41
|
+
initialConfig,
|
|
42
|
+
inlineConfig
|
|
35
43
|
}: ExecutionWorkerParams): Promise<void>;
|
|
36
44
|
//#endregion
|
|
37
45
|
export { build, clean, deploy, docs, lint, prepare, test, types };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.mts","names":[],"sources":["../../src/_internal/worker.ts"],"mappings":";;;iBAgCsB,KAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,OAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,MAAA,CAAA;EACpB,OAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA"}
|
|
1
|
+
{"version":3,"file":"worker.d.mts","names":[],"sources":["../../src/_internal/worker.ts"],"mappings":";;;iBAgCsB,KAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,OAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,KAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,IAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA;AAAA,iBAML,MAAA,CAAA;EACpB,OAAA;EACA,aAAA;EACA;AAAA,GACC,qBAAA,GAAwB,OAAA"}
|