diff options
| author | ST-DDT <[email protected]> | 2023-10-09 18:06:42 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-09 16:06:42 +0000 |
| commit | 72bf57d9dfe6569f595e64441e02feb8d5d3165f (patch) | |
| tree | 294d0c8aeea90fc358b1b340ee56be212fcd5519 | |
| parent | a1ec9298ed2f543e59957fcc5b08a80a81a526e0 (diff) | |
| download | faker-72bf57d9dfe6569f595e64441e02feb8d5d3165f.tar.xz faker-72bf57d9dfe6569f595e64441e02feb8d5d3165f.zip | |
infra(unicorn): use hashbang for scripts (#2448)
| -rw-r--r-- | .eslintrc.js | 1 | ||||
| -rw-r--r-- | scripts/apidoc.ts | 2 | ||||
| -rw-r--r-- | scripts/bundle.ts | 2 | ||||
| -rw-r--r-- | scripts/diff.ts | 2 | ||||
| -rw-r--r-- | scripts/generateLocales.ts | 3 |
5 files changed, 9 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 5fce4cb3..afd06f44 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -64,7 +64,6 @@ module.exports = defineConfig({ 'unicorn/no-instanceof-array': 'off', 'unicorn/no-negated-condition': 'off', 'unicorn/no-object-as-default-parameter': 'off', - 'unicorn/no-process-exit': 'off', 'unicorn/no-useless-switch-case': 'off', 'unicorn/no-zero-fractions': 'off', 'unicorn/numeric-separators-style': 'off', diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index 31171b9d..8c7ac6b8 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { generate } from './apidoc/generate'; import { initMarkdownRenderer } from './apidoc/markdown'; diff --git a/scripts/bundle.ts b/scripts/bundle.ts index 8076f18d..bf953d42 100644 --- a/scripts/bundle.ts +++ b/scripts/bundle.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { buildSync } from 'esbuild'; import { globSync } from 'glob'; import { allLocales } from '../src'; diff --git a/scripts/diff.ts b/scripts/diff.ts index 09a07046..a420a66c 100644 --- a/scripts/diff.ts +++ b/scripts/diff.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { existsSync } from 'node:fs'; import { argv } from 'node:process'; import { diff } from './apidoc/diff'; 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); }); |
