Skip to content

Commit

Permalink
feat: load .nycrc/.nycrc.json to simplify migration (bcoe#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored May 19, 2019
1 parent 8745b9b commit c20f7e9
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 c20f7e9

Please sign in to comment.