Framework
BuildContext
Interface: BuildContext
Context provided to build hooks. Base context shared by all build hook types.
Extended by
Properties
| Property | Type | Description |
|---|---|---|
config | Config | Loaded configuration |
entries? | EntriesAccessor | Access to processed route entries. Availability by hook: - build/start: undefined - entries have not been scanned yet - build/transform: Available - use to inspect entries (modification via return value) - build/complete: Available - use to inspect final entries after transformation Example // In build/transform or build/complete hooks: if (context.entries) { const commands = context.entries.get('discordjs', 'commands') console.log(Found ${commands.length} commands) } |
env | typeof Env | Environment variable access |
logger | Logger | Logger instance (forked for plugins) |
mode | string | Current build mode (supports custom modes like 'beta', 'staging', etc.) |
paths | { output: string; root: string; src: string; } | Project paths |
paths.output | string | - |
paths.root | string | - |
paths.src | string | - |
store | BuildStore | Key-value store for passing data between build hooks. Use to share computed values between build/start and build/complete. |
