Use CultLib package root imports
This commit is contained in:
parent
c87a9f8a4d
commit
5d11f9129a
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ const {
|
|||
SingleFileMessagePackBackingStore,
|
||||
defineDocumentType,
|
||||
inspectCultCacheBytes,
|
||||
} = createRequire(import.meta.url)("E:/Projects/CultLib/packages/cultcache-ts/dist/index.js");
|
||||
} = createRequire("E:/Projects/CultLib/packages/cultcache-ts/package.json")("cultcache-ts");
|
||||
|
||||
const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const schemaPath = "E:/Projects/EpiphanyAgent/schemas/cultnet/gamecult.persona_state.v0.schema.json";
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@ function buildConfig(argv) {
|
|||
|
||||
function loadCultRuntime() {
|
||||
try {
|
||||
const { CultMesh } = require("cultmesh-ts/dist/index.js");
|
||||
const { defineDocumentType } = require("cultcache-ts/dist/index.js");
|
||||
const { CultMesh } = require("cultmesh-ts");
|
||||
const { defineDocumentType } = require("cultcache-ts");
|
||||
return { CultMesh, defineDocumentType, error: null };
|
||||
} catch (error) {
|
||||
return { CultMesh: null, defineDocumentType: null, error };
|
||||
|
|
|
|||
Loading…
Reference in a new issue