Skip to content

PkgManagerOpts

Defined in: packages/core/src/presets/pkg-manager.ts:25

Options for pkgManager.

optional fetcher?: (url) => Promise<Response>

Defined in: packages/core/src/presets/pkg-manager.ts:35

HTTP fetcher used to back the /net/http and /net/https mounts. When omitted, no HTTP registry mounts are installed.

string

Promise<Response>


optional importEsm?: (source) => Promise<unknown>

Defined in: packages/core/src/presets/pkg-manager.ts:41

Platform-specific ESM loader used to evaluate fetched package code. Optional at build time — boot replaces it with the PlatformCapabilities implementation. Provide explicitly only for testing.

string

Promise<unknown>


optional sources?: string[]

Defined in: packages/core/src/presets/pkg-manager.ts:30

Registry URLs seeded into /etc/pkg/sources.list, one per line. Each URL is a trusted code origin (see the trust contract on pkgManager).