Skip to content

Commit

Permalink
Ignore this and related modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Lind committed May 18, 2015
1 parent 1127084 commit 892b15f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Expand Up @@ -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,
Expand Down

0 comments on commit 892b15f

Please sign in to comment.