From 3efb9da7714f43d69768c1e71d48810c70587c25 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 24 Jul 2018 10:17:50 -0400 Subject: [PATCH] Run defaultRules recursively --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c1b8783..b4d6702 100644 --- a/index.js +++ b/index.js @@ -62,14 +62,14 @@ const npmWalker = Class => class Walker extends Class { this.bundledScopes = Array.from(new Set( this.bundled.filter(f => /^@/.test(f)) .map(f => f.split('/')[0]))) - const rules = defaultRules.join('\n') + '\n' this.packageJsonCache = opt.packageJsonCache || new Map() - super.onReadIgnoreFile(rootBuiltinRules, rules, _=>_) } else { this.bundled = [] this.bundledScopes = [] this.packageJsonCache = this.parent.packageJsonCache } + const rules = defaultRules.join('\n') + '\n' + super.onReadIgnoreFile(rootBuiltinRules, rules, _=>_) } filterEntry (entry, partial) {