1.0.0-alpha.2 • Published 3 years ago

git-changes-affected v1.0.0-alpha.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

git-changes-affected

Find git changes affected files

Quick start

Intalling via npm:

npm i git-changes-affected

Fnd what modules your last commit change affects by:

const gitChangesAffected = require('git-changes-affected');
gitChangesAffected();

Find impact of changes by certain commit:

gitChangesAffected({
  to: '59037780a46c5000830a7a6705ebfa82d5a30095'
});

Find impact of changes between 2 revisions:

gitChangesAffected({
  to: '59037780a46c5000830a7a6705ebfa82d5a30095',
  from: '8e0d337483f9c9db07deeb2d82d7a8b3f8515423'
});

If your repo uses special supports like JSX, flow, typescript, etc., you will need to enable @babel/parser plugins as following:

gitChangesAffected({
  parserOptions: {
    plugins: ['jsx', 'typescript']
  }
});