From cbe268024234a619075ce9a707a26edbc0d42168 Mon Sep 17 00:00:00 2001 From: Suray <42720850+sur4y@users.noreply.github.com> Date: Mon, 10 Feb 2025 15:43:32 +0300 Subject: [PATCH] feat: support `roblox_server_packages/` for sync config generator --- src/generators/rojo/sync_config.luau | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/generators/rojo/sync_config.luau b/src/generators/rojo/sync_config.luau index 8458282..1ae946a 100644 --- a/src/generators/rojo/sync_config.luau +++ b/src/generators/rojo/sync_config.luau @@ -104,6 +104,17 @@ return function( } end + -- If the config tree does not include pesde's downloaded roblox server dependencies + -- directory, we add it as an optional one for the future, once server dependencies + -- are installed + if not syncConfigTree["roblox_server_packages"] then + syncConfigTree["roblox_server_packages"] = { + ["$path"] = { + optional = "roblox_server_packages", + }, + } + end + -- Finally, we serialize the config to a JSON string and optionally write it -- to the sync config path local serializedConfig =