Ignore this and related modules

This commit is contained in:
Jens Lind 2015-05-18 19:51:33 +02:00
parent 1127084ce7
commit 892b15fc30
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,