Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/toolchain-environment / HermesToolchainSetupOptions

Interface: HermesToolchainSetupOptions ​

Defined in: hermes/toolchain-environment.ts:79

Options for installing or resolving the tools needed by a Static Hermes build.

Properties ​

arch? ​

optional arch?: string

Defined in: hermes/toolchain-environment.ts:81

Target architecture for tool downloads; defaults to the current host.


env? ​

optional env?: ProcessEnv

Defined in: hermes/toolchain-environment.ts:83

Environment used to resolve configured tool paths.


fetchImpl? ​

optional fetchImpl?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: hermes/toolchain-environment.ts:85

Fetch implementation used to retrieve release metadata and archives.

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

RequestInfo | URL

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

string | Request | URL

init? ​

RequestInit

Returns ​

Promise<Response>


homeDirectory? ​

optional homeDirectory?: string

Defined in: hermes/toolchain-environment.ts:87

Home directory used for the shared toolchain cache.


includeWasiSdk? ​

optional includeWasiSdk?: boolean

Defined in: hermes/toolchain-environment.ts:89

Whether to resolve and validate the WASI SDK.


includeWasmTools? ​

optional includeWasmTools?: boolean

Defined in: hermes/toolchain-environment.ts:91

Whether to resolve and validate wasm-tools.


includeWitBindgen? ​

optional includeWitBindgen?: boolean

Defined in: hermes/toolchain-environment.ts:93

Whether to resolve and validate wit-bindgen.


installWasiSdk? ​

optional installWasiSdk?: (options) => string | Promise<string>

Defined in: hermes/toolchain-environment.ts:95

Installer hooks used by tests and custom package integrations.

Parameters ​

options ​

WasiSdkInstallOptions

Returns ​

string | Promise<string>


installWasmTools? ​

optional installWasmTools?: (options) => string | Promise<string>

Defined in: hermes/toolchain-environment.ts:97

Installer hook for the pinned wasm-tools executable.

Parameters ​

options ​

WasmToolsInstallOptions

Returns ​

string | Promise<string>


installWitBindgen? ​

optional installWitBindgen?: (options) => string | Promise<string>

Defined in: hermes/toolchain-environment.ts:99

Installer hook for the pinned wit-bindgen executable.

Parameters ​

options ​

WitBindgenInstallOptions

Returns ​

string | Promise<string>


platform? ​

optional platform?: Platform

Defined in: hermes/toolchain-environment.ts:101

Target platform for tool downloads; defaults to the current host.


toolchainConfig? ​

optional toolchainConfig?: HermesToolchainConfig

Defined in: hermes/toolchain-environment.ts:103

Pinned wit-bindgen, Rust, and wasm-tools versions.


wasiSdkConfig? ​

optional wasiSdkConfig?: WasiSdkConfig

Defined in: hermes/toolchain-environment.ts:105

WASI SDK version, GitHub repository, and trusted platform SHA-256 checksums.


workspaceRoot ​

workspaceRoot: string

Defined in: hermes/toolchain-environment.ts:107

Root of the pumpkin-plugins workspace.

pumpkin-plugins documentation