Skip to content

@pumpkin-plugins/pumpkin-api API / wit / ensurePumpkinWit

Function: ensurePumpkinWit() ​

ensurePumpkinWit(options): string

Defined in: wit.d.mts:28

Fetches the lockfile-selected Pumpkin WIT package on first use and when its lockfile changes.

Parameters ​

options ​

EnsurePumpkinWitOptions

Lockfile path and consumer-owned cache root.

Returns ​

string

The cached WIT package directory selected by the lockfile.

Throws ​

If the lock is invalid, Git cannot fetch its commit, or the commit lacks WIT files.

pumpkin-plugins documentation