Sanity Library Reference Docs
    Preparing search index...
    • Every file a config's emission plan produces, each tagged with who owns it. Does not read or write the generation root's files: the caller supplies what is already there and applies the result. When wiring an existing blueprint without a supplied compiler, it loads the optional installed TypeScript package. Throws when a generated function is planned and the project declares no version for a dependency it imports, when a deployment's name cannot be imported as a named export, and when a declared effect name cannot become a distinct registry binding and handler file, or when wiring an existing blueprint requires a TypeScript 6 compiler API that is unavailable.

      The resources module and every function shell import their deployment as a named export from configFile. Verify that the config module exports each deployment under the name deploymentExportIdentifier returns before writing the plan. Write it for a config missing that export and those modules cannot compile, while emissionDivergences still reports the tree aligned.

      Parameters

      Returns EmissionWritePlan