Skip to content

Commit

Permalink
feat: load .nycrc/.nycrc.json to simplify migration (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored May 19, 2019
1 parent b9571b1 commit bd7484f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bd7484f

Please sign in to comment.