LogoRobo.js
Framework

BuildContext

Interface: BuildContext

Context provided to build hooks. Base context shared by all build hook types.

Extended by

Properties

PropertyTypeDescription
configConfigLoaded configuration
entries?EntriesAccessorAccess 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) }
envtypeof EnvEnvironment variable access
loggerLoggerLogger instance (forked for plugins)
modestringCurrent build mode (supports custom modes like 'beta', 'staging', etc.)
paths{ output: string; root: string; src: string; }Project paths
paths.outputstring-
paths.rootstring-
paths.srcstring-
storeBuildStoreKey-value store for passing data between build hooks. Use to share computed values between build/start and build/complete.

On this page