staklink 0.5.5 → 0.5.7

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.
@@ -4090,7 +4090,8 @@ var Runner = class {
4090
4090
  rebuildCommand: env.REBUILD_COMMAND,
4091
4091
  port: env.PORT,
4092
4092
  label: env.LABEL,
4093
- cwd: proc4.cwd || this.cwd
4093
+ cwd: proc4.cwd || this.cwd,
4094
+ env: proc4.env
4094
4095
  };
4095
4096
  }
4096
4097
  parseProcessConfig(proc4) {
@@ -4108,7 +4109,8 @@ var Runner = class {
4108
4109
  resetCommand: env.RESET_COMMAND,
4109
4110
  port: env.PORT,
4110
4111
  label: env.LABEL,
4111
- cwd: proc4.pm2_env.pm_cwd || this.cwd
4112
+ cwd: proc4.pm2_env.pm_cwd || this.cwd,
4113
+ env: proc4.pm2_env.env
4112
4114
  };
4113
4115
  }
4114
4116
  /**
@@ -4127,7 +4129,8 @@ var Runner = class {
4127
4129
  const { stdout, stderr } = await this.executeCommand(
4128
4130
  processConfig.rebuildCommand,
4129
4131
  processConfig.cwd,
4130
- `Rebuilding ${processConfig.name}`
4132
+ `Rebuilding ${processConfig.name}`,
4133
+ processConfig.env
4131
4134
  );
4132
4135
  results[processConfig.name] = stdout || stderr;
4133
4136
  } catch (error2) {
@@ -4153,7 +4156,8 @@ var Runner = class {
4153
4156
  const { stdout, stderr } = await this.executeCommand(
4154
4157
  processConfig.installCommand,
4155
4158
  processConfig.cwd,
4156
- `Installing ${processConfig.name}`
4159
+ `Installing ${processConfig.name}`,
4160
+ processConfig.env
4157
4161
  );
4158
4162
  results[processConfig.name] = stdout || stderr;
4159
4163
  } catch (error2) {
@@ -4174,7 +4178,8 @@ var Runner = class {
4174
4178
  await this.executeCommand(
4175
4179
  processConfig.preRunCommand,
4176
4180
  processConfig.cwd,
4177
- `Pre-run command for ${processConfig.name}`
4181
+ `Pre-run command for ${processConfig.name}`,
4182
+ processConfig.env
4178
4183
  );
4179
4184
  this.log_cb(`\u2705 Pre-run command completed for ${processConfig.name}`);
4180
4185
  } catch (error2) {
@@ -4196,7 +4201,8 @@ var Runner = class {
4196
4201
  await this.executeCommand(
4197
4202
  processConfig.postRunCommand,
4198
4203
  processConfig.cwd,
4199
- `Post-run command for ${processConfig.name}`
4204
+ `Post-run command for ${processConfig.name}`,
4205
+ processConfig.env
4200
4206
  );
4201
4207
  this.log_cb(
4202
4208
  `\u2705 Post-run command completed for ${processConfig.name}`
@@ -4220,7 +4226,8 @@ var Runner = class {
4220
4226
  await this.executeCommand(
4221
4227
  processConfig.resetCommand,
4222
4228
  processConfig.cwd,
4223
- `Reset command for ${processConfig.name}`
4229
+ `Reset command for ${processConfig.name}`,
4230
+ processConfig.env
4224
4231
  );
4225
4232
  this.log_cb(`\u2705 Reset command completed for ${processConfig.name}`);
4226
4233
  } catch (error2) {
@@ -4252,7 +4259,8 @@ var Runner = class {
4252
4259
  const { stdout, stderr } = await this.executeCommand(
4253
4260
  processConfig.buildCommand,
4254
4261
  processConfig.cwd,
4255
- `Build command for ${processConfig.name}`
4262
+ `Build command for ${processConfig.name}`,
4263
+ processConfig.env
4256
4264
  );
4257
4265
  results[processConfig.name] = { stdout, stderr };
4258
4266
  this.log_cb(`\u2705 Build command completed for ${processConfig.name}`);
@@ -4283,7 +4291,8 @@ var Runner = class {
4283
4291
  const { stdout, stderr } = await this.executeCommand(
4284
4292
  processConfig.testCommand,
4285
4293
  processConfig.cwd,
4286
- `Test command for ${processConfig.name}`
4294
+ `Test command for ${processConfig.name}`,
4295
+ processConfig.env
4287
4296
  );
4288
4297
  results[processConfig.name] = { stdout, stderr };
4289
4298
  this.log_cb(`\u2705 Test command completed for ${processConfig.name}`);
@@ -4313,7 +4322,8 @@ var Runner = class {
4313
4322
  const { stdout, stderr } = await this.executeCommand(
4314
4323
  cmd,
4315
4324
  processConfig.cwd,
4316
- `E2E test command for ${processConfig.name}`
4325
+ `E2E test command for ${processConfig.name}`,
4326
+ processConfig.env
4317
4327
  );
4318
4328
  results[processConfig.name] = { stdout, stderr };
4319
4329
  this.log_cb(
@@ -4358,7 +4368,8 @@ var Runner = class {
4358
4368
  await this.executeCommand(
4359
4369
  processConfig.postRunCommand,
4360
4370
  processConfig.cwd,
4361
- `Post-run command for ${processConfig.name}`
4371
+ `Post-run command for ${processConfig.name}`,
4372
+ processConfig.env
4362
4373
  );
4363
4374
  this.log_cb(
4364
4375
  `\u2705 Post-run command completed for ${processConfig.name}`
@@ -4388,7 +4399,8 @@ var Runner = class {
4388
4399
  await this.executeCommand(
4389
4400
  config.rebuildCommand,
4390
4401
  config.cwd,
4391
- `Rebuilding ${config.name}`
4402
+ `Rebuilding ${config.name}`,
4403
+ config.env
4392
4404
  );
4393
4405
  } catch (error2) {
4394
4406
  this.log_cb(`\u274C Rebuild before Restart failed for ${config.name}`);
@@ -4512,14 +4524,14 @@ var Runner = class {
4512
4524
  /**
4513
4525
  * Execute a command with proper logging
4514
4526
  */
4515
- async executeCommand(command, cwd = this.cwd, description = "Command", timeoutMs = 20 * 60 * 1e3) {
4527
+ async executeCommand(command, cwd = this.cwd, description = "Command", appEnv, timeoutMs = 20 * 60 * 1e3) {
4516
4528
  this.log_cb(`\u26A1 ${description}: ${command}`);
4517
4529
  this.log_cb(`\u{1F4C1} Working directory: ${cwd}`);
4518
4530
  return new Promise((resolve, reject) => {
4519
4531
  const child = proc2.spawn("sh", ["-c", command], {
4520
4532
  cwd,
4521
4533
  stdio: ["pipe", "pipe", "pipe"],
4522
- env: { ...process.env, CI: "1", DEBIAN_FRONTEND: "noninteractive" }
4534
+ env: { ...process.env, ...appEnv, CI: "1", DEBIAN_FRONTEND: "noninteractive" }
4523
4535
  });
4524
4536
  child.stdin?.end();
4525
4537
  let stdout = "";
@@ -11004,7 +11016,7 @@ var glob = Object.assign(glob_, {
11004
11016
  glob.glob = glob;
11005
11017
 
11006
11018
  // src/proxy/version.ts
11007
- var VERSION = "0.5.5";
11019
+ var VERSION = "0.5.7";
11008
11020
 
11009
11021
  // src/deps.ts
11010
11022
  var import_child_process = require("child_process");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.5.5",
5
+ "version": "0.5.7",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {