fixed filename extension check

This commit is contained in:
Ulf Gebhardt 2019-05-31 15:46:37 +02:00
parent 630e895f6c
commit 4c758a9083
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3

View File

@ -12,7 +12,7 @@ const findGqlFiles = dir => {
// Recurse into a subdirectory
results = results.concat(findGqlFiles(file))
} else {
if (file.split('.').pop() === 'gql') {
if (path.extname(file) === '.gql') {
// Is a gql file
results.push(file)
}