mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Add back legacy support for .json and .lua
This commit is contained in:
parent
4aac7d0d48
commit
5f059dbc16
10 changed files with 95 additions and 18 deletions
|
|
@ -68,12 +68,17 @@ pub fn snapshot_dir_no_meta(
|
|||
// TODO: We shouldn't need to know about Lua existing in this
|
||||
// middleware. Should we figure out a way for that function to add
|
||||
// relevant paths to this middleware?
|
||||
// Modern extensions (preferred)
|
||||
normalized_path.join("init.luau"),
|
||||
normalized_path.join("init.server.luau"),
|
||||
normalized_path.join("init.client.luau"),
|
||||
normalized_path.join("init.local.luau"),
|
||||
normalized_path.join("init.legacy.luau"),
|
||||
normalized_path.join("init.csv"),
|
||||
// Legacy extensions (for backwards compatibility)
|
||||
normalized_path.join("init.lua"),
|
||||
normalized_path.join("init.server.lua"),
|
||||
normalized_path.join("init.client.lua"),
|
||||
];
|
||||
|
||||
let snapshot = InstanceSnapshot::new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue