Skip to content

Commit

Permalink
Fix regexp options (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish authored Jan 11, 2022
1 parent 943cd04 commit 79a886a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/check-dependency-version-consistency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,27 @@ function run() {
path,
options: {
ignoreDep: string[];
ignoreDepPattern: RegExp[];
ignoreDepPattern: string[];
ignorePackage: string[];
ignorePackagePattern: RegExp[];
ignorePackagePattern: string[];
ignorePath: string[];
ignorePathPattern: RegExp[];
ignorePathPattern: string[];
fix: boolean;
}
) {
// Calculate.
const packages = getPackages(
path,
options.ignorePackage,
options.ignorePackagePattern,
options.ignorePackagePattern.map((s) => new RegExp(s)),
options.ignorePath,
options.ignorePathPattern
options.ignorePathPattern.map((s) => new RegExp(s))
);
const dependencyVersions = calculateVersionsForEachDependency(packages);
let mismatchingVersions = filterOutIgnoredDependencies(
calculateMismatchingVersions(dependencyVersions),
options.ignoreDep,
options.ignoreDepPattern
options.ignoreDepPattern.map((s) => new RegExp(s))
);

if (options.fix) {
Expand Down

0 comments on commit 79a886a

Please sign in to comment.