aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-05-03 17:04:47 +0200
committerGitHub <[email protected]>2022-05-03 15:04:47 +0000
commit20fbeaf35d7c82cdf39da93097927d3a3d81c41c (patch)
tree5e659d7415d901838ec8b2339166b481dd393b3f /scripts
parentcc9aec71eb35e5be4949de9fd6f62f1b8ee48db0 (diff)
downloadfaker-20fbeaf35d7c82cdf39da93097927d3a3d81c41c.tar.xz
faker-20fbeaf35d7c82cdf39da93097927d3a3d81c41c.zip
refactor!: get rid of export = (#849)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generateLocales.ts4
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);