@fimbul/wotan
Advanced tools
Comparing version 0.22.0-dev.20190619 to 0.22.0-dev.20190620
{ | ||
"name": "@fimbul/wotan", | ||
"version": "0.22.0-dev.20190619", | ||
"version": "0.22.0-dev.20190620", | ||
"description": "Pluggable TypeScript and JavaScript linter", | ||
@@ -57,3 +57,3 @@ "bin": "bin/main.js", | ||
"minimatch": "^3.0.4", | ||
"normalize-glob": "^0.0.1", | ||
"normalize-glob": "^0.0.2", | ||
"reflect-metadata": "^0.1.12", | ||
@@ -60,0 +60,0 @@ "resolve": "^1.5.0", |
@@ -185,5 +185,10 @@ "use strict"; | ||
for (const pattern of patterns) { | ||
if (!pattern.hasMagic) | ||
nonMagicGlobs.push(pattern.normalized[0]); | ||
include.push(...pattern.normalized.map((p) => new minimatch_1.Minimatch(p))); | ||
if (!pattern.hasMagic) { | ||
const mm = new minimatch_1.Minimatch(pattern.normalized[0]); | ||
nonMagicGlobs.push({ raw: pattern.normalized[0], match: mm }); | ||
include.push(mm); | ||
} | ||
else { | ||
include.push(...pattern.normalized.map((p) => new minimatch_1.Minimatch(p))); | ||
} | ||
} | ||
@@ -322,4 +327,4 @@ const ex = exclude.map((p) => new minimatch_1.Minimatch(p, { dot: true })); | ||
for (const pattern of include) | ||
if (!files.includes(pattern) && !isExcluded(pattern, exclude)) | ||
throw new ymir_1.ConfigurationError(`'${pattern}' is not included in any of the projects: '${projects.join("', '")}'.`); | ||
if (!isExcluded(pattern.raw, exclude) && !files.some((f) => pattern.match.match(f))) | ||
throw new ymir_1.ConfigurationError(`'${pattern.raw}' is not included in any of the projects: '${projects.join("', '")}'.`); | ||
} | ||
@@ -326,0 +331,0 @@ function isExcluded(file, exclude) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
333697
4135
+ Addednormalize-glob@0.0.2(transitive)
- Removednormalize-glob@0.0.1(transitive)
Updatednormalize-glob@^0.0.2