core/builder
Interfaces
BuildAndDeployOptions
Defined in: venpm/src/core/builder.ts:82
Properties
discordBinary?
optional discordBinary?: string;Defined in: venpm/src/core/builder.ts:84
restart?
optional restart?: boolean;Defined in: venpm/src/core/builder.ts:83
DeployResult
Defined in: venpm/src/core/builder.ts:15
Properties
deployed
deployed: boolean;Defined in: venpm/src/core/builder.ts:16
deployPath?
optional deployPath?: string;Defined in: venpm/src/core/builder.ts:17
Variables
DEPLOY_PATHS
const DEPLOY_PATHS: Record<"linux" | "darwin" | "win32", string>;Defined in: venpm/src/core/builder.ts:7
Functions
buildAndDeploy()
function buildAndDeploy(
fs,
shell,
vencordPath,
options?): Promise<DeployResult>;Defined in: venpm/src/core/builder.ts:90
Orchestrate build → deploy → (optional) restart.
Parameters
| Parameter | Type |
|---|---|
fs | FileSystem |
shell | ShellRunner |
vencordPath | string |
options | BuildAndDeployOptions |
Returns
Promise<DeployResult>
buildVencord()
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
| Parameter | Type |
|---|---|
shell | ShellRunner |
vencordPath | string |
Returns
Promise<void>
deployDist()
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
| Parameter | Type |
|---|---|
fs | FileSystem |
vencordPath | string |
Returns
Promise<DeployResult>
restartDiscord()
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
| Parameter | Type |
|---|---|
shell | ShellRunner |
discordBinary | string |
Returns
Promise<void>