From 89035fe9a177e889a8a2f8f97474dc12ce105f71 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Tue, 30 Jul 2024 21:10:24 +0800 Subject: [PATCH] fix: cloudsync hotfix (hopefully) --- src/lib/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib/index.ts b/src/lib/index.ts index a882707..1b1773d 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -11,6 +11,21 @@ export * as ui from "./ui"; export * as utils from "./utils"; export * as metro from "@metro"; +import * as fonts from "./fonts"; +import * as plugins from "./plugins"; +import * as themes from "./themes"; +import { proxyLazy } from "./utils/lazy"; + +export const managers = proxyLazy(() => { + console.warn("bunny.managers.* is deprecated, and moved the top level (bunny.*). bunny.manager will be eventually removed soon"); + + return { + get fonts() { return fonts; }, + get plugins() { return plugins; }, + get themes() { return themes; } + }; +}, { hint: "object" }); + const _disposer = [] as Array<() => unknown>; export function unload() {