notation compile
notation compile <entryPoint>Compiles infra and runtime modules to dist/ without deploying. Two compilation passes:
- Infrastructure compilation — esbuild bundles the infra entry point with the
function-infra-plugin. This plugin intercepts.fn.tsimports and replaces handler exports with Lambda resource declarations:
runtime/todos.fn.ts
export const getTodos = handle.apiRequest(() => { ... });dist/todos.fn.ts
import { lambda } from "@notation/aws/lambda";
export const getTodos = lambda({ handler: "getTodos", ...config });- Function compilation — each
.fn.tsfile is bundled separately as a Node.js Lambda handler.
Output goes to dist/.