@powerlines/engine 0.44.3 → 0.44.5
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 +18 -22
- package/dist/_internal/worker.mjs +18 -22
- 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.d.cts.map +1 -1
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{execution-context-BoJhCK0d.cjs → execution-context-DMKQgUvW.cjs} +18 -22
- package/dist/{execution-context-CFJst4Fz.mjs → execution-context-FJlgn1f3.mjs} +19 -23
- package/dist/execution-context-FJlgn1f3.mjs.map +1 -0
- package/package.json +3 -3
- package/dist/execution-context-CFJst4Fz.mjs.map +0 -1
|
@@ -148,7 +148,7 @@ function createDefaultEnvironment(config = {}) {
|
|
|
148
148
|
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/_internal/helpers/context.ts
|
|
151
|
-
function getConfigProps(config = {}
|
|
151
|
+
function getConfigProps(config = {}) {
|
|
152
152
|
return {
|
|
153
153
|
name: config.name,
|
|
154
154
|
title: config.title,
|
|
@@ -165,11 +165,7 @@ function getConfigProps(config = {}, root, cwd) {
|
|
|
165
165
|
mode: config.mode,
|
|
166
166
|
resolve: config.resolve,
|
|
167
167
|
framework: config.framework,
|
|
168
|
-
...config
|
|
169
|
-
output: {
|
|
170
|
-
...config.output ?? {},
|
|
171
|
-
path: config.output?.path ? (0, _stryke_path_append.appendPath)(config.output.path, (0, _stryke_path_append.appendPath)(root, cwd)) : void 0
|
|
172
|
-
}
|
|
168
|
+
...config
|
|
173
169
|
};
|
|
174
170
|
}
|
|
175
171
|
|
|
@@ -3087,7 +3083,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3087
3083
|
inlineConfig: this.config.inlineConfig ?? {},
|
|
3088
3084
|
userConfig: this.config.userConfig ?? {},
|
|
3089
3085
|
pluginConfig: this.config.pluginConfig ?? {}
|
|
3090
|
-
}, this.options,
|
|
3086
|
+
}, this.options, getConfigProps(this.config.inlineConfig), getConfigProps(this.config.userConfig), getConfigProps(this.config.pluginConfig), {
|
|
3091
3087
|
name: this.projectJson?.name || this.packageJson?.name,
|
|
3092
3088
|
version: this.packageJson?.version,
|
|
3093
3089
|
description: this.packageJson?.description
|
|
@@ -3161,6 +3157,21 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3161
3157
|
*/
|
|
3162
3158
|
async innerSetup() {
|
|
3163
3159
|
const logger = this.extendLogger({ category: "config" });
|
|
3160
|
+
this.config.output = (0, defu.default)(this.config.output ?? {}, {
|
|
3161
|
+
copy: { assets: [
|
|
3162
|
+
{ glob: "LICENSE" },
|
|
3163
|
+
{
|
|
3164
|
+
input: this.config.root,
|
|
3165
|
+
glob: "*.md"
|
|
3166
|
+
},
|
|
3167
|
+
{
|
|
3168
|
+
input: this.config.root,
|
|
3169
|
+
glob: "package.json"
|
|
3170
|
+
}
|
|
3171
|
+
] },
|
|
3172
|
+
artifactsPath: `.${this.config.framework ?? "powerlines"}`,
|
|
3173
|
+
dts: true
|
|
3174
|
+
});
|
|
3164
3175
|
logger.trace(`Pre-setup Powerlines configuration object: \n${JSON.stringify({
|
|
3165
3176
|
...(0, _stryke_helpers_omit.omit)(this.config, ["plugins"]),
|
|
3166
3177
|
userConfig: this.config.userConfig ? (0, _stryke_helpers_omit.omit)(this.config.userConfig, ["plugins"]) : {},
|
|
@@ -3193,21 +3204,6 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3193
3204
|
else this.config.logLevel = _powerlines_core_constants.DEFAULT_PRODUCTION_LOG_LEVEL;
|
|
3194
3205
|
if (!this.config.userConfig?.tsconfig && !this.config.inlineConfig?.tsconfig) this.config.tsconfig = getTsconfigFilePath(this.config.cwd, this.config.root);
|
|
3195
3206
|
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);
|
|
3196
|
-
this.config.output = (0, defu.default)(this.config.output ?? {}, {
|
|
3197
|
-
copy: { assets: [
|
|
3198
|
-
{ glob: "LICENSE" },
|
|
3199
|
-
{
|
|
3200
|
-
input: this.config.root,
|
|
3201
|
-
glob: "*.md"
|
|
3202
|
-
},
|
|
3203
|
-
{
|
|
3204
|
-
input: this.config.root,
|
|
3205
|
-
glob: "package.json"
|
|
3206
|
-
}
|
|
3207
|
-
] },
|
|
3208
|
-
artifactsPath: `.${this.config.framework ?? "powerlines"}`,
|
|
3209
|
-
dts: true
|
|
3210
|
-
});
|
|
3211
3207
|
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"])));
|
|
3212
3208
|
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);
|
|
3213
3209
|
else this.config.output.path = (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(this.config.root, "dist"), this.config.cwd);
|
|
@@ -115,7 +115,7 @@ function createDefaultEnvironment(config = {}) {
|
|
|
115
115
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/_internal/helpers/context.ts
|
|
118
|
-
function getConfigProps(config = {}
|
|
118
|
+
function getConfigProps(config = {}) {
|
|
119
119
|
return {
|
|
120
120
|
name: config.name,
|
|
121
121
|
title: config.title,
|
|
@@ -132,11 +132,7 @@ function getConfigProps(config = {}, root, cwd) {
|
|
|
132
132
|
mode: config.mode,
|
|
133
133
|
resolve: config.resolve,
|
|
134
134
|
framework: config.framework,
|
|
135
|
-
...config
|
|
136
|
-
output: {
|
|
137
|
-
...config.output ?? {},
|
|
138
|
-
path: config.output?.path ? appendPath(config.output.path, appendPath(root, cwd)) : void 0
|
|
139
|
-
}
|
|
135
|
+
...config
|
|
140
136
|
};
|
|
141
137
|
}
|
|
142
138
|
|
|
@@ -3054,7 +3050,7 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3054
3050
|
inlineConfig: this.config.inlineConfig ?? {},
|
|
3055
3051
|
userConfig: this.config.userConfig ?? {},
|
|
3056
3052
|
pluginConfig: this.config.pluginConfig ?? {}
|
|
3057
|
-
}, this.options,
|
|
3053
|
+
}, this.options, getConfigProps(this.config.inlineConfig), getConfigProps(this.config.userConfig), getConfigProps(this.config.pluginConfig), {
|
|
3058
3054
|
name: this.projectJson?.name || this.packageJson?.name,
|
|
3059
3055
|
version: this.packageJson?.version,
|
|
3060
3056
|
description: this.packageJson?.description
|
|
@@ -3128,6 +3124,21 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3128
3124
|
*/
|
|
3129
3125
|
async innerSetup() {
|
|
3130
3126
|
const logger = this.extendLogger({ category: "config" });
|
|
3127
|
+
this.config.output = defu(this.config.output ?? {}, {
|
|
3128
|
+
copy: { assets: [
|
|
3129
|
+
{ glob: "LICENSE" },
|
|
3130
|
+
{
|
|
3131
|
+
input: this.config.root,
|
|
3132
|
+
glob: "*.md"
|
|
3133
|
+
},
|
|
3134
|
+
{
|
|
3135
|
+
input: this.config.root,
|
|
3136
|
+
glob: "package.json"
|
|
3137
|
+
}
|
|
3138
|
+
] },
|
|
3139
|
+
artifactsPath: `.${this.config.framework ?? "powerlines"}`,
|
|
3140
|
+
dts: true
|
|
3141
|
+
});
|
|
3131
3142
|
logger.trace(`Pre-setup Powerlines configuration object: \n${JSON.stringify({
|
|
3132
3143
|
...omit(this.config, ["plugins"]),
|
|
3133
3144
|
userConfig: this.config.userConfig ? omit(this.config.userConfig, ["plugins"]) : {},
|
|
@@ -3160,21 +3171,6 @@ var PowerlinesContext = class PowerlinesContext extends PowerlinesBaseContext {
|
|
|
3160
3171
|
else this.config.logLevel = DEFAULT_PRODUCTION_LOG_LEVEL;
|
|
3161
3172
|
if (!this.config.userConfig?.tsconfig && !this.config.inlineConfig?.tsconfig) this.config.tsconfig = getTsconfigFilePath(this.config.cwd, this.config.root);
|
|
3162
3173
|
else if (this.config.tsconfig) this.config.tsconfig = replacePath(replacePathTokens(this, this.config.tsconfig), this.config.cwd);
|
|
3163
|
-
this.config.output = defu(this.config.output ?? {}, {
|
|
3164
|
-
copy: { assets: [
|
|
3165
|
-
{ glob: "LICENSE" },
|
|
3166
|
-
{
|
|
3167
|
-
input: this.config.root,
|
|
3168
|
-
glob: "*.md"
|
|
3169
|
-
},
|
|
3170
|
-
{
|
|
3171
|
-
input: this.config.root,
|
|
3172
|
-
glob: "package.json"
|
|
3173
|
-
}
|
|
3174
|
-
] },
|
|
3175
|
-
artifactsPath: `.${this.config.framework ?? "powerlines"}`,
|
|
3176
|
-
dts: true
|
|
3177
|
-
});
|
|
3178
3174
|
this.config.output.format = getUnique(toArray(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
|
|
3179
3175
|
if (this.config.output.path) this.config.output.path = appendPath(replacePathTokens(this, this.config.output.path), this.config.cwd);
|
|
3180
3176
|
else this.config.output.path = appendPath(joinPaths$1(this.config.root, "dist"), this.config.cwd);
|