# Workspace scripts

Run the repository’s existing entry points from the workspace root.

| Command                                  | Purpose                                                                                                                                                 |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pnpm run setup` / `pnpm doctor`         | Configure or diagnose the project                                                                                                                       |
| `pnpm dev`                               | Start workspace development tasks                                                                                                                       |
| `pnpm dev:web` / `pnpm dev:mobile`       | Start one application                                                                                                                                   |
| `pnpm build`                             | Build workspace targets                                                                                                                                 |
| `pnpm check-types`                       | Run workspace type checks                                                                                                                               |
| `pnpm lint`                              | Repository source checks                                                                                                                                |
| `pnpm i18n:check`                        | [x18n](https://x18n.dev) check of the web and mobile catalogs (missing keys, placeholders, unused keys)                                                 |
| `pnpm i18n:ui`                           | x18n UI to browse and edit keys across locales                                                                                                          |
| `pnpm exec oxlint`                       | Oxlint, including import boundaries                                                                                                                     |
| `pnpm format:check` / `pnpm format`      | Check changed files / format                                                                                                                            |
| `pnpm test`                              | Unit suites across workspaces                                                                                                                           |
| `pnpm test:integration`                  | Isolated local Postgres integration suite                                                                                                               |
| `pnpm test:e2e` / `pnpm test:e2e:mobile` | Build the Worker, then the [end-to-end](/docs/development/e2e) web / iOS suite on one locked local stack                                                |
| `pnpm db:generate` / `pnpm db:migrate`   | Generate / apply reviewed migrations                                                                                                                    |
| `pnpm db:studio`                         | Open database inspection tooling                                                                                                                        |
| `pnpm jobs:run`                          | Run scheduled work manually against configured data                                                                                                     |
| `pnpm update:js`                         | Guarded JavaScript dependency updater                                                                                                                   |
| `pnpm update:native`                     | Expo compatibility repair; review and rebuild afterward                                                                                                 |
| `pnpm skills:update [skill ...]`         | Update the vendored agent skills in `skills-lock.json` to upstream, then write the repo notes from `.agents/skill-notes/` back into them and check them |
| `pnpm deploy`                            | Explicit deployment to the configured Worker                                                                                                            |

`db:push` deliberately refuses execution. Jobs and deployment commands can change configured remote state; use a disposable environment for experiments. See [testing](/docs/development/testing) for isolated commands.

Turborepo coordinates workspace tasks. Before changing its configuration, resolve the installed `turbo` package and read its bundled `docs/README.md` and relevant task documentation; behavior is version-dependent.

## Key files [#key-files]

- [`package.json`](https://github.com/CarlosZiegler/fofo/blob/main/package.json)
- [`turbo.json`](https://github.com/CarlosZiegler/fofo/blob/main/turbo.json)
- [`scripts/update-dependencies.mjs`](https://github.com/CarlosZiegler/fofo/blob/main/scripts/update-dependencies.mjs)
- [`scripts/update-skills.mjs`](https://github.com/CarlosZiegler/fofo/blob/main/scripts/update-skills.mjs) and [`scripts/apply-skill-notes.mjs`](https://github.com/CarlosZiegler/fofo/blob/main/scripts/apply-skill-notes.mjs)
