electron-userland / electron-windows-store

:package: Turn Electron Apps into Windows AppX Packages
MIT License
677 stars 86 forks source link

flattennpmmodules.ps1, bad path for flatten #43

Closed black-snow closed 7 years ago

black-snow commented 7 years ago

flattennpmmodules.ps1 is looking for ./node_modules/electron-windows-store/node_modules/flatten/bin/flatten but for me, there is no flatten under this path. Instead npm put it in the top-level node_modules.

Guess this is an artifact from times when npm didn't flatten the modules itself? flattennpmmodules.ps1 should probably check both paths:

  1. ./node_modules/electron-windows-store/node_modules/flatten/bin/flatten
  2. ./node_modules/flatten/bin/flatten

I'd file a PR but I'm not familiar with PowerShell :|