Skip to content
Permalink
Browse files

feat(core): add resolveForgeConfig hook

  • Loading branch information
MarshallOfSound committed May 17, 2018
1 parent 04ead91 commit c2f4cfa69d0c00bb0f2307fe9a835358f5ef941b
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/api/core/src/util/forge-config.ts
@@ -5,6 +5,7 @@ import _template from 'lodash.template';

import readPackageJSON from './read-package-json';
import PluginInterface from './plugin-interface';
import runHook from './hook';

const underscoreCase = (str: string) => str.replace(/(.)([A-Z][a-z]+)/g, '$1_$2').replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase();

@@ -108,5 +109,7 @@ export default async (dir: string) => {

forgeConfig.pluginInterface = new PluginInterface(dir, forgeConfig);

await runHook(forgeConfig, 'resolveForgeConfig', forgeConfig);

return proxify<ForgeConfig>(forgeConfig.buildIdentifier || '', forgeConfig, 'ELECTRON_FORGE');
};

0 comments on commit c2f4cfa

Please sign in to comment.
You can’t perform that action at this time.