diff --git a/bun.lockb b/bun.lockb index d33c85c..e3e167c 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/utils/index.ts b/src/utils/index.ts index ed509b8..e3dba17 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -21,7 +21,7 @@ export const getFiles = async ( const filePath = path.join(dirPath, file) const stats = await fsPromises.stat(filePath) - if (stats.isFile()) { + if (stats.isFile() && file.endsWith('.json')) { fileList.push(filePath) } else if (stats.isDirectory()) { await getFiles(filePath, fileList)