Overview
Thepart-main schematic reads the .nanoforge/{part}.save.json file produced by part-base and generates a fully wired main.ts (or main.js) entry point. It registers all libraries, components, systems, and entities declared in the save file.
Usage
Options
Output path resolution
The generated file is placed at one of the following paths, in priority order:outFile— if provided explicitly.nanoforge/editor/{part}/main.{language}— ifeditor: true{part}/main.{language}— default
How it works
part-main reads {directory}/.nanoforge/{part}.save.json, builds the full application bootstrap code, then writes the result as the entry point. Every time you add a component, system, or entity through the NanoForge CLI or editor, regenerating part-main keeps the entry point in sync with the save file.