diff --git a/lune/rojo/roblox_sync_config_generator.luau b/lune/rojo/roblox_sync_config_generator.luau index d6d4d7c..3631255 100644 --- a/lune/rojo/roblox_sync_config_generator.luau +++ b/lune/rojo/roblox_sync_config_generator.luau @@ -1,5 +1,5 @@ -local process = require("@lune/process") local fs = require("@lune/fs") +local process = require("@lune/process") local serde = require("@lune/serde") local package_directory = process.args[1] @@ -20,7 +20,7 @@ for i, file in process.args do local name = string.gsub(file, ".luau?$", "") if name == "init" then - output["$path"] = file + output.tree["$path"] = file continue end @@ -29,8 +29,16 @@ for i, file in process.args do } end -if not output["$path"] then - output["$className"] = "Folder" +if not output.tree["$path"] then + output.tree["$className"] = "Folder" +end + +if not output.tree["roblox_packages"] then + output.tree["roblox_packages"] = { + ["$path"] = { + optional = "roblox_packages", + }, + } end fs.writeFile(package_directory .. "/default.project.json", serde.encode("json", output, true)) diff --git a/lune/rojo/sourcemap_generator.luau b/lune/rojo/sourcemap_generator.luau index 934570d..1ab4a7c 100644 --- a/lune/rojo/sourcemap_generator.luau +++ b/lune/rojo/sourcemap_generator.luau @@ -1,5 +1,5 @@ -local process = require("@lune/process") local fs = require("@lune/fs") +local process = require("@lune/process") local stdio = require("@lune/stdio") local package_directory = process.args[1] diff --git a/stylua.toml b/stylua.toml new file mode 100644 index 0000000..056139b --- /dev/null +++ b/stylua.toml @@ -0,0 +1,2 @@ +[sort_requires] +enabled = true \ No newline at end of file