Reference

Build and emit

Optional build commands when a host project needs generated modules — not required for check, fmt, or point run.

Summary

Most workflows stay on .point source plus point check and point launch. Use the commands on this page when something outside Point imports compiled files from generated/.

Do not hand-edit build output. Repair .point and rebuild.

Build decision tree

Pick one path — do not memorize every emit command:

You have…CommandOutput
Logic, actions, routes (JS host)point buildgenerated/*.js
Full-stack app (UI + API + dist)point build-appgenerated/ + dist/
Records → database schemapoint build-schemaSQL migrations
React/Vite host wants .tspoint build-tsgenerated/*.ts (advanced)
Python automation scriptspoint build-pygenerated/*.py (advanced, no UI/views)
Compiler tooling / debuggingpoint build-astAST JSON (internal)

Default: JavaScript. You author .point; the host runs generated JS unless you opt into TS or Python.

Default build

point build myfile.point generated/myfile.js
point build --production myfile.point generated/myfile.js

Use for Bun/Node hosts. Add --production for deploy-oriented output — see Deploy.

Batch:

point build-all

Typed build (optional)

point build-ts myfile.point generated/myfile.ts
point build-ts-all

Use when a host stack wants .ts imports or tsc in CI.

Python build (optional, advanced)

point build-py examples/math.point generated/math.py
point build-py-all

Covers logic, actions, routes, workflows, and commands where a Python runtime consumes output. Application UI, views, and most client code still use the default JavaScript build. See Python build (build-py) for run examples (including examples/tools/process-runner.point) and std bridge details.

AST output (tooling)

point build-ast myfile.point generated/myfile.ast.json

For debugging and tooling — not normal app execution.

See also