From 3b2e100edd7dd90bcb76c6fc96e64c95cd0b9b61 Mon Sep 17 00:00:00 2001 From: tverhoken Date: Wed, 20 Mar 2019 10:46:07 +0100 Subject: [PATCH] feat(main): Update git diff command - Make git diff command gets all ".js" or ".ts" files in the "src" directory. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bc8b038..4dc185c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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);