packaging: Add pesde support, feat: Add searching and clearing to ref
+ Added pesde support + Added `.search()` to `ref` and made `ref()` (`.set_ref()`) & `.search()` return a clearer which removes the reference + Bumped to 0.1.6
This commit is contained in:
parent
d235e883a1
commit
b4cc94f369
14 changed files with 109 additions and 15 deletions
|
@ -1,6 +1,21 @@
|
|||
--!strict
|
||||
local fs = require("@lune/fs")
|
||||
local spawn = require("util/spawn")
|
||||
|
||||
spawn.start("rojo sourcemap dev.project.json -o sourcemap.json")
|
||||
spawn.start("lune run install-packages")
|
||||
spawn.start("darklua process --config .darklua.json lib/ dist/", { env = { ROBLOX_DEV = "false" } })
|
||||
|
||||
for _, path in fs.readDir("dist") do
|
||||
path = `dist/{path}`
|
||||
if not fs.isFile(path) then
|
||||
continue
|
||||
end
|
||||
|
||||
print("found working file")
|
||||
|
||||
local file = fs.readFile(path)
|
||||
local new_contents =
|
||||
string.gsub(file, `require%("%.%./jecs"%)`, `require(script.Parent.Parent:FindFirstChild('jecs'))`)
|
||||
fs.writeFile(path, new_contents)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue