From df3e73f454f718dbb3f928ecf681a50467e5a18d Mon Sep 17 00:00:00 2001 From: Aaron Reisman Date: Sun, 17 Feb 2019 00:17:49 -0800 Subject: [PATCH] Exclude `.d.ts` files from TypeScript glob --- packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js b/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js index 370c7176e19..fa4b5c8716e 100644 --- a/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js +++ b/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js @@ -22,7 +22,7 @@ function writeJson(fileName, object) { } function verifyNoTypeScript() { - const typescriptFiles = globby(['**/*.(ts|tsx)', '!**/node_modules'], { cwd: paths.appSrc }); + const typescriptFiles = globby(['**/*.(ts|tsx)', '!**/node_modules', '!**/*.d.ts'], { cwd: paths.appSrc }); if (typescriptFiles.length > 0) { console.warn( chalk.yellow(