# @nyrra/maker

Maker-compatible ontology-as-code primitives used by Prismantix packages.

## Install

```bash
npm install @nyrra/maker
```

## Usage

```ts
import { defineObject, defineProperty } from "@nyrra/maker";

const ExampleObject = defineObject({
	apiName: "Example",
	description: "Example ontology object.",
	primaryKey: "exampleId",
	properties: {
		exampleId: defineProperty({
			type: "string",
			description: "Stable business identifier.",
			examples: ["example_001"],
		}),
	},
});
```

## Local Build

Run from the repo root:

```bash
pnpm exec nx build maker --skipNxCache
```

## Local Test

Run from the repo root:

```bash
pnpm exec nx test maker --skipNxCache
```
