Skip to content

Commit

Permalink
Exclude .d.ts files from TypeScript glob
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiscontent authored and mrmckeb committed Feb 17, 2019
1 parent 8026a51 commit df3e73f
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)', '!**/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(
Expand Down

0 comments on commit df3e73f

Please sign in to comment.