Skip to content

Commit

Permalink
Revert find-up, use || if no .nycrc found
Browse files Browse the repository at this point in the history
  • Loading branch information
bensaufley committed May 26, 2017
1 parent 773e27c commit 4e96d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/config-util.js
Expand Up @@ -14,7 +14,7 @@ var Config = {}
Config.loadConfig = function (argv, cwd) {
cwd = cwd || process.env.NYC_CWD || process.cwd()
var pkgPath = findUp.sync('package.json', {cwd: cwd})
var rcPath = findUp.sync(['.nycrc', '.nycrc.json'], {cwd: cwd})
var rcPath = findUp.sync('.nycrc', {cwd: cwd}) || findUp.sync('.nycrc.json', {cwd: cwd})
var rcConfig = null

if (rcPath) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -80,7 +80,7 @@
"debug-log": "^1.0.1",
"default-require-extensions": "^1.0.0",
"find-cache-dir": "^0.1.1",
"find-up": "^2.1.0",
"find-up": "^1.1.2",
"foreground-child": "^1.5.3",
"glob": "^7.0.6",
"istanbul-lib-coverage": "^1.1.0",
Expand Down

0 comments on commit 4e96d49

Please sign in to comment.