Skip to content

Commit

Permalink
TypeScript detection filtering 'node_modules'. See #5947
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Holloway committed Dec 11, 2018
1 parent 45bc628 commit 597c1ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function writeJson(fileName, object) {
}

function verifyNoTypeScript() {
const typescriptFiles = globby('**/*.(ts|tsx)', { cwd: paths.appSrc });
const typescriptFiles = globby(['**/*.(ts|tsx)', '!**/node_modules'], { cwd: paths.appSrc });
if (typescriptFiles.length > 0) {
console.warn(
chalk.yellow(
Expand Down

0 comments on commit 597c1ec

Please sign in to comment.