diff options
| author | Matt Mayer <[email protected]> | 2023-08-28 14:19:19 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-28 07:19:19 +0000 |
| commit | 28bc32cb8c7fb5f99a352c96af6dcb976985e3c0 (patch) | |
| tree | 41fbbe7216469dd428db7da92ef505f4e8edd74d /scripts | |
| parent | 87d3423960d326494d1710946f29fb3930d1a300 (diff) | |
| download | faker-28bc32cb8c7fb5f99a352c96af6dcb976985e3c0.tar.xz faker-28bc32cb8c7fb5f99a352c96af6dcb976985e3c0.zip | |
chore: ignore dotfiles in generate locales (#2348)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/generateLocales.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index 3c1cb8db..81cf4331 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -162,6 +162,7 @@ async function generateLocalesIndexFile( depth: number ): Promise<void> { let modules = readdirSync(path); + modules = modules.filter((file) => !file.startsWith('.')); modules = removeIndexTs(modules); modules = removeTsSuffix(modules); modules.sort(); |
