Skip to content

Commit

Permalink
adds husky and lint-staged for precommit hook translation flagging
Browse files Browse the repository at this point in the history
  • Loading branch information
brysonian committed Jun 27, 2018
1 parent a497570 commit 5a2c492
Show file tree
Hide file tree
Showing 3 changed files with 2,398 additions and 159 deletions.
4 changes: 2 additions & 2 deletions i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ var task = function(done) {
.status()
.then(data => {
if (data.modified.includes(enSrcFile)) {
return repo.diff(['-p', enSrcFile]);
return repo.diff(['-p', '--cached', enSrcFile]);
}
return Promise.reject(`${enSrcFile} file was not modified.`);
})
.then(diff => parseDiff(diff))
.then(parseDiff)
.then(done)
.catch(e => {
done();
Expand Down
Loading

0 comments on commit 5a2c492

Please sign in to comment.