mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Accept .luau files (#552)
* accept .luau files * Accept .luau in snapshot creation * Update versioning and snapshots. * fix versioning * Run rustfmt * Reduce repetition in extension detection * Tidy build script change Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
This commit is contained in:
parent
8ea41480b7
commit
acf7456371
7 changed files with 45 additions and 5 deletions
|
|
@ -27,6 +27,12 @@ pub fn snapshot_lua(
|
|||
("LocalScript", name)
|
||||
} else if let Some(name) = match_trailing(&file_name, ".lua") {
|
||||
("ModuleScript", name)
|
||||
} else if let Some(name) = match_trailing(&file_name, ".server.luau") {
|
||||
("Script", name)
|
||||
} else if let Some(name) = match_trailing(&file_name, ".client.luau") {
|
||||
("LocalScript", name)
|
||||
} else if let Some(name) = match_trailing(&file_name, ".luau") {
|
||||
("ModuleScript", name)
|
||||
} else {
|
||||
return Ok(None);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue