From 892b15fc306ee67bd1ea8a6aa6a1c799443b37f2 Mon Sep 17 00:00:00 2001 From: Jens Lind Date: Mon, 18 May 2015 19:51:33 +0200 Subject: [PATCH] Ignore this and related modules --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 48648ad..0513f67 100644 --- a/index.js +++ b/index.js @@ -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,