Skip to content

Repository script API / build / loadStaticHermesRuntime

Function: loadStaticHermesRuntime() ​

loadStaticHermesRuntime(root, env, spawn?): Promise<any>

Defined in: build.mjs:78

Build the runtime package, then import it. The package exports only dist/, which a fresh clone does not have, so a static import would fail before any build could run.

Parameters ​

root ​

any

Workspace root that owns the runtime package.

env ​

any

Isolated environment for the runtime build.

spawn? ​

{(command): SpawnSyncReturns<NonSharedBuffer>; (command, options): SpawnSyncReturns<string>; (command, options): SpawnSyncReturns<NonSharedBuffer>; (command, options?): SpawnSyncReturns<string | NonSharedBuffer>; (command, args): SpawnSyncReturns<NonSharedBuffer>; (command, args, options): SpawnSyncReturns<string>; (command, args, options): SpawnSyncReturns<NonSharedBuffer>; (command, args?, options?): SpawnSyncReturns<string | NonSharedBuffer>; }

Process runner, injectable for unit tests.

Returns ​

Promise<any>

The built runtime package module.

Throws ​

If the runtime build exits unsuccessfully.

pumpkin-plugins documentation