From 42909bea75f8d77cc2d1038943ea356dac38899b Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sat, 30 Mar 2024 11:35:39 +0530 Subject: [PATCH] chore: fix bundler script special path handling --- .lune/bundle.luau | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.lune/bundle.luau b/.lune/bundle.luau index 7306b38..3ea0eed 100644 --- a/.lune/bundle.luau +++ b/.lune/bundle.luau @@ -53,23 +53,25 @@ function main() print(`\nbundled {#ENTYRPOINTS} files in {os.clock() - bundleStart}s`) local fsStart = os.clock() - for pos, path in { table.unpack(ENTYRPOINTS), TS_TYPES_PATH } do + for pos, path in { TS_TYPES_PATH, table.unpack(ENTYRPOINTS) } do local bundle = out[path] if path == LUAU_TYPES_PATH then bundle = fs.readFile(LUAU_TYPES_PATH) + print(bundle) elseif path == TS_TYPES_PATH then - bundle = fs.readFile(LUAU_TYPES_PATH) + bundle = fs.readFile(TS_TYPES_PATH) + print(bundle) end path = "out/" .. path:split("/")[3] - stdio.write(`\x1B[2K\r{pos}/{#ENTYRPOINTS} write {path}`) + stdio.write(`\x1B[2K\r{pos}/{#ENTYRPOINTS + 1} write {path}`) task.wait(0.1) fs.writeFile(path, bundle) end - stdio.write(`\x1B[2K\rwrote {#ENTYRPOINTS} files in {os.clock() - fsStart}s\n`) + stdio.write(`\x1B[2K\rwrote {#ENTYRPOINTS + 1} files in {os.clock() - fsStart}s\n`) end return main()