Files
book-test/node_modules/concurrently/dist/bin/console-codepage.d.ts
T
chris a7524412f0
CI/CD Pipeline / test (push) Failing after 2m38s
CI/CD Pipeline / deploy-internal (push) Has been skipped
Add web front-end and fix API issues
2026-08-28 21:47:05 -04:00

14 lines
851 B
TypeScript

import { spawnSync as baseSpawnSync } from 'node:child_process';
export type SpawnSync = typeof baseSpawnSync;
/**
* On Windows, concurrently pipes child-process output through a freshly-allocated console whose
* codepage may not be UTF-8, garbling non-ASCII output from commands that rely on it (see
* open-cli-tools/concurrently#302). This sets the console's codepage to UTF-8 once, which spawned
* children then inherit, and returns a function that restores the original codepage.
*
* No-ops (and never throws) if not on Windows, if the codepage is already UTF-8, or if reading/setting
* it fails for any reason -- this is a best-effort convenience, never something that should block
* concurrently from running.
*/
export declare function ensureUtf8Codepage(spawnSync?: SpawnSync, process?: Pick<NodeJS.Process, 'platform'>): () => void;