Skip to content

Commit 597c1ec

Browse files
author
Matthew Holloway
committed
TypeScript detection filtering 'node_modules'. See #5947
1 parent 45bc628 commit 597c1ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function writeJson(fileName, object) {
2222
}
2323

2424
function verifyNoTypeScript() {
25-
const typescriptFiles = globby('**/*.(ts|tsx)', { cwd: paths.appSrc });
25+
const typescriptFiles = globby(['**/*.(ts|tsx)', '!**/node_modules'], { cwd: paths.appSrc });
2626
if (typescriptFiles.length > 0) {
2727
console.warn(
2828
chalk.yellow(

0 commit comments

Comments
 (0)