Tooling tour
Goal: Know the core superjs subcommands.
| Command | Purpose |
|---|---|
check | Type-check without emit |
build | Compile to JS |
lint | Style rules SJS-L* |
format | Canonical formatting |
doc / docgen | API docs from exports |
init | Scaffold project templates |
lsp | Language server (stdio) |
Example
// Typical loop
// superjs check src/**/*.sjs
// superjs lint src/**/*.sjs
// superjs build src --out-dir distKey takeaways
- Run
checkin CI on every PR. format --checkprevents style drift.- LSP powers editor diagnostics.
Next: Migrating a TS file