mirror of
https://github.com/pesde-pkg/scripts.git
synced 2024-12-12 07:00:35 +00:00
fix: sync config generator script corrupting cas data
This commit is contained in:
parent
c6d9f2e6cf
commit
a737b56704
2 changed files with 8 additions and 4 deletions
|
@ -4,6 +4,10 @@ local serde = require("@lune/serde")
|
||||||
|
|
||||||
local package_directory = process.args[1]
|
local package_directory = process.args[1]
|
||||||
|
|
||||||
|
if fs.isFile(package_directory .. "/default.project.json") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local output = {
|
local output = {
|
||||||
tree = {},
|
tree = {},
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,11 @@ local process = require("@lune/process")
|
||||||
local fs = require("@lune/fs")
|
local fs = require("@lune/fs")
|
||||||
local stdio = require("@lune/stdio")
|
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
|
if fs.isFile(package_directory .. "/default.project.json") then
|
||||||
process.spawn("rojo", { "sourcemap", project_path }, { cwd = process.cwd, stdio = "forward" })
|
process.spawn("rojo", { "sourcemap", package_directory }, { cwd = process.cwd, stdio = "forward" })
|
||||||
else
|
else
|
||||||
-- use stderr to avoid this being parsed as the output of the sourcemap command
|
-- 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
|
end
|
||||||
|
|
Loading…
Reference in a new issue