mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-26 16:06:16 +00:00
fix(ci): restore extension test runtime deps and update voice-call expectations
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@pierre/diffs": "1.1.5",
|
||||
"@pierre/theme": "0.0.22",
|
||||
"@sinclair/typebox": "0.34.48",
|
||||
"playwright-core": "1.58.2"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { ThemeRegistrationResolved } from "@pierre/diffs";
|
||||
import { RegisteredCustomThemes, ResolvedThemes, ResolvingThemes } from "@pierre/diffs";
|
||||
|
||||
type PierreThemeName = "pierre-dark" | "pierre-light";
|
||||
const diffsRequire = createRequire(import.meta.resolve("@pierre/diffs"));
|
||||
const themeRequire = createRequire(import.meta.url);
|
||||
const PIERRE_THEME_SPECS = [
|
||||
["pierre-dark", "@pierre/theme/themes/pierre-dark.json"],
|
||||
["pierre-light", "@pierre/theme/themes/pierre-light.json"],
|
||||
@@ -19,7 +19,7 @@ function createThemeLoader(
|
||||
if (cachedTheme) {
|
||||
return cachedTheme;
|
||||
}
|
||||
const themePath = diffsRequire.resolve(themeSpecifier);
|
||||
const themePath = themeRequire.resolve(themeSpecifier);
|
||||
cachedTheme = {
|
||||
...(JSON.parse(await fs.readFile(themePath, "utf8")) as Record<string, unknown>),
|
||||
name: themeName,
|
||||
|
||||
Reference in New Issue
Block a user