@powerlines/engine 0.44.12 → 0.45.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 +143 -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 +144 -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-D9Enw3J5.mjs → execution-context-O6eXdsCn.mjs} +65 -50
- package/dist/execution-context-O6eXdsCn.mjs.map +1 -0
- package/dist/{execution-context-C-M-Mxse.cjs → execution-context-SXtPe9Ae.cjs} +63 -48
- 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,14 @@ 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
|
+
inlineConfig: {},
|
|
3218
|
+
pluginConfig: {},
|
|
3219
|
+
initialConfig,
|
|
3206
3220
|
userConfig
|
|
3207
3221
|
};
|
|
3208
3222
|
}
|
|
@@ -3225,28 +3239,33 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3225
3239
|
] },
|
|
3226
3240
|
dts: true
|
|
3227
3241
|
});
|
|
3228
|
-
logger.trace(`Pre-setup Powerlines configuration object: \n${
|
|
3229
|
-
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3242
|
+
logger.trace(`Pre-setup Powerlines configuration object: \n${(0, _storm_software_config_tools_logger_console.formatLogMessage)({
|
|
3243
|
+
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3244
|
+
"inlineConfig",
|
|
3245
|
+
"userConfig",
|
|
3246
|
+
"initialConfig",
|
|
3247
|
+
"pluginConfig",
|
|
3248
|
+
"plugins"
|
|
3249
|
+
]),
|
|
3250
|
+
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(this.config.inlineConfig, ["plugins"]) : void 0,
|
|
3251
|
+
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.userConfig) ? (0, _stryke_helpers_omit.omit)(this.config.userConfig, ["plugins"]) : void 0,
|
|
3252
|
+
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(this.config.initialConfig, ["plugins"]) : void 0,
|
|
3253
|
+
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(this.config.pluginConfig, ["plugins"]) : void 0
|
|
3254
|
+
})}`);
|
|
3255
|
+
if (!this.initialOptions.mode && !this.config.userConfig?.mode && !this.config.inlineConfig?.mode && !this.config.initialConfig?.mode && !this.config.pluginConfig?.mode) {
|
|
3235
3256
|
this.options.mode = "production";
|
|
3236
3257
|
this.config.mode = "production";
|
|
3237
3258
|
}
|
|
3238
|
-
if (!this.
|
|
3259
|
+
if (!this.initialOptions.framework && !this.config.userConfig?.framework && !this.config.inlineConfig?.framework && !this.config.initialConfig?.framework && !this.config.pluginConfig?.framework) {
|
|
3239
3260
|
this.options.framework = "powerlines";
|
|
3240
3261
|
this.config.framework = "powerlines";
|
|
3241
3262
|
}
|
|
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.
|
|
3263
|
+
if (!this.config.userConfig?.projectType && !this.config.inlineConfig?.projectType && !this.config.initialConfig?.projectType && !this.config.pluginConfig?.projectType) this.config.projectType = "application";
|
|
3264
|
+
if (!this.config.userConfig?.platform && !this.config.inlineConfig?.platform && !this.config.initialConfig?.platform && !this.config.pluginConfig?.platform) this.config.platform = "neutral";
|
|
3265
|
+
this.config.compatibilityDate = (0, compatx.resolveCompatibilityDates)(this.config.inlineConfig.compatibilityDate ?? this.config.userConfig.compatibilityDate ?? this.config.initialConfig.compatibilityDate ?? this.config.pluginConfig.compatibilityDate, "latest");
|
|
3245
3266
|
this.config.input = (0, _powerlines_core_lib_entry.getUniqueInputs)(this.config.input);
|
|
3246
3267
|
if (this.config.name?.startsWith("@") && this.config.name.split("/").filter(Boolean).length > 1) this.config.name = this.config.name.split("/").filter(Boolean)[1];
|
|
3247
3268
|
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
3269
|
if (this.config.resolve.external) this.config.resolve.external = (0, _stryke_helpers_get_unique.getUnique)(this.config.resolve.external);
|
|
3251
3270
|
if (this.config.resolve.noExternal) this.config.resolve.noExternal = (0, _stryke_helpers_get_unique.getUnique)(this.config.resolve.noExternal);
|
|
3252
3271
|
this.config.plugins = (this.config.plugins ?? []).flatMap((plugin) => (0, _stryke_convert_to_array.toArray)(plugin)).filter(Boolean).reduce((ret, plugin) => {
|
|
@@ -3254,10 +3273,10 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3254
3273
|
ret.push(plugin);
|
|
3255
3274
|
return ret;
|
|
3256
3275
|
}, []);
|
|
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;
|
|
3276
|
+
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
3277
|
else if (this.config.mode === "test") this.config.logLevel = _powerlines_core_constants.DEFAULT_TEST_LOG_LEVEL;
|
|
3259
3278
|
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);
|
|
3279
|
+
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
3280
|
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
3281
|
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
3282
|
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 +3286,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3267
3286
|
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
3287
|
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
3288
|
}
|
|
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);
|
|
3289
|
+
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
3290
|
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
3291
|
return {
|
|
3273
3292
|
glob: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) ? asset.glob : asset,
|
|
@@ -3276,11 +3295,11 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3276
3295
|
ignore: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.ignore ? (0, _stryke_convert_to_array.toArray)(asset.ignore) : void 0
|
|
3277
3296
|
};
|
|
3278
3297
|
}), (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;
|
|
3298
|
+
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
3299
|
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;
|
|
3300
|
+
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
3301
|
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"}`;
|
|
3302
|
+
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
3303
|
if (this.config.output.copy && this.config.output.copy.assets) this.config.output.copy.assets = this.config.output.copy.assets.map((asset) => ({
|
|
3285
3304
|
...asset,
|
|
3286
3305
|
glob: (0, _powerlines_core_plugin_utils.replacePathTokens)(this, asset.glob),
|
|
@@ -3290,24 +3309,24 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3290
3309
|
}));
|
|
3291
3310
|
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
3311
|
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
|
-
|
|
3312
|
+
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)({
|
|
3313
|
+
...(0, _stryke_helpers_omit.omit)(this.config, [
|
|
3314
|
+
"inlineConfig",
|
|
3315
|
+
"userConfig",
|
|
3316
|
+
"initialConfig",
|
|
3317
|
+
"pluginConfig",
|
|
3318
|
+
"plugins"
|
|
3319
|
+
]),
|
|
3320
|
+
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(this.config.inlineConfig, ["plugins"]) : void 0,
|
|
3321
|
+
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.userConfig) ? (0, _stryke_helpers_omit.omit)(this.config.userConfig, ["plugins"]) : void 0,
|
|
3322
|
+
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(this.config.initialConfig, ["plugins"]) : void 0,
|
|
3323
|
+
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(this.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(this.config.pluginConfig, ["plugins"]) : void 0
|
|
3324
|
+
})}`);
|
|
3299
3325
|
}
|
|
3300
3326
|
};
|
|
3301
3327
|
|
|
3302
3328
|
//#endregion
|
|
3303
3329
|
//#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
3330
|
/**
|
|
3312
3331
|
* Merges the current hook result with the previous results based on their types.
|
|
3313
3332
|
*
|
|
@@ -3318,7 +3337,7 @@ const mergeResultObjects = (0, defu.createDefu)((obj, key, value) => {
|
|
|
3318
3337
|
function mergeResults(currentResult, previousResults) {
|
|
3319
3338
|
if (!previousResults || previousResults.length === 0) return [currentResult];
|
|
3320
3339
|
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 = [
|
|
3340
|
+
else if ((0, _stryke_type_checks_is_object.isObject)(currentResult)) previousResults = previousResults.length > 0 ? [(0, defu.defu)(currentResult, previousResults[0])] : [currentResult];
|
|
3322
3341
|
return previousResults;
|
|
3323
3342
|
}
|
|
3324
3343
|
/**
|
|
@@ -3696,9 +3715,9 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3696
3715
|
* @param options - The options for resolving the context.
|
|
3697
3716
|
* @returns A promise that resolves to the new context.
|
|
3698
3717
|
*/
|
|
3699
|
-
static async
|
|
3718
|
+
static async init(options, initialConfig) {
|
|
3700
3719
|
const context = new PowerlinesExecutionContext(options);
|
|
3701
|
-
await context.init(options);
|
|
3720
|
+
await context.init(options, initialConfig);
|
|
3702
3721
|
const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
|
|
3703
3722
|
if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
|
|
3704
3723
|
context.powerlinesPath = powerlinesPath;
|
|
@@ -3710,10 +3729,10 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3710
3729
|
* @param options - The options for resolving the context.
|
|
3711
3730
|
* @returns A promise that resolves to the new context.
|
|
3712
3731
|
*/
|
|
3713
|
-
static async
|
|
3732
|
+
static async inline(options, initialConfig, inlineConfig) {
|
|
3714
3733
|
const context = new PowerlinesExecutionContext(options);
|
|
3715
|
-
await context.init(options);
|
|
3716
|
-
context.config.inlineConfig =
|
|
3734
|
+
await context.init(options, initialConfig);
|
|
3735
|
+
context.config.inlineConfig = inlineConfig;
|
|
3717
3736
|
if (context.config.inlineConfig.command === "new") {
|
|
3718
3737
|
const workspacePackageJsonPath = (0, _stryke_path_join.joinPaths)(context.config.cwd, "package.json");
|
|
3719
3738
|
if (!(0, _stryke_fs_exists.existsSync)(workspacePackageJsonPath)) throw new Error(`The workspace package.json file could not be found at ${workspacePackageJsonPath}`);
|
|
@@ -3807,8 +3826,9 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3807
3826
|
* @returns A promise that resolves to the cloned context.
|
|
3808
3827
|
*/
|
|
3809
3828
|
async clone() {
|
|
3810
|
-
const clone = await PowerlinesExecutionContext.
|
|
3829
|
+
const clone = await PowerlinesExecutionContext.init(this.options, this.initialConfig);
|
|
3811
3830
|
clone.config.userConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.userConfig);
|
|
3831
|
+
clone.config.initialConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.initialConfig);
|
|
3812
3832
|
clone.config.inlineConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.inlineConfig);
|
|
3813
3833
|
clone.config.pluginConfig = (0, _stryke_helpers_deep_clone.deepClone)(this.config.pluginConfig);
|
|
3814
3834
|
await clone.setup();
|
|
@@ -4640,47 +4660,53 @@ ${formatTypes(code)}
|
|
|
4640
4660
|
`);
|
|
4641
4661
|
}
|
|
4642
4662
|
/**
|
|
4663
|
+
* Initialize a Powerlines API instance
|
|
4664
|
+
*
|
|
4665
|
+
* @param options - The options to initialize the API with
|
|
4666
|
+
* @returns A new instance of the Powerlines API
|
|
4667
|
+
*/
|
|
4668
|
+
static async init(options, initialConfig) {
|
|
4669
|
+
const api = new PowerlinesExecution(await PowerlinesExecutionContext.init(options, initialConfig ?? {}));
|
|
4670
|
+
api.#context.config.initialConfig = initialConfig ?? {};
|
|
4671
|
+
await api.setup();
|
|
4672
|
+
return api;
|
|
4673
|
+
}
|
|
4674
|
+
/**
|
|
4643
4675
|
* The Powerlines context
|
|
4644
4676
|
*/
|
|
4645
4677
|
get context() {
|
|
4646
4678
|
return this.#context;
|
|
4647
4679
|
}
|
|
4648
4680
|
/**
|
|
4649
|
-
* Initialize
|
|
4650
|
-
*
|
|
4651
|
-
* @param options - The options to initialize the API with
|
|
4652
|
-
* @returns A new instance of the Powerlines API
|
|
4681
|
+
* Initialize the execution API with the provided configuration options
|
|
4653
4682
|
*/
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
api,
|
|
4660
|
-
addPlugin: api.addPlugin.bind(api)
|
|
4683
|
+
async setup() {
|
|
4684
|
+
await this.#context.setup();
|
|
4685
|
+
this.#context.$$internal = {
|
|
4686
|
+
api: this,
|
|
4687
|
+
addPlugin: this.addPlugin.bind(this)
|
|
4661
4688
|
};
|
|
4662
|
-
const timer =
|
|
4663
|
-
for (const plugin of
|
|
4664
|
-
if (
|
|
4689
|
+
const timer = this.#context.timer("Initialization");
|
|
4690
|
+
for (const plugin of this.#context.config.plugins.flatMap((p) => (0, _stryke_convert_to_array.toArray)(p)) ?? []) await this.addPlugin(plugin);
|
|
4691
|
+
if (this.#context.plugins.length === 0) this.#context.warn({
|
|
4665
4692
|
meta: { category: "plugins" },
|
|
4666
4693
|
message: "No Powerlines plugins were specified in the options. Please ensure this is correct, as it is generally not recommended."
|
|
4667
4694
|
});
|
|
4668
|
-
else
|
|
4695
|
+
else this.#context.info({
|
|
4669
4696
|
meta: { category: "plugins" },
|
|
4670
|
-
message: `Loaded ${
|
|
4697
|
+
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
4698
|
});
|
|
4672
|
-
const pluginConfig = await
|
|
4673
|
-
environment: await
|
|
4699
|
+
const pluginConfig = await this.callHook("config", {
|
|
4700
|
+
environment: await this.#context.getEnvironment(),
|
|
4674
4701
|
sequential: true,
|
|
4675
4702
|
result: "merge",
|
|
4676
4703
|
merge: mergeConfigs
|
|
4677
4704
|
});
|
|
4678
4705
|
if (pluginConfig) {
|
|
4679
|
-
|
|
4680
|
-
await
|
|
4706
|
+
this.#context.config.pluginConfig = pluginConfig;
|
|
4707
|
+
await this.#context.setup();
|
|
4681
4708
|
}
|
|
4682
4709
|
timer();
|
|
4683
|
-
return api;
|
|
4684
4710
|
}
|
|
4685
4711
|
/**
|
|
4686
4712
|
* Generate the Powerlines typescript declaration file
|
|
@@ -4694,7 +4720,7 @@ ${formatTypes(code)}
|
|
|
4694
4720
|
this.context.debug(" Aggregating configuration options for the Powerlines project");
|
|
4695
4721
|
inlineConfig.command ??= "types";
|
|
4696
4722
|
this.context.config.inlineConfig = inlineConfig;
|
|
4697
|
-
await this.
|
|
4723
|
+
await this.setup();
|
|
4698
4724
|
await this.#executeEnvironments(async (context) => {
|
|
4699
4725
|
context.debug(`Initializing the processing options for the Powerlines project.`);
|
|
4700
4726
|
await this.callHook("configResolved", {
|
|
@@ -4745,7 +4771,7 @@ ${formatTypes(code)}
|
|
|
4745
4771
|
async prepare(inlineConfig = { command: "prepare" }) {
|
|
4746
4772
|
inlineConfig.command ??= "prepare";
|
|
4747
4773
|
this.context.config.inlineConfig = inlineConfig;
|
|
4748
|
-
await this.
|
|
4774
|
+
await this.setup();
|
|
4749
4775
|
await this.#executeEnvironments(async (context) => {
|
|
4750
4776
|
context.debug(`Initializing the processing options for the Powerlines project.`);
|
|
4751
4777
|
await this.callHook("configResolved", {
|
|
@@ -4765,12 +4791,23 @@ ${formatTypes(code)}
|
|
|
4765
4791
|
environment: context,
|
|
4766
4792
|
order: "post"
|
|
4767
4793
|
});
|
|
4768
|
-
context.trace(
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4794
|
+
context.trace({
|
|
4795
|
+
meta: { category: "config" },
|
|
4796
|
+
message: `Powerlines configuration after configResolved hook: \n${(0, _storm_software_config_tools_logger_console.formatLogMessage)({
|
|
4797
|
+
...(0, _stryke_helpers_omit.omit)(context.config, [
|
|
4798
|
+
"inlineConfig",
|
|
4799
|
+
"userConfig",
|
|
4800
|
+
"initialConfig",
|
|
4801
|
+
"pluginConfig",
|
|
4802
|
+
"plugins"
|
|
4803
|
+
]),
|
|
4804
|
+
plugins: context.plugins.map((plugin) => plugin.plugin.name),
|
|
4805
|
+
inlineConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.inlineConfig) ? (0, _stryke_helpers_omit.omit)(context.config.inlineConfig, ["plugins"]) : void 0,
|
|
4806
|
+
userConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.userConfig) ? (0, _stryke_helpers_omit.omit)(context.config.userConfig, ["plugins"]) : void 0,
|
|
4807
|
+
initialConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.initialConfig) ? (0, _stryke_helpers_omit.omit)(context.config.initialConfig, ["plugins"]) : void 0,
|
|
4808
|
+
pluginConfig: (0, _stryke_type_checks_is_set_object.isSetObject)(context.config.pluginConfig) ? (0, _stryke_helpers_omit.omit)(context.config.pluginConfig, ["plugins"]) : void 0
|
|
4809
|
+
})}`
|
|
4810
|
+
});
|
|
4774
4811
|
if (!context.fs.existsSync(context.cachePath)) await (0, _stryke_fs_helpers.createDirectory)(context.cachePath);
|
|
4775
4812
|
if (!context.fs.existsSync(context.dataPath)) await (0, _stryke_fs_helpers.createDirectory)(context.dataPath);
|
|
4776
4813
|
await this.callHook("prepare", {
|
|
@@ -5010,29 +5047,29 @@ ${formatTypes(code)}
|
|
|
5010
5047
|
|
|
5011
5048
|
//#endregion
|
|
5012
5049
|
//#region src/_internal/worker.ts
|
|
5013
|
-
async function clean({ options,
|
|
5014
|
-
await (await PowerlinesExecution.
|
|
5050
|
+
async function clean({ options, initialConfig, inlineConfig }) {
|
|
5051
|
+
await (await PowerlinesExecution.init(options, initialConfig)).clean(inlineConfig);
|
|
5015
5052
|
}
|
|
5016
|
-
async function prepare({ options,
|
|
5017
|
-
await (await PowerlinesExecution.
|
|
5053
|
+
async function prepare({ options, initialConfig, inlineConfig }) {
|
|
5054
|
+
await (await PowerlinesExecution.init(options, initialConfig)).prepare(inlineConfig);
|
|
5018
5055
|
}
|
|
5019
|
-
async function types({ options,
|
|
5020
|
-
await (await PowerlinesExecution.
|
|
5056
|
+
async function types({ options, initialConfig, inlineConfig }) {
|
|
5057
|
+
await (await PowerlinesExecution.init(options, initialConfig)).types(inlineConfig);
|
|
5021
5058
|
}
|
|
5022
|
-
async function lint({ options,
|
|
5023
|
-
await (await PowerlinesExecution.
|
|
5059
|
+
async function lint({ options, initialConfig, inlineConfig }) {
|
|
5060
|
+
await (await PowerlinesExecution.init(options, initialConfig)).lint(inlineConfig);
|
|
5024
5061
|
}
|
|
5025
|
-
async function test({ options,
|
|
5026
|
-
await (await PowerlinesExecution.
|
|
5062
|
+
async function test({ options, initialConfig, inlineConfig }) {
|
|
5063
|
+
await (await PowerlinesExecution.init(options, initialConfig)).test(inlineConfig);
|
|
5027
5064
|
}
|
|
5028
|
-
async function build({ options,
|
|
5029
|
-
await (await PowerlinesExecution.
|
|
5065
|
+
async function build({ options, initialConfig, inlineConfig }) {
|
|
5066
|
+
await (await PowerlinesExecution.init(options, initialConfig)).build(inlineConfig);
|
|
5030
5067
|
}
|
|
5031
|
-
async function docs({ options,
|
|
5032
|
-
await (await PowerlinesExecution.
|
|
5068
|
+
async function docs({ options, initialConfig, inlineConfig }) {
|
|
5069
|
+
await (await PowerlinesExecution.init(options, initialConfig)).docs(inlineConfig);
|
|
5033
5070
|
}
|
|
5034
|
-
async function deploy({ options,
|
|
5035
|
-
await (await PowerlinesExecution.
|
|
5071
|
+
async function deploy({ options, initialConfig, inlineConfig }) {
|
|
5072
|
+
await (await PowerlinesExecution.init(options, initialConfig)).deploy(inlineConfig);
|
|
5036
5073
|
}
|
|
5037
5074
|
|
|
5038
5075
|
//#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"}
|