From 95285eea2cdd4c9c422e011ff37ef007ac23db3d Mon Sep 17 00:00:00 2001 From: bcoe Date: Sun, 19 May 2019 11:22:07 -0700 Subject: [PATCH] feat: load .nycrc/.nycrc.json to simplify migration --- lib/parse-args.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse-args.js b/lib/parse-args.js index 98c663bd..bc920c45 100644 --- a/lib/parse-args.js +++ b/lib/parse-args.js @@ -4,7 +4,7 @@ const { readFileSync } = require('fs') const Yargs = require('yargs/yargs') const parser = require('yargs-parser') -const configPath = findUp.sync(['.c8rc', '.c8rc.json']) +const configPath = findUp.sync(['.c8rc', '.c8rc.json', '.nycrc', `.nycrc.json`]) const config = configPath ? JSON.parse(readFileSync(configPath)) : {} function buildYargs (withCommands = false) {