fix: sync config generator script corrupting cas data

This commit is contained in:
daimond113 2024-08-12 11:53:28 +02:00
parent c6d9f2e6cf
commit a737b56704
Signed by untrusted user who does not match committer: DevComp
GPG key ID: 429EF1C337871656
2 changed files with 8 additions and 4 deletions

View file

@ -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 = {},
}

View file

@ -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