mirror of
https://github.com/pesde-pkg/scripts.git
synced 2024-12-12 15:00:37 +00:00
12 lines
480 B
Text
12 lines
480 B
Text
local process = require("@lune/process")
|
|
local fs = require("@lune/fs")
|
|
local stdio = require("@lune/stdio")
|
|
|
|
local package_directory = process.args[1]
|
|
|
|
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 " .. package_directory)
|
|
end
|