Resolve CultLib via VOIDBOT_CULTLIB_ROOT in tests; test formerly indexed stores (#47)
This commit is contained in:
parent
68dee25e3a
commit
4e86c33cd2
8 changed files with 108 additions and 10 deletions
|
|
@ -21,13 +21,15 @@ const defaultPersonaName = "Bifrost";
|
|||
const defaultPersonaAvatarUrl =
|
||||
"https://raw.githubusercontent.com/GameCult/Bifrost/main/src/Bifrost.Web/wwwroot/img/bifrost-profile.png";
|
||||
|
||||
const cultLibRoot = resolve(process.env.VOIDBOT_CULTLIB_ROOT || resolve(projectsRoot, "CultLib"));
|
||||
|
||||
const cultCachePackagePath = resolveFirstExisting("CultCache TypeScript runtime", [
|
||||
resolve(projectsRoot, "CultLib", "packages", "cultcache-ts", "package.json"),
|
||||
resolve(cultLibRoot, "packages", "cultcache-ts", "package.json"),
|
||||
resolve(projectsRoot, "CultCacheTS", "package.json"),
|
||||
resolve(projectsRoot, "CultCacheTS", "node_modules", "cultcache-ts", "package.json"),
|
||||
]);
|
||||
const cultNetPackagePath = resolveFirstExisting("CultNet TypeScript runtime", [
|
||||
resolve(projectsRoot, "CultLib", "packages", "cultnet-ts", "package.json"),
|
||||
resolve(cultLibRoot, "packages", "cultnet-ts", "package.json"),
|
||||
resolve(projectsRoot, "CultNetTS", "package.json"),
|
||||
]);
|
||||
const cultCacheRequire = createRequire(cultCachePackagePath);
|
||||
|
|
|
|||
|
|
@ -23,8 +23,10 @@ const defaultPersonaName = "Bifrost";
|
|||
const defaultPersonaAvatarUrl =
|
||||
"https://raw.githubusercontent.com/GameCult/Bifrost/main/src/Bifrost.Web/wwwroot/img/bifrost-profile.png";
|
||||
|
||||
const cultLibRoot = resolve(process.env.VOIDBOT_CULTLIB_ROOT || resolve(projectsRoot, "CultLib"));
|
||||
|
||||
const cultCachePackagePath = resolveFirstExisting("CultCache TypeScript runtime", [
|
||||
resolve(projectsRoot, "CultLib", "packages", "cultcache-ts", "package.json"),
|
||||
resolve(cultLibRoot, "packages", "cultcache-ts", "package.json"),
|
||||
resolve(projectsRoot, "CultCacheTS", "package.json"),
|
||||
resolve(projectsRoot, "CultCacheTS", "node_modules", "cultcache-ts", "package.json"),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue