more diagnostics again
This commit is contained in:
parent
f4d3aa1a60
commit
fbe84217d8
2 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
// Add immediate logging to debug Windows CI issues
|
||||
if (process.env.DEBUG_CLI_TESTS || (process.platform === "win32" && process.env.CI)) {
|
||||
// Only log on Windows when DEBUG_CLI_TESTS is set
|
||||
if (process.env.DEBUG_CLI_TESTS === "1" && process.platform === "win32") {
|
||||
console.error(`[CLI_START] Node ${process.version} on ${process.platform} ${process.arch}`);
|
||||
console.error(`[CLI_START] Args: ${JSON.stringify(process.argv)}`);
|
||||
console.error(`[CLI_START] CWD: ${process.cwd()}`);
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export async function runCLI(
|
|||
const stderr = result.stderr ?? "";
|
||||
|
||||
// Log for debugging Windows issues
|
||||
if (process.env.DEBUG_CLI_TESTS) {
|
||||
if (process.env.DEBUG_CLI_TESTS && process.platform === "win32") {
|
||||
console.log("CLI Result:", {
|
||||
stdout: stdout.substring(0, 200),
|
||||
stderr: stderr.substring(0, 200),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue