Skip to content

core/builder

Interfaces

BuildAndDeployOptions

Defined in: venpm/src/core/builder.ts:82

Properties

discordBinary?
ts
optional discordBinary?: string;

Defined in: venpm/src/core/builder.ts:84

restart?
ts
optional restart?: boolean;

Defined in: venpm/src/core/builder.ts:83


DeployResult

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

Properties

deployed
ts
deployed: boolean;

Defined in: venpm/src/core/builder.ts:16

deployPath?
ts
optional deployPath?: string;

Defined in: venpm/src/core/builder.ts:17

Variables

DEPLOY_PATHS

ts
const DEPLOY_PATHS: Record<"linux" | "darwin" | "win32", string>;

Defined in: venpm/src/core/builder.ts:7

Functions

buildAndDeploy()

ts
function buildAndDeploy(
   fs, 
   shell, 
   vencordPath, 
options?): Promise<DeployResult>;

Defined in: venpm/src/core/builder.ts:90

Orchestrate build → deploy → (optional) restart.

Parameters

ParameterType
fsFileSystem
shellShellRunner
vencordPathstring
optionsBuildAndDeployOptions

Returns

Promise<DeployResult>


buildVencord()

ts
function buildVencord(shell, vencordPath): Promise<void>;

Defined in: venpm/src/core/builder.ts:26

Run pnpm build inside vencordPath. Throws an error if the build exits with a non-zero code.

Parameters

ParameterType
shellShellRunner
vencordPathstring

Returns

Promise<void>


deployDist()

ts
function deployDist(fs, vencordPath): Promise<DeployResult>;

Defined in: venpm/src/core/builder.ts:41

Copy <vencordPath>/dist/ to the platform-specific deployed location. Skips silently when the deployed directory does not exist on disk.

Parameters

ParameterType
fsFileSystem
vencordPathstring

Returns

Promise<DeployResult>


restartDiscord()

ts
function restartDiscord(shell, discordBinary): Promise<void>;

Defined in: venpm/src/core/builder.ts:63

Kill Discord via pkill, wait briefly, then spawn the binary detached. If pkill reports the process is not running (exit code 1) the kill step is skipped — Discord is still spawned so the caller can open it fresh.

Parameters

ParameterType
shellShellRunner
discordBinarystring

Returns

Promise<void>