{"size": 417, "ext": "js", "max_stars_repo_path": "src/config/pairing-file.js", "max_stars_repo_name": "jgarte/gitpair", "max_stars_repo_stars_event_min_datetime": "2016-10-28T06:40:41.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-28T17:17:30.000Z", "max_issues_repo_path": "src/config/pairing-file.js", "max_issues_repo_name": "jgarte/gitpair", "max_issues_repo_issues_event_min_datetime": "2016-10-28T04:03:22.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-29T02:03:13.000Z", "max_forks_repo_path": "src/config/pairing-file.js", "max_forks_repo_name": "jgarte/gitpair", "max_forks_repo_forks_event_min_datetime": "2017-01-17T22:19:43.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-17T15:50:00.000Z"}
{"max_stars_count": 26, "max_issues_count": 168, "max_forks_count": 3, "avg_line_length": 29.7857142857, "max_line_length": 86, "alphanum_fraction": 0.7793764988}
import path from 'path'
import fs from 'fs'
import { GITPAIR_PAIRING_FILE } from './paths'
import authorsFile from './authors-file'

const configDirectory = path.dirname(authorsFile)
const pairingFilePath = path.join(configDirectory, GITPAIR_PAIRING_FILE)

if (!fs.existsSync(pairingFilePath)) {
  fs.writeFileSync(pairingFilePath, JSON.stringify({ coAuthors: [], enabled: false }))
}

export default pairingFilePath
