소스 검색

chore(core): Fix i18n message output dir

Michael Bromley 1 년 전
부모
커밋
f9f6094ad3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      packages/core/build/copy-static.ts

+ 1 - 2
packages/core/build/copy-static.ts

@@ -7,7 +7,6 @@ import path from 'path';
 const SCHEMAS_GLOB = '**/*.graphql';
 const SCHEMAS_GLOB = '**/*.graphql';
 const MESSAGES_GLOB = 'i18n/messages/**/*';
 const MESSAGES_GLOB = 'i18n/messages/**/*';
 const DEST_DIR = path.join(__dirname, '../dist');
 const DEST_DIR = path.join(__dirname, '../dist');
-const MESSAGES_DEST_DIR = path.join(__dirname, '../dist/i18n/messages');
 
 
 function copyFiles(sourceGlob: string, destinationDir: string) {
 function copyFiles(sourceGlob: string, destinationDir: string) {
     const srcDir = path.join(__dirname, '../src');
     const srcDir = path.join(__dirname, '../src');
@@ -36,7 +35,7 @@ function copySchemas() {
 
 
 function copyI18nMessages() {
 function copyI18nMessages() {
     try {
     try {
-        copyFiles(MESSAGES_GLOB, MESSAGES_DEST_DIR);
+        copyFiles(MESSAGES_GLOB, DEST_DIR);
         console.log('I18n messages copied successfully!');
         console.log('I18n messages copied successfully!');
     } catch (error) {
     } catch (error) {
         console.error('Error copying i18n messages:', error);
         console.error('Error copying i18n messages:', error);