aboutsummaryrefslogtreecommitdiff
path: root/scripts/generateLocales.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-09 18:06:42 +0200
committerGitHub <[email protected]>2023-10-09 16:06:42 +0000
commit72bf57d9dfe6569f595e64441e02feb8d5d3165f (patch)
tree294d0c8aeea90fc358b1b340ee56be212fcd5519 /scripts/generateLocales.ts
parenta1ec9298ed2f543e59957fcc5b08a80a81a526e0 (diff)
downloadfaker-72bf57d9dfe6569f595e64441e02feb8d5d3165f.tar.xz
faker-72bf57d9dfe6569f595e64441e02feb8d5d3165f.zip
infra(unicorn): use hashbang for scripts (#2448)
Diffstat (limited to 'scripts/generateLocales.ts')
-rw-r--r--scripts/generateLocales.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts
index 36ca37c9..fcf2fa26 100644
--- a/scripts/generateLocales.ts
+++ b/scripts/generateLocales.ts
@@ -1,3 +1,5 @@
+#!/usr/bin/env node
+
/**
* This file contains a script that can be used to update the following files:
*
@@ -366,6 +368,7 @@ async function main(): Promise<void> {
}
main().catch((e) => {
+ // Workaround until top level await is available
console.error(e);
process.exit(1);
});