Move scripts into separate folders
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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({
|
||||
@@ -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({
|
||||
@@ -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({
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": [
|
||||
"./*"
|
||||
"./**/*"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node"
|
||||
|
||||
@@ -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));
|
||||
Reference in New Issue
Block a user