Skip to content

Commit

Permalink
feat(main): Update git diff command
Browse files Browse the repository at this point in the history
- Make git diff command gets all ".js" or ".ts" files in the "src" directory.
  • Loading branch information
tverhoken committed Mar 20, 2019
1 parent 8265799 commit 3b2e100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function run(commandArgs: string[]) {
const strykerConfPath = join(process.cwd(), "stryker.conf.js");

exec(
"git diff origin/master --name-only | grep -E -v '.*\\.test.*' | grep -e 'src/.*\\.ts'",
"git diff origin/master --name-only | grep -E -v '.*\\.test.*' | grep -e 'src/.*\\.[jt]s'",
(error, stdout, stderr) => {
if (error) {
console.error(error.message);
Expand Down

0 comments on commit 3b2e100

Please sign in to comment.