Skip to content
Permalink
Browse files

feat(generic): allow third party modules to be named whatever they want

  • Loading branch information
MarshallOfSound authored and malept committed Feb 25, 2017
1 parent e3962d3 commit fddb40e6e0ea391a77d31c509b03738b07b9986d
Showing with 6 additions and 1 deletion.
  1. +2 −0 src/api/make.js
  2. +4 −1 src/api/publish.js
@@ -108,6 +108,8 @@ export default async (providedOptions = {}) => {
`../makers/${process.platform}/${target}.js`,
`../makers/generic/${target}.js`,
`electron-forge-maker-${target}`,
target,
path.resolve(dir, target),
]);
if (!maker) {
throw `Could not find a build target with the name: ${target} for the platform: ${declaredPlatform}`;
@@ -1,4 +1,5 @@
import 'colors';
import path from 'path';

import asyncOra from '../util/ora-handler';
import deprecate from '../util/deprecate';
@@ -67,10 +68,12 @@ export default async (providedOptions = {}) => {

for (const publishTarget of publishTargets) {
let publisher;
await asyncOra(`Resolving publish target: ${`${publishTarget}`.cyan}`, async () => {
await asyncOra(`Resolving publish target: ${`${publishTarget}`.cyan}`, async () => { // eslint-disable-line no-loop-func
publisher = requireSearch(__dirname, [
`../publishers/${publishTarget}.js`,
`electron-forge-publisher-${publishTarget}`,
publishTarget,
path.resolve(dir, publishTarget),
]);
if (!publisher) {
throw `Could not find a publish target with the name: ${publishTarget}`;

0 comments on commit fddb40e

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