@powerlines/engine 0.46.1 → 0.46.3
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 +21 -5
- package/dist/_internal/worker.mjs +21 -5
- package/dist/_internal/worker.mjs.map +1 -1
- package/dist/api.cjs +1 -1
- package/dist/api.mjs +1 -1
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/execution-context-BpRfsnkE.d.mts.map +1 -1
- package/dist/execution-context-CodQucFX.d.cts.map +1 -1
- package/dist/{execution-context-CgDuoi8o.mjs → execution-context-Cu_xPYxI.mjs} +22 -6
- package/dist/{execution-context-CgDuoi8o.mjs.map → execution-context-Cu_xPYxI.mjs.map} +1 -1
- package/dist/{execution-context-BrX9i_L8.cjs → execution-context-xj0KA802.cjs} +21 -5
- package/package.json +3 -3
|
@@ -3125,7 +3125,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3125
3125
|
* @returns A promise that resolves when the inline configuration values have been set.
|
|
3126
3126
|
*/
|
|
3127
3127
|
async setInlineConfig(config) {
|
|
3128
|
-
this.logger.
|
|
3128
|
+
this.logger.trace({
|
|
3129
3129
|
meta: { category: "config" },
|
|
3130
3130
|
message: `Updating inline configuration object: \n${this.logConfig(config)}`
|
|
3131
3131
|
});
|
|
@@ -3139,7 +3139,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3139
3139
|
* @returns A promise that resolves when the plugin configuration values have been set.
|
|
3140
3140
|
*/
|
|
3141
3141
|
async setPluginConfig(config) {
|
|
3142
|
-
this.logger.
|
|
3142
|
+
this.logger.trace({
|
|
3143
3143
|
meta: { category: "config" },
|
|
3144
3144
|
message: `Updating plugin configuration object: \n${this.logConfig(config)}`
|
|
3145
3145
|
});
|
|
@@ -3156,12 +3156,17 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3156
3156
|
mode: this.initialOptions.mode,
|
|
3157
3157
|
framework: this.initialOptions.framework,
|
|
3158
3158
|
initialOptions: this.initialOptions,
|
|
3159
|
+
logLevel: this.initialOptions.logLevel,
|
|
3159
3160
|
options: this.options,
|
|
3160
3161
|
inlineConfig: this.inlineConfig,
|
|
3161
3162
|
userConfig: this.userConfig,
|
|
3162
3163
|
initialConfig: this.initialConfig,
|
|
3163
3164
|
pluginConfig: this.pluginConfig
|
|
3164
|
-
}, getConfigProps(this.overriddenConfig), (0, _stryke_helpers_omit.omit)(this.options, [
|
|
3165
|
+
}, getConfigProps(this.overriddenConfig), (0, _stryke_helpers_omit.omit)(this.options, [
|
|
3166
|
+
"mode",
|
|
3167
|
+
"framework",
|
|
3168
|
+
"logLevel"
|
|
3169
|
+
]), getConfigProps(this.inlineConfig), getConfigProps(this.userConfig), getConfigProps(this.initialConfig), getConfigProps(this.pluginConfig), {
|
|
3165
3170
|
version: this.packageJson?.version,
|
|
3166
3171
|
description: this.packageJson?.description
|
|
3167
3172
|
}, {
|
|
@@ -3176,7 +3181,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3176
3181
|
* @returns A promise that resolves when the user configuration values have been set.
|
|
3177
3182
|
*/
|
|
3178
3183
|
async setUserConfig(config) {
|
|
3179
|
-
this.logger.
|
|
3184
|
+
this.logger.trace({
|
|
3180
3185
|
meta: { category: "config" },
|
|
3181
3186
|
message: `Updating user configuration object: \n${this.logConfig(config)}`
|
|
3182
3187
|
});
|
|
@@ -3252,6 +3257,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3252
3257
|
if (!mergedConfig.logLevel) if (mergedConfig.mode === "development") mergedConfig.logLevel = _powerlines_core_constants.DEFAULT_DEVELOPMENT_LOG_LEVEL;
|
|
3253
3258
|
else if (mergedConfig.mode === "test") mergedConfig.logLevel = _powerlines_core_constants.DEFAULT_TEST_LOG_LEVEL;
|
|
3254
3259
|
else mergedConfig.logLevel = _powerlines_core_constants.DEFAULT_PRODUCTION_LOG_LEVEL;
|
|
3260
|
+
mergedConfig.logLevel = (0, _powerlines_core_plugin_utils.resolveLogLevel)(mergedConfig.logLevel);
|
|
3255
3261
|
if (mergedConfig.tsconfig) mergedConfig.tsconfig = (0, _stryke_path_replace.replacePath)((0, _powerlines_core_plugin_utils.replacePathTokens)(this, mergedConfig.tsconfig), mergedConfig.cwd);
|
|
3256
3262
|
else mergedConfig.tsconfig = getTsconfigFilePath(mergedConfig.cwd, mergedConfig.root);
|
|
3257
3263
|
mergedConfig.output.format = (0, _stryke_helpers_get_unique.getUnique)((0, _stryke_convert_to_array.toArray)(mergedConfig.output?.format ?? (mergedConfig.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
|
|
@@ -3650,7 +3656,7 @@ var PowerlinesEnvironmentContext = class PowerlinesEnvironmentContext extends Po
|
|
|
3650
3656
|
* @returns A promise that resolves when the environment configuration values have been set.
|
|
3651
3657
|
*/
|
|
3652
3658
|
async setEnvironmentConfig(config) {
|
|
3653
|
-
this.logger.
|
|
3659
|
+
this.logger.trace({
|
|
3654
3660
|
meta: { category: "config" },
|
|
3655
3661
|
message: `Updating environment configuration object: \n${this.logConfig(config)}`
|
|
3656
3662
|
});
|
|
@@ -3751,6 +3757,7 @@ var PowerlinesEnvironmentContext = class PowerlinesEnvironmentContext extends Po
|
|
|
3751
3757
|
mergeConfig() {
|
|
3752
3758
|
return (0, _powerlines_core_plugin_utils.mergeConfig)({
|
|
3753
3759
|
...(0, _stryke_helpers_omit.omit)(this.environmentConfig ?? {}, [
|
|
3760
|
+
"name",
|
|
3754
3761
|
"ssr",
|
|
3755
3762
|
"preview",
|
|
3756
3763
|
"consumer",
|
|
@@ -3915,6 +3922,15 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3915
3922
|
for (const [key, value] of Object.entries(this)) if (![
|
|
3916
3923
|
"fs",
|
|
3917
3924
|
"$$internal",
|
|
3925
|
+
"initialOptions",
|
|
3926
|
+
"options",
|
|
3927
|
+
"config",
|
|
3928
|
+
"initialConfig",
|
|
3929
|
+
"inlineConfig",
|
|
3930
|
+
"userConfig",
|
|
3931
|
+
"pluginConfig",
|
|
3932
|
+
"overriddenConfig",
|
|
3933
|
+
"environmentConfig",
|
|
3918
3934
|
"dependencies",
|
|
3919
3935
|
"devDependencies",
|
|
3920
3936
|
"persistedMeta",
|
|
@@ -3092,7 +3092,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3092
3092
|
* @returns A promise that resolves when the inline configuration values have been set.
|
|
3093
3093
|
*/
|
|
3094
3094
|
async setInlineConfig(config) {
|
|
3095
|
-
this.logger.
|
|
3095
|
+
this.logger.trace({
|
|
3096
3096
|
meta: { category: "config" },
|
|
3097
3097
|
message: `Updating inline configuration object: \n${this.logConfig(config)}`
|
|
3098
3098
|
});
|
|
@@ -3106,7 +3106,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3106
3106
|
* @returns A promise that resolves when the plugin configuration values have been set.
|
|
3107
3107
|
*/
|
|
3108
3108
|
async setPluginConfig(config) {
|
|
3109
|
-
this.logger.
|
|
3109
|
+
this.logger.trace({
|
|
3110
3110
|
meta: { category: "config" },
|
|
3111
3111
|
message: `Updating plugin configuration object: \n${this.logConfig(config)}`
|
|
3112
3112
|
});
|
|
@@ -3123,12 +3123,17 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3123
3123
|
mode: this.initialOptions.mode,
|
|
3124
3124
|
framework: this.initialOptions.framework,
|
|
3125
3125
|
initialOptions: this.initialOptions,
|
|
3126
|
+
logLevel: this.initialOptions.logLevel,
|
|
3126
3127
|
options: this.options,
|
|
3127
3128
|
inlineConfig: this.inlineConfig,
|
|
3128
3129
|
userConfig: this.userConfig,
|
|
3129
3130
|
initialConfig: this.initialConfig,
|
|
3130
3131
|
pluginConfig: this.pluginConfig
|
|
3131
|
-
}, getConfigProps(this.overriddenConfig), omit(this.options, [
|
|
3132
|
+
}, getConfigProps(this.overriddenConfig), omit(this.options, [
|
|
3133
|
+
"mode",
|
|
3134
|
+
"framework",
|
|
3135
|
+
"logLevel"
|
|
3136
|
+
]), getConfigProps(this.inlineConfig), getConfigProps(this.userConfig), getConfigProps(this.initialConfig), getConfigProps(this.pluginConfig), {
|
|
3132
3137
|
version: this.packageJson?.version,
|
|
3133
3138
|
description: this.packageJson?.description
|
|
3134
3139
|
}, {
|
|
@@ -3143,7 +3148,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3143
3148
|
* @returns A promise that resolves when the user configuration values have been set.
|
|
3144
3149
|
*/
|
|
3145
3150
|
async setUserConfig(config) {
|
|
3146
|
-
this.logger.
|
|
3151
|
+
this.logger.trace({
|
|
3147
3152
|
meta: { category: "config" },
|
|
3148
3153
|
message: `Updating user configuration object: \n${this.logConfig(config)}`
|
|
3149
3154
|
});
|
|
@@ -3219,6 +3224,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3219
3224
|
if (!mergedConfig.logLevel) if (mergedConfig.mode === "development") mergedConfig.logLevel = DEFAULT_DEVELOPMENT_LOG_LEVEL;
|
|
3220
3225
|
else if (mergedConfig.mode === "test") mergedConfig.logLevel = DEFAULT_TEST_LOG_LEVEL;
|
|
3221
3226
|
else mergedConfig.logLevel = DEFAULT_PRODUCTION_LOG_LEVEL;
|
|
3227
|
+
mergedConfig.logLevel = resolveLogLevel(mergedConfig.logLevel);
|
|
3222
3228
|
if (mergedConfig.tsconfig) mergedConfig.tsconfig = replacePath(replacePathTokens(this, mergedConfig.tsconfig), mergedConfig.cwd);
|
|
3223
3229
|
else mergedConfig.tsconfig = getTsconfigFilePath(mergedConfig.cwd, mergedConfig.root);
|
|
3224
3230
|
mergedConfig.output.format = getUnique(toArray(mergedConfig.output?.format ?? (mergedConfig.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
|
|
@@ -3617,7 +3623,7 @@ var PowerlinesEnvironmentContext = class PowerlinesEnvironmentContext extends Po
|
|
|
3617
3623
|
* @returns A promise that resolves when the environment configuration values have been set.
|
|
3618
3624
|
*/
|
|
3619
3625
|
async setEnvironmentConfig(config) {
|
|
3620
|
-
this.logger.
|
|
3626
|
+
this.logger.trace({
|
|
3621
3627
|
meta: { category: "config" },
|
|
3622
3628
|
message: `Updating environment configuration object: \n${this.logConfig(config)}`
|
|
3623
3629
|
});
|
|
@@ -3718,6 +3724,7 @@ var PowerlinesEnvironmentContext = class PowerlinesEnvironmentContext extends Po
|
|
|
3718
3724
|
mergeConfig() {
|
|
3719
3725
|
return mergeConfig({
|
|
3720
3726
|
...omit(this.environmentConfig ?? {}, [
|
|
3727
|
+
"name",
|
|
3721
3728
|
"ssr",
|
|
3722
3729
|
"preview",
|
|
3723
3730
|
"consumer",
|
|
@@ -3882,6 +3889,15 @@ var PowerlinesExecutionContext = class PowerlinesExecutionContext extends Powerl
|
|
|
3882
3889
|
for (const [key, value] of Object.entries(this)) if (![
|
|
3883
3890
|
"fs",
|
|
3884
3891
|
"$$internal",
|
|
3892
|
+
"initialOptions",
|
|
3893
|
+
"options",
|
|
3894
|
+
"config",
|
|
3895
|
+
"initialConfig",
|
|
3896
|
+
"inlineConfig",
|
|
3897
|
+
"userConfig",
|
|
3898
|
+
"pluginConfig",
|
|
3899
|
+
"overriddenConfig",
|
|
3900
|
+
"environmentConfig",
|
|
3885
3901
|
"dependencies",
|
|
3886
3902
|
"devDependencies",
|
|
3887
3903
|
"persistedMeta",
|