Skip to content

core/detect

Variables

VENCORD_SEARCH_PATHS

ts
const VENCORD_SEARCH_PATHS: string[];

Defined in: venpm/src/core/detect.ts:5

Functions

checkGitAvailable()

ts
function checkGitAvailable(shell): Promise<boolean>;

Defined in: venpm/src/core/detect.ts:91

Check whether git is available on PATH.

Parameters

ParameterType
shellShellRunner

Returns

Promise<boolean>


checkPnpmAvailable()

ts
function checkPnpmAvailable(shell): Promise<boolean>;

Defined in: venpm/src/core/detect.ts:103

Check whether pnpm is available on PATH.

Parameters

ParameterType
shellShellRunner

Returns

Promise<boolean>


detectDiscordBinary()

ts
function detectDiscordBinary(fs): Promise<string | null>;

Defined in: venpm/src/core/detect.ts:79

Detect the Discord binary path.

Returns the first candidate that exists on disk, or null.

Parameters

ParameterType
fsFileSystem

Returns

Promise<string | null>


detectVencordPath()

ts
function detectVencordPath(fs): Promise<string | null>;

Defined in: venpm/src/core/detect.ts:30

Detect the Vencord source checkout path.

Checks $VENPM_VENCORD_PATH first, then scans VENCORD_SEARCH_PATHS. A path is valid when <path>/package.json exists.

Parameters

ParameterType
fsFileSystem

Returns

Promise<string | null>

Absolute path string or null when not found.


resolveTilde()

ts
function resolveTilde(p): string;

Defined in: venpm/src/core/detect.ts:15

Replace a leading ~ with the user's home directory.

Parameters

ParameterType
pstring

Returns

string