Skip to content

Commit

Permalink
fix(rebuild): skip dependencies without a package.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and malept committed Dec 30, 2016
1 parent 50ad8e6 commit 3348223
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/util/rebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ export default async (buildPath, electronVersion, pPlatform, pArch) => {
};

const markChildrenAsProdDeps = async (modulePath) => {
d('exporing:', modulePath);
const childPackageJSON = await readPackageJSON(modulePath);
d('exploring:', modulePath);
let childPackageJSON;
try {
childPackageJSON = await readPackageJSON(modulePath);
} catch (err) {
return;
}
const moduleWait = [];
Object.keys(childPackageJSON.dependencies || {}).forEach((key) => {
if (prodDeps[key]) return;
Expand Down

0 comments on commit 3348223

Please sign in to comment.