2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00
This commit is contained in:
Max Ogden 2015-05-18 14:10:10 -07:00
parent 3c4bcbfc41
commit a2f3c1c707

View File

@ -32,9 +32,9 @@ module.exports = function packager (opts, cb) {
} }
// Ignore this and related modules by default // Ignore this and related modules by default
var default_ignores = ['node_modules/electron-prebuilt', 'node_modules/electron-packager', '.git'] var defaultIgnores = ['node_modules/electron-prebuilt', 'node_modules/electron-packager', '.git']
if (opts.ignore && !Array.isArray(opts.ignore)) opts.ignore = [opts.ignore] if (opts.ignore && !Array.isArray(opts.ignore)) opts.ignore = [opts.ignore]
opts.ignore = (opts.ignore) ? opts.ignore.concat(default_ignores) : default_ignores opts.ignore = (opts.ignore) ? opts.ignore.concat(defaultIgnores) : defaultIgnores
download({ download({
platform: platform, platform: platform,