From eee2f5bbbbd4141a54f2877b842942b2147761fa Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Thu, 13 Apr 2023 22:16:52 -0500 Subject: [PATCH] Support full rebuilds in the rebuildclient action --- src/actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/actions.ts b/src/actions.ts index a86a480..ab9dd3e 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -328,7 +328,7 @@ export const actions: {[k: string]: QueryHandler} = { return {updated: update, success: true}; }, - async rebuildclient() { + async rebuildclient(params) { await this.requireMainServer(); if (!Config.restartip || !Config.clientpath) { @@ -343,7 +343,9 @@ export const actions: {[k: string]: QueryHandler} = { } catch (e: any) { throw new ActionError(e.message); } - const [, , stderr] = await bash('node build', Config.clientpath); + const [, , stderr] = await bash( + `node build${params.full ? ' full' : ''}`, Config.clientpath + ); if (stderr) throw new ActionError(`Compilation failed:\n${stderr}`); return {updated: update, success: true}; },