Skip to content

Commit c3056c3

Browse files
fix(docs): reduce max command line bytes on Windows for format-docs
1 parent e2e58af commit c3056c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/format-docs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { buildCmdExeCommandLine, resolveWindowsCmdExePath } from "./windows-cmd-
1212
const ROOT = path.resolve(import.meta.dirname, "..");
1313
const CHECK = process.argv.includes("--check");
1414
const DOCS_FORMAT_MAX_BUFFER_BYTES = 1024 * 1024 * 16;
15-
export const DOCS_FORMAT_MAX_COMMAND_LINE_BYTES = 24 * 1024;
15+
export const DOCS_FORMAT_MAX_COMMAND_LINE_BYTES = os.platform() === "win32" ? 7000 : 24 * 1024;
1616
const FAILURE_OUTPUT_TAIL_BYTES = 16 * 1024;
1717

1818
function outputText(value) {

0 commit comments

Comments
 (0)