Full context object
type GlobalContext = {
// Trigger an asynchronous custom hook.
asyncHook: async (name: string, ...args: any[]) => Promise;
// Mirror of the user's config.
auth?: {
apiKey?: string;
appKey?: string;
};
// Available in the `buildReport` hook.
build: BuildReport;
// Available in the `bundlerReport` hook.
bundler: BundlerReport;
cwd: string;
env: string;
getLogger: (name: string) => Logger;
// Available in the `git` hook.
git?: Git;
// Trigger a synchronous custom hook.
hook: (name: string, ...args: any[]) => void;
inject: Injection;
// The list of all the plugin names that are currently running in the ecosystem.
pluginNames: string[];
// The list of all the plugin instances that are currently running in the ecosystem.
plugins: Plugin[];
// Send a log to Datadog.
sendLog: (message: string, context?: Record) => Promise;
// The start time of the build.
start: number;
// The version of the plugin.
version: string;
}
#### [📝 Full documentation ➡️](/packages/factory#global-context)
### `disableGit`
> default: `false`
Disable the [Git plugin](/packages/plugins/git#readme) if you don't want to use it.