Exclude .d.ts files from TypeScript glob

This commit is contained in:
Aaron Reisman
2019-02-17 00:17:49 -08:00
committed by Brody McKee
parent 8026a51c53
commit df3e73f454

View File

@@ -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(