2026-05-01 20:18:50 +02:00
---
name: nix-build
2026-05-07 04:00:58 +02:00
description: Build any @singularity -forge/* package (or the full stack) via nix develop. Pass a package name like "pi-coding-agent", "native", "daemon", or "all" for a full core build.
2026-05-01 20:18:50 +02:00
---
2026-05-02 08:38:20 +02:00
All build commands in this repo must run inside `nix develop` . Never use bare cargo/rustc.
2026-05-01 20:18:50 +02:00
For a single package:
```
2026-05-02 08:38:20 +02:00
nix develop --command bash -c "npm run --workspace=@singularity -forge/< package > build"
2026-05-01 20:18:50 +02:00
```
For the full core build (native + all TS packages):
```
nix develop --command bash -c "npm run build:core"
```
For typecheck only:
```
nix develop --command bash -c "tsc --noEmit -p tsconfig.json"
```
For extensions typecheck:
```
nix develop --command bash -c "tsc --noEmit -p tsconfig.extensions.json"
```