mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-10 19:57:57 +02:00
fix(ito): keep handoff portable under CI
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user