Move scripts into separate folders

This commit is contained in:
schroda
2025-02-17 02:45:02 +01:00
parent 0a34ae01ba
commit 1ae98afa34
9 changed files with 23 additions and 23 deletions

View File

@@ -9,8 +9,8 @@
import path from 'path';
import fs from 'fs';
const outputFilePath = path.join(import.meta.dirname, '../../src/lib/dayjs/Locales.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../node_modules/dayjs/locale');
const outputFilePath = path.join(import.meta.dirname, '../../../src/lib/dayjs/Locales.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../../node_modules/dayjs/locale');
const dayjsLocaleFileNames = fs.readdirSync(resourcesDirPath);

View File

@@ -9,8 +9,8 @@
import path from 'path';
import fs from 'fs';
const outputFilePath = path.join(import.meta.dirname, '../../src/lib/dayjs/LocaleImporter.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../node_modules/dayjs/locale');
const outputFilePath = path.join(import.meta.dirname, '../../../src/lib/dayjs/LocaleImporter.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../../node_modules/dayjs/locale');
const dayjsLocaleFileNames = fs.readdirSync(resourcesDirPath);

View File

@@ -8,7 +8,7 @@
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { createCommitChangelog } from './release/CommitChangelog.utils.ts';
import { createCommitChangelog } from './CommitChangelog.utils.ts';
const { sha } = yargs(hideBin(process.argv))
.options({

View File

@@ -9,9 +9,9 @@
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import dayjs from 'dayjs';
import { createCommitChangelog } from './release/CommitChangelog.utils.ts';
import { createTranslationChangelog } from './release/TranslationChangelog.utils.ts';
import { validateWeblateDates } from './weblate/Weblate.utils.ts';
import { createCommitChangelog } from './CommitChangelog.utils.ts';
import { createTranslationChangelog } from './TranslationChangelog.utils.ts';
import { validateWeblateDates } from '../weblate/Weblate.utils.ts';
const { sha, date } = yargs(hideBin(process.argv))
.options({

View File

@@ -8,8 +8,8 @@
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { createTranslationChangelog } from './release/TranslationChangelog.utils.ts';
import { TRANSLATION_CHANGELOG_YARG_OPTIONS_DEFAULT } from './weblate/Weblate.constants.ts';
import { createTranslationChangelog } from './TranslationChangelog.utils.ts';
import { TRANSLATION_CHANGELOG_YARG_OPTIONS_DEFAULT } from '../weblate/Weblate.constants.ts';
const { afterDate, beforeDate, requiredContributionCount, keepKnownContributors } = yargs(hideBin(process.argv))
.options({

View File

@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": [
"./*"
"./**/*"
],
"compilerOptions": {
"moduleResolution": "node"

View File

@@ -12,12 +12,12 @@ import {
fetchWeblateLanguageStats,
getWeblateLanguageStatsFor,
meetsTranslatedPercentThreshold as meetsTranslatedPercentThresholdBase,
} from './weblate/Weblate.utils.ts';
import { WeblateLanguageStatistic } from './weblate/Weblate.types.ts';
import { TRANSLATED_PERCENT_THRESHOLD } from './weblate/Weblate.constants.ts';
} from './Weblate.utils.ts';
import { WeblateLanguageStatistic } from './Weblate.types.ts';
import { TRANSLATED_PERCENT_THRESHOLD } from './Weblate.constants.ts';
const outputFilePath = path.join(import.meta.dirname, '../../src/i18n/index.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../public/locales');
const outputFilePath = path.join(import.meta.dirname, '../../../src/i18n/index.ts');
const resourcesDirPath = path.join(import.meta.dirname, '../../../public/locales');
const extractLanguageCode = (resourceFileNames: string): string =>
path.basename(resourceFileNames, path.extname(resourceFileNames));