From 707f5633e15b87a2223212ea9b3ae5d039087ecd Mon Sep 17 00:00:00 2001 From: Pavlo Karatsiuba Date: Fri, 10 Mar 2023 15:08:13 +0100 Subject: [PATCH] Renamed the output file by adding _all after the language code --- steps/export.ts | 4 ++-- test/e2e.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/steps/export.ts b/steps/export.ts index 1971ac0..d91382f 100644 --- a/steps/export.ts +++ b/steps/export.ts @@ -248,7 +248,7 @@ const exportData = async () => { const targets: Target[] = [ { - output: `phet_mul_${datePostfix}`, + output: `phet_mul_all_${datePostfix}`, date: now, languages: Object.keys(languages).filter((lang) => { const langCode = /^(\w{2})_/gm.exec(lang)?.pop() @@ -259,7 +259,7 @@ const exportData = async () => { if (!argv.mulOnly) { for (const lang of Object.keys(languages)) { targets.push({ - output: `phet_${lang.toLowerCase().replace('_', '-')}_${datePostfix}`, + output: `phet_${lang.toLowerCase().replace('_', '-')}_all_${datePostfix}`, date: now, languages: [lang], }) diff --git a/test/e2e.test.ts b/test/e2e.test.ts index 0727776..c6c7ed8 100644 --- a/test/e2e.test.ts +++ b/test/e2e.test.ts @@ -18,7 +18,7 @@ const targetDir = './dist/' const now = new Date() const datePostfix = `${now.getUTCFullYear()}-${(now.getUTCMonth() + 1).toString().padStart(2, '0')}` -const files = [`${targetDir}phet_mul_${datePostfix}.zim`, `${targetDir}phet_${language}_${datePostfix}.zim`] +const files = [`${targetDir}phet_mul_all_${datePostfix}.zim`, `${targetDir}phet_${language}_all_${datePostfix}.zim`] const options = { cwd: join(__dirname, '..'),