[SKIP CI] Fix "yargs" usage

With "esm" "yargs" is not a singleton anymore
This commit is contained in:
schroda
2024-12-25 14:34:46 +01:00
parent 50e53dedc3
commit 2a20326c76

View File

@@ -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<LanguageName, Contributor[]>;
const { afterDate, beforeDate, requiredContributionCount, keepKnownContributors } = yargs
const { afterDate, beforeDate, requiredContributionCount, keepKnownContributors } = yargs(hideBin(process.argv))
.options({
afterDate: {
alias: 'ad',