summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/output/base.js6
-rw-r--r--package.json2
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index 4563646..903323f 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -38,10 +38,8 @@ function Output(book, opts, parent) {
// Files to ignore in output
this.ignore = Ignore();
- // Hack to inherits from rules of the book:
- // Waiting for https://github.com/kaelzhang/node-ignore/pull/19 to be merged
- this.ignore._rules = this.ignore._rules.concat(this.book.ignore._rules);
- this.ignore._cache = {};
+ // Hack to inherits from rules of the book
+ this.ignore.add(this.book.ignore);
}
// Default name for generator
diff --git a/package.json b/package.json
index 5e332d5..5475097 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"github-slugid": "1.0.1",
"graceful-fs": "4.1.3",
"i18n-t": "1.0.0",
- "ignore": "3.0.14",
+ "ignore": "3.1.1",
"json-schema-defaults": "0.1.1",
"jsonschema": "1.1.0",
"juice": "1.10.0",