Skip to content

Commit 81abc2b

Browse files
scotthuangjalehman
andauthored
fix: preserve cron delivery awareness for target sessions (#93580)
Merged via squash. Prepared head SHA: 460562c Co-authored-by: scotthuang <1670837+scotthuang@users.noreply.github.com> Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com> Reviewed-by: @jalehman
1 parent 09fcaff commit 81abc2b

7 files changed

Lines changed: 774 additions & 56 deletions

File tree

packages/sdk/src/package.e2e.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import fs from "node:fs/promises";
55
import { createServer, type Server } from "node:http";
66
import os from "node:os";
77
import path from "node:path";
8-
import { createPnpmRunnerSpawnSpec } from "../../../scripts/pnpm-runner.mjs";
98
import { afterEach, describe, expect, it } from "vitest";
9+
import { createPnpmRunnerSpawnSpec } from "../../../scripts/pnpm-runner.mjs";
1010
import { createNodeEvalArgs } from "../../../src/test-utils/node-process.js";
1111

1212
type CommandResult = {
@@ -123,8 +123,9 @@ function runPnpmCommand(
123123
pnpmArgs: args,
124124
stdio: ["ignore", "pipe", "pipe"],
125125
});
126+
const cwd = typeof spec.options.cwd === "string" ? spec.options.cwd : options.cwd;
126127
return runCommand(spec.command, spec.args, {
127-
cwd: spec.options.cwd ?? options.cwd,
128+
cwd,
128129
env: spec.options.env,
129130
shell: spec.options.shell,
130131
timeoutMs: options.timeoutMs,

0 commit comments

Comments
 (0)