mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 12:48:00 +08:00
Exclude .d.ts files from TypeScript glob
This commit is contained in:
committed by
Brody McKee
parent
8026a51c53
commit
df3e73f454
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user