Skip to content

Commit

Permalink
chore: Remove arrify dependency. (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell authored and JaKXz committed Apr 5, 2019
1 parent e8063c7 commit 8867afc
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 28 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/istanbul-api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/istanbul-lib-hook/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions packages/istanbul-lib-instrument/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/istanbul-lib-report/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/istanbul-lib-source-maps/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/istanbul-reports/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions packages/test-exclude/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require('path');
const arrify = require('arrify');
const glob = require('glob');
const minimatch = require('minimatch');
const readPkgUp = require('read-pkg-up');
Expand Down Expand Up @@ -48,7 +47,7 @@ class TestExclude {
}

if (this.include && this.include.length > 0) {
this.include = prepGlobPatterns(arrify(this.include));
this.include = prepGlobPatterns([].concat(this.include));
} else {
this.include = false;
}
Expand All @@ -60,7 +59,7 @@ class TestExclude {
this.exclude = this.exclude.concat('**/node_modules/**');
}

this.exclude = prepGlobPatterns([].concat(arrify(this.exclude)));
this.exclude = prepGlobPatterns([].concat(this.exclude));

this.handleNegation();
}
Expand Down
7 changes: 1 addition & 6 deletions packages/test-exclude/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/test-exclude/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
},
"homepage": "https://istanbul.js.org/",
"dependencies": {
"arrify": "^1.0.1",
"glob": "^7.1.3",
"minimatch": "^3.0.4",
"read-pkg-up": "^4.0.0",
Expand Down

0 comments on commit 8867afc

Please sign in to comment.