From e68f5d0928254b7fa8455eed4c815ee0586f9656 Mon Sep 17 00:00:00 2001 From: let <87399666+lettuce-magician@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:10:57 -0300 Subject: [PATCH] feat(sourcemap_generator): support init.lua files (#1) --- lune/rojo/sourcemap_generator.luau | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lune/rojo/sourcemap_generator.luau b/lune/rojo/sourcemap_generator.luau index 67ee112..824af5f 100644 --- a/lune/rojo/sourcemap_generator.luau +++ b/lune/rojo/sourcemap_generator.luau @@ -10,6 +10,9 @@ if fs.isFile(package_directory .. "/default.project.json") then elseif fs.isFile(package_directory .. "/init.luau") then local sourcemap = { filePaths = { "init.luau" } } stdio.write(serde.encode("json", sourcemap, false)) +elseif fs.isFile(package_directory .. "/init.lua" then + local sourcemap = { filePaths = { "init.lua" } } + stdio.write(serde.encode("json", sourcemap, false)) 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)