From 6b44cbcb779ae0b6ad28c7179cb7d6bc295d2747 Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Tue, 9 Apr 2024 10:17:40 +0300 Subject: [PATCH] Revert "Editor: fix build translations" This reverts commit e497cb02294dd31a28e219e1ddf2547d095ed6ac. --- .../doceditor/scripts/buildTranslations.js | 6 +---- packages/doceditor/tsconfig.json | 27 ++++++++++++++----- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/packages/doceditor/scripts/buildTranslations.js b/packages/doceditor/scripts/buildTranslations.js index 718986bfee..c53cfbe977 100644 --- a/packages/doceditor/scripts/buildTranslations.js +++ b/packages/doceditor/scripts/buildTranslations.js @@ -33,11 +33,7 @@ beforeBuild( path.join(__dirname, "../../../public/locales"), ], path.join(__dirname, "../src/utils/autoGeneratedTranslations.js"), - { - path: path.join(__dirname, "../../client/public/locales"), - files: ["Files.json"], - alias: "CLIENT_PUBLIC_DIR", - }, + null, true, ); diff --git a/packages/doceditor/tsconfig.json b/packages/doceditor/tsconfig.json index 62d94935ef..147aeeb3d0 100644 --- a/packages/doceditor/tsconfig.json +++ b/packages/doceditor/tsconfig.json @@ -1,8 +1,14 @@ { "compilerOptions": { "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "types": ["./index.d.ts"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "types": [ + "./index.d.ts" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -20,10 +26,15 @@ } ], "paths": { - "@/*": ["./src/*"], - "PUBLIC_DIR/*": ["../../public/*"], - "ASSETS_DIR/*": ["./public/*"], - "CLIENT_PUBLIC_DIR/*": ["../client/public/*"] + "@/*": [ + "./src/*" + ], + "PUBLIC_DIR/*": [ + "../../public/*" + ], + "ASSETS_DIR/*": [ + "./public/*" + ] } }, "include": [ @@ -34,5 +45,7 @@ "next.config.js", "./.next/types/**/*.ts" ], - "exclude": ["node_modules"] + "exclude": [ + "node_modules" + ] }