Skip to content

Commit 2d985b2

Browse files
committed
refactor(oxa core): rename to @oxa/core
1 parent fb2d3a3 commit 2d985b2

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/primary.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ jobs:
5050
run: pnpm codegen all
5151

5252
# Typecheck generated code (TypeScript via tsc, Python via ty, Rust via cargo)
53-
# Note: oxa-types-ts uses build (not typecheck) to produce dist/*.d.ts for oxa-core
53+
# Note: oxa-types-ts uses build (not typecheck) to produce dist/*.d.ts for @oxa/core
5454
- run: pnpm build
5555
working-directory: packages/oxa-types-ts
5656
- run: uv run ty check src/
5757
working-directory: packages/oxa-types-py
5858
- run: cargo check
5959
working-directory: packages/oxa-types-rs
6060

61-
# Build and test oxa-core (includes CLI)
62-
- run: pnpm --filter oxa-core typecheck
63-
- run: pnpm --filter oxa-core build
64-
- run: pnpm --filter oxa-core test
61+
# Build and test @oxa/core
62+
- run: pnpm --filter @oxa/core typecheck
63+
- run: pnpm --filter @oxa/core build
64+
- run: pnpm --filter @oxa/core test
6565

6666
# Build oxa (copy bundled CLI)
6767
- run: pnpm --filter oxa build

packages/oxa-core/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# oxa-core
1+
# @oxa/core
22

33
Validation library for OXA documents.
44

55
## Installation
66

77
```bash
8-
npm install oxa-core
8+
npm install @oxa/core
99
```
1010

1111
For CLI usage, see [`oxa`](https://www.npmjs.com/package/oxa).
1212

1313
## Usage
1414

1515
```typescript
16-
import { validate, validateFile, validateJson, validateYaml } from "oxa-core";
17-
import type { Document } from "oxa-core";
16+
import { validate, validateFile, validateJson, validateYaml } from "@oxa/core";
17+
import type { Document } from "@oxa/core";
1818

1919
// Validate a document object
2020
const doc: Document = {

packages/oxa-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "oxa-core",
2+
"name": "@oxa/core",
33
"version": "0.1.0",
44
"description": "Validation library for OXA documents",
55
"type": "module",

packages/oxa-core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @example
55
* ```typescript
6-
* import { validate, validateFile, Document } from "oxa-core";
6+
* import { validate, validateFile, Document } from "@oxa/core";
77
*
88
* // Validate a document object
99
* const result = validate(myDocument);

packages/oxa/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CLI for validating OXA documents.
88
npm install -g oxa
99
```
1010

11-
For programmatic usage (validation functions and types), see [`oxa-core`](https://www.npmjs.com/package/oxa-core).
11+
For programmatic usage (validation functions and types), see [`@oxa/core`](https://www.npmjs.com/package/@oxa/core).
1212

1313
## Usage
1414

@@ -39,5 +39,5 @@ oxa validate -q *.json
3939

4040
## Related Packages
4141

42-
- [`oxa-core`](https://www.npmjs.com/package/oxa-core) - Validation library with programmatic API
42+
- [`@oxa/core`](https://www.npmjs.com/package/@oxa/core) - Validation library with programmatic API
4343
- [`oxa-types`](https://www.npmjs.com/package/oxa-types) - TypeScript type definitions

0 commit comments

Comments
 (0)