Skip to content

Commit

Permalink
refactor: replace git-contributors with contributors-from-git
Browse files Browse the repository at this point in the history
Closes GH-28.

Reviewed-by: Christian Murphy <[email protected]>
Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
vweevers authored and wooorm committed Jul 1, 2019
1 parent 63b151c commit 4849386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const gitContributors = require('git-contributors').GitContributors
const gitContributors = require('contributors-from-git')
const injectContributors = require('remark-contributors')
const resolve = require('resolve')
const heading = require('mdast-util-heading-range')
Expand Down Expand Up @@ -45,7 +45,7 @@ module.exports = function attacher (opts) {
pkg.contributors.forEach(indexContributor.bind(null, indices))
}

gitContributors.list(cwd, function (err, contributors) {
gitContributors(cwd, function (err, contributors) {
if (err) {
if (/does not have any commits yet/.test(err)) {
file.message('could not get Git contributors as there are no commits yet', null, `${plugin}:no-commits`)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"index.js"
],
"dependencies": {
"contributors-from-git": "^1.0.0",
"deep-dot": "0.0.2",
"git-contributors": "^0.2.3",
"mdast-util-heading-range": "^2.1.0",
"parse-author": "^2.0.0",
"remark-contributors": "^4.0.0",
Expand Down

0 comments on commit 4849386

Please sign in to comment.