fix(ito): keep handoff portable under CI

This commit is contained in:
Affaan Mustafa
2026-07-23 16:54:11 -04:00
parent b4c13020c5
commit e8924dacce
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ function runCommand(commandName, args) {
{
cwd: process.cwd(),
env: commandName === 'ito'
? createSafeItoEnvironment(process.env, { includeControls: true })
? { ...createSafeItoEnvironment(process.env, { includeControls: true }) }
: process.env,
encoding: 'utf8',
maxBuffer: 10 * 1024 * 1024,
+1 -1
View File
@@ -206,7 +206,7 @@ function defaultOpenUrl(url) {
}
const result = spawnSync(executable, args, {
env: createSafeItoEnvironment(process.env),
env: { ...createSafeItoEnvironment(process.env) },
stdio: "ignore",
windowsHide: true,
shell: false,
+2 -1
View File
@@ -268,7 +268,8 @@ function main() {
assert.match(result.stdout, /no supported structured ECC intake/i)
}],
["npm welcome remains POSIX-safe around apostrophes", () => {
const result = spawnSync("npm", ["run", "welcome"], {
const npmExecutable = process.platform === "win32" ? "npm.cmd" : "npm"
const result = spawnSync(npmExecutable, ["run", "welcome"], {
cwd: REPO_ROOT,
encoding: "utf8",
})