How to handle Scripts with Children (Hierarchy) on local file system?

I am currently migrating my game to an external IDE using the Script Sync feature. I’ve run into a file system compatibility question regarding script hierarchy

In Roblox Studio, a Script can be a parent of other Scripts (e.g., a Library ModuleScript containing a Services ModuleScript inside it). However, on Window, a file cannot have children, only folders can

To maintain this hierarchy locally, I am planning to use the “Init Script” pattern (similar to Rojo). Could you confirm if this is the correct naming convention for the native Script Sync to recognize them as a single script with children?

My proposed structure:

  • Instead of a file named Library.luau, I create a Folder named Library.
  • Inside that folder, I create the main script as init.luau.
  • I place the child scripts inside that same folder.

For example Library.luauLibarary.init.luau, GUIs.client.luau.GUIsinit.client.luau, Framework.server.luauFramework.init.server.luau

Is this the correct workflow for the new Sync feature to reconstruct the hierarchy properly back in Studio?

Seems you make things more complex than they are.
Script Sync saves this:
image
into this:
image
Name “parent” obviously lost (became “init”), but sync does work.
Did I miss something?