Ver código fonte

chore(core): Fix i18n message output dir

Michael Bromley 1 ano atrás
pai
commit
8725ba6b29
1 arquivos alterados com 1 adições e 2 exclusões
  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 MESSAGES_GLOB = 'i18n/messages/**/*';
 const DEST_DIR = path.join(__dirname, '../dist');
-const MESSAGES_DEST_DIR = path.join(__dirname, '../dist/i18n/messages');
 
 function copyFiles(sourceGlob: string, destinationDir: string) {
     const srcDir = path.join(__dirname, '../src');
@@ -36,7 +35,7 @@ function copySchemas() {
 
 function copyI18nMessages() {
     try {
-        copyFiles(MESSAGES_GLOB, MESSAGES_DEST_DIR);
+        copyFiles(MESSAGES_GLOB, DEST_DIR);
         console.log('I18n messages copied successfully!');
     } catch (error) {
         console.error('Error copying i18n messages:', error);