Skip to content
Permalink
Browse files

fix(rebuild): skip dependencies without a package.json file

  • Loading branch information
MarshallOfSound authored and malept committed Dec 27, 2016
1 parent 50ad8e6 commit 3348223d54182b1cfb7d0d4249716e807cd8b196
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/util/rebuild.js
@@ -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;

0 comments on commit 3348223

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