Merge pull request #34 from jenslind/feature/default-ignores

Ignore this and related modules
This commit is contained in:
Max Ogden 2015-05-18 14:09:15 -07:00
commit 3c4bcbfc41
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,11 @@ module.exports = function packager (opts, cb) {
default: return cb(new Error('Unsupported platform. Must be either darwin, linux, or win32'))
}
// Ignore this and related modules by default
var default_ignores = ['node_modules/electron-prebuilt', 'node_modules/electron-packager', '.git']
if (opts.ignore && !Array.isArray(opts.ignore)) opts.ignore = [opts.ignore]
opts.ignore = (opts.ignore) ? opts.ignore.concat(default_ignores) : default_ignores
download({
platform: platform,
arch: arch,