Skip to content
Permalink
Browse files

fix(rebuilder): rebuild modules inside @ scoped folders as well (#19)

  • Loading branch information
MarshallOfSound committed Dec 17, 2016
1 parent 558fae3 commit bc21528d0494307d2e0ac70da2b50de424ed59cc
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/util/rebuild.js
@@ -69,6 +69,9 @@ export default async (buildPath, electronVersion, pPlatform, pArch) => {
const rebuildAllModulesIn = (nodeModulesPath) => {
for (const modulePath of fs.readdirSync(nodeModulesPath)) {
rebuilds.push(rebuildModuleAt(path.resolve(nodeModulesPath, modulePath)));
if (path.resolve(nodeModulesPath, modulePath).startsWith('@')) {
rebuildAllModulesIn(path.resolve(nodeModulesPath, modulePath));
}
if (fs.existsSync(path.resolve(nodeModulesPath, modulePath, 'node_modules'))) {
rebuildAllModulesIn(path.resolve(nodeModulesPath, modulePath, 'node_modules'));
}

0 comments on commit bc21528

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