refactor: use package imports over relative imports for cross package ref and tests

This commit is contained in:
2026-07-06 12:28:54 +05:30
parent 6bf1c88b71
commit 41f72b19e0
5 changed files with 23 additions and 8 deletions

View File

@@ -5,5 +5,10 @@
"type": "module",
"exports": {
".": "./dist/index.js"
},
"dependencies": {
"@omnia/core": "workspace:*",
"@omnia/llm": "workspace:*",
"zod": "^4.4.3"
}
}

View File

@@ -1,4 +1,5 @@
export * from "./attribute.js";
export * from "./entity.js";
export * from "./world.js";
export * from "./clock.js";
export * from "./repository.js";

View File

@@ -4,11 +4,11 @@ import {
Attribute,
AttributeVisibility,
AttributableObject,
} from "../src/attribute.js";
import { Entity } from "../src/entity.js";
import { WorldClock } from "../src/clock.js";
import { WorldState } from "../src/world.js";
import { SQLiteRepository } from "../src/repository.js";
Entity,
WorldClock,
WorldState,
SQLiteRepository,
} from "@omnia/core";
// A concrete implementation of AttributableObject for testing
class MockAttributable extends AttributableObject {}