diff options
| author | Shinigami <[email protected]> | 2022-05-03 17:04:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-03 15:04:47 +0000 |
| commit | 20fbeaf35d7c82cdf39da93097927d3a3d81c41c (patch) | |
| tree | 5e659d7415d901838ec8b2339166b481dd393b3f /scripts | |
| parent | cc9aec71eb35e5be4949de9fd6f62f1b8ee48db0 (diff) | |
| download | faker-20fbeaf35d7c82cdf39da93097927d3a3d81c41c.tar.xz faker-20fbeaf35d7c82cdf39da93097927d3a3d81c41c.zip | |
refactor!: get rid of export = (#849)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/generateLocales.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index 38715b97..fc2c7ebc 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -88,7 +88,7 @@ function generateLocaleFile(locale: string): void { import ${locale} from '../locales/${locale}'; ${locale !== 'en' ? "import en from '../locales/en';" : ''} - const faker = new Faker({ + export const faker = new Faker({ locale: '${locale}', localeFallback: 'en', locales: { @@ -96,8 +96,6 @@ function generateLocaleFile(locale: string): void { ${locale !== 'en' ? 'en,' : ''} }, }); - - export = faker; `; content = format(content, prettierTsOptions); |
