mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-23 23:28:31 +00:00
fix defaultIgnores to be proper reg-exps
This commit is contained in:
parent
92c75b0326
commit
5c82a97f05
2
index.js
2
index.js
@ -32,7 +32,7 @@ module.exports = function packager (opts, cb) {
|
||||
}
|
||||
|
||||
// Ignore this and related modules by default
|
||||
var defaultIgnores = ['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]
|
||||
opts.ignore = (opts.ignore) ? opts.ignore.concat(defaultIgnores) : defaultIgnores
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user