@kody-ade/kody-engine-lite 0.1.143 → 0.1.144
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/bin/cli.js +8 -2
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -5373,8 +5373,14 @@ async function executeAgentStage(ctx, def) {
|
|
|
5373
5373
|
if (ds && devServerStages.includes(def.name) && taskHasUI(ctx.taskDir)) {
|
|
5374
5374
|
logger.info(` Starting dev server: ${ds.command}`);
|
|
5375
5375
|
const envVars = {};
|
|
5376
|
-
|
|
5377
|
-
|
|
5376
|
+
if (ds.env && ds.env.length > 0) {
|
|
5377
|
+
for (const varName of ds.env) {
|
|
5378
|
+
if (process.env[varName]) envVars[varName] = process.env[varName];
|
|
5379
|
+
}
|
|
5380
|
+
} else {
|
|
5381
|
+
for (const [k, v] of Object.entries(process.env)) {
|
|
5382
|
+
if (v !== void 0) envVars[k] = v;
|
|
5383
|
+
}
|
|
5378
5384
|
}
|
|
5379
5385
|
devServerHandle = await startDevServer({
|
|
5380
5386
|
command: ds.command,
|