MCPcopy
hub / github.com/electron/forge / init

Function init

packages/plugin/base/src/Plugin.ts:30–35  ·  view source on GitHub ↗
(_dir: string, _config: ResolvedForgeConfig)

Source from the content-addressed store, hash-verified

28 }
29
30 init(_dir: string, _config: ResolvedForgeConfig): void {
31 // This logic ensures that we only call getHooks once regardless of how many
32 // times we trip hook logic in the PluginInterface.
33 this._resolvedHooks = this.getHooks();
34 this.getHooks = () => this._resolvedHooks;
35 }
36
37 getHooks(): ForgeMultiHookMap {
38 return {};

Callers 1

initMethod · 0.85

Calls 1

getHooksMethod · 0.65

Tested by

no test coverage detected