approvals
Version:
Approval Tests Library - Capturing Human Intelligence
12 lines (8 loc) • 383 B
text/typescript
// Remove the reference path as TypeScript should be configured to recognize node types globally via `tsconfig.json`
// Detect OS-specific features using TypeScript.
const isWindows = process.platform.startsWith("win");
export const platform = {
isWindows: isWindows,
isMac: process.platform === "darwin",
};
export let findProgramPathCommand = isWindows ? "where" : "which";