Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/build / HermesBuildLockOptions

Interface: HermesBuildLockOptions ​

Defined in: hermes/build.ts:57

Optional mutable resources, dependencies, and timing controls for Hermes preparation locks.

Properties ​

filesystem? ​

optional filesystem?: HermesFileSystem

Defined in: hermes/build.ts:59

Filesystem used to create, read, and remove the lock file.


isProcessAlive? ​

optional isProcessAlive?: (pid) => boolean

Defined in: hermes/build.ts:61

Process-liveness check used to identify stale owners.

Parameters ​

pid ​

number

Returns ​

boolean


now? ​

optional now?: () => number

Defined in: hermes/build.ts:63

Clock used to enforce the timeout.

Returns ​

number


resources? ​

optional resources?: readonly string[]

Defined in: hermes/build.ts:65

Additional mutable Hermes directories that must share this lock with the cache root.


timeoutMs? ​

optional timeoutMs?: number

Defined in: hermes/build.ts:67

Maximum wait for another live build to release the lock.


wait? ​

optional wait?: (delayMs) => Promise<void>

Defined in: hermes/build.ts:69

Delay implementation used between acquisition attempts.

Parameters ​

delayMs ​

number

Returns ​

Promise<void>

pumpkin-plugins documentation