message: Fix the symlinks which were sneaking into packages' node_modules dir.
diff: @@ -53,7 +53,6 @@ function main() {
  echo("Removing development dependencies");
  exec("yarn install --production=true");
  - exec("yarn run electron-rebuild");
  // Create the commands zip
  echo("Creating commands.zip");
  @@ -112,6 +111,27 @@ function main() {
  }
  }
  + function hoistSubprojectsModules(versionedOutputDir, platform) {
  + const modulesDir = path.join(versionedOutputDir, appDir(platform), "node_modules");
  +
  + // Delete the symlinks.
  + for (const item of ls(modulesDir)) {
  + const itemPath = path.join(modulesDir, item);
  + if (test('-L', itemPath)) {
  + echo(`Deleting symlink ${item} in ${modulesDir}`);
  + rm(itemPath);
  + }
  + }
  +
  + // Move the 'packages' subprojects up into this node_modules dir.
  + const packagesDir = path.join(versionedOutputDir, appDir(platform), "packages");
  + for (const item of ls(packagesDir)) {
  + const destDir = path.join(modulesDir, item);
  + echo(`Moving ${item} in to ${destDir}`);
  + mv(path.join(packagesDir, item), destDir);
  + }
  + }
  +
  function pruneNodeModules(versionedOutputDir, platform) {
  const prevDir = pwd();
  @@ -209,6 +229,7 @@ function main() {
  const thisCD = pwd();
  cd(buildTmpPath);
  + hoistSubprojectsModules(versionedOutputDir, platform);
  pruneNodeModules(versionedOutputDir, platform);
  // Prune any unneeded node-sass binaries.
  