diff --git a/lune/rojo/roblox_sync_config_generator.luau b/lune/rojo/roblox_sync_config_generator.luau index 63e41ba..d6d4d7c 100644 --- a/lune/rojo/roblox_sync_config_generator.luau +++ b/lune/rojo/roblox_sync_config_generator.luau @@ -4,6 +4,10 @@ local serde = require("@lune/serde") local package_directory = process.args[1] +if fs.isFile(package_directory .. "/default.project.json") then + return +end + local output = { tree = {}, } diff --git a/lune/rojo/sourcemap_generator.luau b/lune/rojo/sourcemap_generator.luau index a4c6a79..934570d 100644 --- a/lune/rojo/sourcemap_generator.luau +++ b/lune/rojo/sourcemap_generator.luau @@ -2,11 +2,11 @@ local process = require("@lune/process") local fs = require("@lune/fs") local stdio = require("@lune/stdio") -local project_path = process.args[1] +local package_directory = process.args[1] -if fs.isFile(project_path .. "/default.project.json") then - process.spawn("rojo", { "sourcemap", project_path }, { cwd = process.cwd, stdio = "forward" }) +if fs.isFile(package_directory .. "/default.project.json") then + process.spawn("rojo", { "sourcemap", package_directory }, { cwd = process.cwd, stdio = "forward" }) else -- use stderr to avoid this being parsed as the output of the sourcemap command - stdio.ewrite("no default.project.json found in " .. project_path) + stdio.ewrite("no default.project.json found in " .. package_directory) end