Skip to content

Commit

Permalink
Fix TgFont being excluded from build process (#11902)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow authored Nov 19, 2024
1 parent 37034c8 commit 57f7553
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tools/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 57f7553

Please sign in to comment.