Skip to content

Commit

Permalink
fix(core): packageJSON won't be found when programmatic usage instead…
Browse files Browse the repository at this point in the history
… of CLI (#3455)
  • Loading branch information
ianho authored Jan 19, 2024
1 parent 0be59a6 commit 2fe0f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/core/src/util/resolve-dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default async (dir: string): Promise<string | null> => {
return mDir;
}

if (packageJSON.devDependencies?.['@electron-forge/cli']) {
if (packageJSON.devDependencies?.['@electron-forge/cli'] || packageJSON.devDependencies?.['@electron-forge/core']) {
d('package.json with forge dependency found in', testPath);
return mDir;
}
Expand Down

0 comments on commit 2fe0f5d

Please sign in to comment.