# @isis/gpu-worker

@isis/gpu-worker — part of the Oshun monorepo.

TypeScript package. Built with tsc/tsup; consumed by other workspaces.

## Scripts

| Command                    | Definition                                                     |
| -------------------------- | -------------------------------------------------------------- |
| `pnpm build`               | nx build @isis/gpu-worker                                      |
| `pnpm serve`               | nx serve @isis/gpu-worker                                      |
| `pnpm dev`                 | nx serve @isis/gpu-worker --configuration=development          |
| `pnpm lint`                | nx lint @isis/gpu-worker                                       |
| `pnpm test`                | nx test @isis/gpu-worker                                       |
| `pnpm benchmark:executors` | vitest run src/executors/executor-throughput.benchmark.test.ts |
| `pnpm docker:build`        | nx docker-build @isis/gpu-worker                               |

## Layout

- `src/`

## Working on this package

The fastest local loop is via Nx:

```bash
pnpm nx test isis-gpu-worker
pnpm nx lint isis-gpu-worker
pnpm nx build isis-gpu-worker
```

When Nx is unhappy (usually because another worktree has duplicate project
names), bypass it with the underlying tools from this directory:

```bash
npx tsc --noEmit
npx vitest run
```

See the [root README](../../../README.md) for monorepo-wide conventions (catalog
deps, commit format, git workflow). See the
[Contributor Guide](../../../docs/CONTRIBUTING.md) for the full PR workflow.
