Skip to content

Commit 62433ef

Browse files
committed
♻️(i18n) adapt script to major upgrade of yargs
"yargs" dependency has been updated to version 18.0.0, which causes breaking changes in the script.
1 parent bc0824d commit 62433ef

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/frontend/packages/i18n/format-deploy.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import fs from 'fs';
22
import path from 'path';
33

4-
import { hideBin } from 'yargs/helpers';
5-
import yargs from 'yargs/yargs';
4+
import yargs from 'yargs';
65

76
// Get our args
8-
const argv = yargs(hideBin(process.argv)).argv;
7+
const argv = yargs(process.argv).argv;
98
const { app, output } = argv;
109

1110
const folderPath = './locales/' + app;

src/frontend/packages/i18n/rebuild-translations.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
import fs from 'fs';
99
import path from 'path';
1010

11-
import { hideBin } from 'yargs/helpers';
12-
import yargs from 'yargs/yargs';
11+
import yargs from 'yargs';
1312

1413
// Get our args
15-
const argv = yargs(hideBin(process.argv)).argv;
14+
const argv = yargs(process.argv).argv;
1615
const { app, output, language } = argv;
1716

1817
const folderPath = './locales/' + app;

0 commit comments

Comments
 (0)