2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00

Ignore this and related modules

This commit is contained in:
Jens Lind 2015-05-18 19:51:33 +02:00
parent 1127084ce7
commit 892b15fc30

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')) 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({ download({
platform: platform, platform: platform,
arch: arch, arch: arch,