Skip to content

Commit

Permalink
disabled -> enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Mar 24, 2022
1 parent 9ea965b commit 2e5ded0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/api/core/src/api/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export default async ({
if (!maker.platforms.includes(actualTargetPlatform)) continue;
} else {
const resolvableTarget: IForgeResolvableMaker = target as IForgeResolvableMaker;
if (resolvableTarget.disabled) continue;
// non-false falsy values should be 'true'
if (resolvableTarget.enabled === false) continue;

if (!resolvableTarget.name) {
throw new Error(`The following maker config is missing a maker name: ${JSON.stringify(resolvableTarget)}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"makers": [
{
"name": "@electron-forge/maker-zip",
"disabled": true,
"enabled": false,
"platforms": [
"linux"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface IForgePlugin {
}

export interface IForgeResolvableMaker {
disabled: boolean;
enabled: boolean;
name: string;
platforms: ForgePlatform[] | null;
config: any; // eslint-disable-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 2e5ded0

Please sign in to comment.