trigger.dev 0.0.0-v3-pnpm-fix-20240403154252 → 0.0.0-v3-pnpm-fix-20240404112326

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/index.js CHANGED
@@ -801,7 +801,7 @@ import invariant from "tiny-invariant";
801
801
  import { z as z4 } from "zod";
802
802
 
803
803
  // package.json
804
- var version = "0.0.0-v3-pnpm-fix-20240403154252";
804
+ var version = "0.0.0-v3-pnpm-fix-20240404112326";
805
805
  var dependencies = {
806
806
  "@clack/prompts": "^0.7.0",
807
807
  "@depot/cli": "0.0.1-cli.2.55.0",
@@ -817,7 +817,7 @@ var dependencies = {
817
817
  "@opentelemetry/sdk-trace-base": "^1.22.0",
818
818
  "@opentelemetry/sdk-trace-node": "^1.22.0",
819
819
  "@opentelemetry/semantic-conventions": "^1.22.0",
820
- "@trigger.dev/core": "workspace:0.0.0-v3-pnpm-fix-20240403154252",
820
+ "@trigger.dev/core": "workspace:0.0.0-v3-pnpm-fix-20240404112326",
821
821
  "@types/degit": "^2.8.3",
822
822
  chalk: "^5.2.0",
823
823
  chokidar: "^3.5.3",
@@ -4359,6 +4359,12 @@ var BackgroundWorker = class {
4359
4359
  await installPackages(this.params.dependencies, { cwd: dirname2(this.path) });
4360
4360
  }
4361
4361
  let resolved = false;
4362
+ const cwd = dirname2(this.path);
4363
+ const fullEnv = {
4364
+ ...this.params.env,
4365
+ ...this.#readEnvVars()
4366
+ };
4367
+ logger.debug("Initializing worker", { path: this.path, cwd, fullEnv });
4362
4368
  this.tasks = await new Promise((resolve4, reject) => {
4363
4369
  const child = fork(this.path, {
4364
4370
  stdio: [
@@ -4370,10 +4376,8 @@ var BackgroundWorker = class {
4370
4376
  "pipe",
4371
4377
  "ipc"
4372
4378
  ],
4373
- env: {
4374
- ...this.params.env,
4375
- ...this.#readEnvVars()
4376
- }
4379
+ cwd,
4380
+ env: fullEnv
4377
4381
  });
4378
4382
  const timeout = setTimeout(() => {
4379
4383
  if (resolved) {
@@ -4576,9 +4580,11 @@ var TaskRunProcess = class {
4576
4580
  OTEL_EXPORTER_OTLP_COMPRESSION: "none",
4577
4581
  ...this.worker.debugOtel ? { OTEL_LOG_LEVEL: "debug" } : {}
4578
4582
  };
4583
+ const cwd = dirname2(this.path);
4579
4584
  logger.debug(`[${this.execution.run.id}] initializing task run process`, {
4580
4585
  env: fullEnv,
4581
- path: this.path
4586
+ path: this.path,
4587
+ cwd
4582
4588
  });
4583
4589
  this._child = fork(this.path, {
4584
4590
  stdio: [
@@ -4590,7 +4596,7 @@ var TaskRunProcess = class {
4590
4596
  "pipe",
4591
4597
  "ipc"
4592
4598
  ],
4593
- cwd: dirname2(this.path),
4599
+ cwd,
4594
4600
  env: fullEnv,
4595
4601
  execArgv: this.worker.debuggerOn ? ["--inspect-brk", "--trace-uncaught", "--no-warnings=ExperimentalWarning"] : ["--trace-uncaught", "--no-warnings=ExperimentalWarning"]
4596
4602
  });