Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Config JSON Schema

moon.mod.json

Supported user configuration formats are the legacy JSON format and the moon.mod DSL. Legacy JSON keeps its existing field names:

{
  "name": "example/app",
  "deps": { "example/dep": "1.2.3" },
  "warn-list": "+a",
  "preferred-target": "js",
  "supported-targets": "js"
}

Commands that update a JSON manifest retain this format. moon fmt migrates it to moon.mod; --check and --warn preserve the input files.

Internal normalized representation

The schema below describes Moon’s internal normalized JSON representation for maintenance. It is not a schema for user-authored moon.mod.json files and does not establish a supported input format or a stable JSON export API.

moon.pkg.json