From 2a20326c76295b8dcdf8934e1137e7149caa6a0b Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 25 Dec 2024 14:34:46 +0100 Subject: [PATCH] [SKIP CI] Fix "yargs" usage With "esm" "yargs" is not a singleton anymore --- tools/scripts/createTranslationChangelog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/scripts/createTranslationChangelog.ts b/tools/scripts/createTranslationChangelog.ts index fd9b076b..a68f301f 100644 --- a/tools/scripts/createTranslationChangelog.ts +++ b/tools/scripts/createTranslationChangelog.ts @@ -10,6 +10,7 @@ import fs from 'fs'; import * as path from 'path'; import * as readline from 'readline'; import yargs from 'yargs'; +import { hideBin } from 'yargs/helpers'; import { ControlledPromise } from '@/lib/ControlledPromise.ts'; import tokens from './tokens.json'; @@ -94,7 +95,7 @@ interface Contributor { } type ContributionsByLanguage = Record; -const { afterDate, beforeDate, requiredContributionCount, keepKnownContributors } = yargs +const { afterDate, beforeDate, requiredContributionCount, keepKnownContributors } = yargs(hideBin(process.argv)) .options({ afterDate: { alias: 'ad',