From f1e0bf1350a380a99b5dffc191c6f9cee922288e Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Tue, 21 May 2024 12:04:54 +0400 Subject: [PATCH] fix: running with Node.js 22 --- .babelrc.json | 5 ++++- .github/workflows/push.yml | 8 ++++---- src/locale/index.ts | 18 +++++++++--------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.babelrc.json b/.babelrc.json index fc70f4d82..265f77b9f 100644 --- a/.babelrc.json +++ b/.babelrc.json @@ -19,5 +19,8 @@ "src/frontend/assets/scripts/app-bundle.production.js", "src/frontend/assets/scripts/global-bundle.development.js", "src/frontend/assets/scripts/global-bundle.production.js" - ] + ], + "generatorOpts": { + "importAttributesKeyword": "with" + } } diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f5bf8c8b3..da2ee4992 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -11,7 +11,7 @@ jobs: - name: Setup uses: actions/setup-node@v3 with: - node-version: '18.17' + node-version: '18' cache: 'yarn' - name: Install run: yarn install --frozen-lockfile @@ -26,7 +26,7 @@ jobs: - name: Setup uses: actions/setup-node@v3 with: - node-version: '18.17' + node-version: '18' cache: 'yarn' - name: Install run: yarn install @@ -90,7 +90,7 @@ jobs: - name: Setup uses: actions/setup-node@v3 with: - node-version: '18.17' + node-version: '18' cache: 'yarn' - name: Install run: yarn install @@ -134,7 +134,7 @@ jobs: - name: Setup uses: actions/setup-node@v3 with: - node-version: '18.17' + node-version: '18' cache: 'yarn' - name: Install run: yarn install diff --git a/src/locale/index.ts b/src/locale/index.ts index 733c3eaad..43bf38cf1 100644 --- a/src/locale/index.ts +++ b/src/locale/index.ts @@ -1,14 +1,14 @@ import type { LocaleTranslations } from './config.js' -import deLocale from './de/translation.json' assert { type: 'json' } -import enLocale from './en/translation.json' assert { type: 'json' } -import esLocale from './es/translation.json' assert { type: 'json' } -import itLocale from './it/translation.json' assert { type: 'json' } -import jaLocale from './ja/translation.json' assert { type: 'json' } -import plLocale from './pl/translation.json' assert { type: 'json' } -import ptBrLocale from './pt-BR/translation.json' assert { type: 'json' } -import uaLocale from './ua/translation.json' assert { type: 'json' } -import zhCNLocale from './zh-CN/translation.json' assert { type: 'json' } +import deLocale from './de/translation.json' with { type: 'json' } +import enLocale from './en/translation.json' with { type: 'json' } +import esLocale from './es/translation.json' with { type: 'json' } +import itLocale from './it/translation.json' with { type: 'json' } +import jaLocale from './ja/translation.json' with { type: 'json' } +import plLocale from './pl/translation.json' with { type: 'json' } +import ptBrLocale from './pt-BR/translation.json' with { type: 'json' } +import uaLocale from './ua/translation.json' with { type: 'json' } +import zhCNLocale from './zh-CN/translation.json' with { type: 'json' } export * from './config.js' export * from './default-config.js'