diff --git a/tools/build/build.js b/tools/build/build.js index 72af36eb37561..d1b376bbc2377 100755 --- a/tools/build/build.js +++ b/tools/build/build.js @@ -198,12 +198,7 @@ export const TgFontTarget = new Juke.Target({ 'tgui/packages/tgfont/dist/tgfont.eot', 'tgui/packages/tgfont/dist/tgfont.woff2', ], - executes: async () => { - await yarn('tgfont:build'); - fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.css', 'tgui/packages/tgfont/static/tgfont.css'); - fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.eot', 'tgui/packages/tgfont/static/tgfont.eot'); - fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.woff2', 'tgui/packages/tgfont/static/tgfont.woff2'); - } + executes: async () => yarn('tgfont:build'), }); export const TguiTarget = new Juke.Target({ @@ -285,7 +280,7 @@ export const LintTarget = new Juke.Target({ }); export const BuildTarget = new Juke.Target({ - dependsOn: [DmTarget, TguiTarget], + dependsOn: [DmTarget, TgFontTarget, TguiTarget], }); export const ServerTarget = new Juke.Target({ @@ -352,7 +347,7 @@ const prependDefines = (...defines) => { }; export const TgsTarget = new Juke.Target({ - dependsOn: [TguiTarget], + dependsOn: [TguiTarget, TgFontTarget], executes: async () => { Juke.logger.info('Prepending TGS define'); prependDefines('TGS');