Generated code

Source files written by a script from another source of truth, such as Luau types built from a data file.

Think of it as A printed price list made from the menu board, reprinted whenever the board changes.

Generated files carry a header saying so and are never edited by hand. Commit them when editors and type checkers need them, and have CI regenerate in a check mode and fail when the committed copy is stale. Beacon Yard's scripts/gen-assets.mjs and the course's generated ItemId type follow this pattern.

Official reference: lune-org.github.io

Related terms