Skip to content

Commit 8dcdf5a

Browse files
vobuCopilot
andauthored
chore: update src/plugin-loader.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a5bbbac commit 8dcdf5a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/plugin-loader.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@ export async function loadInstalledPlugins(): Promise<void> {
123123
const logger = getLogger();
124124

125125
// Make c8ctl runtime available globally for plugins
126-
const pluginRuntime = c8ctl as unknown as C8ctlPluginRuntime;
127-
pluginRuntime.createClient = createClient;
128-
pluginRuntime.resolveTenantId = resolveTenantId;
129-
pluginRuntime.getLogger = getLogger;
130-
const _typeCheck: C8ctlPluginRuntime = pluginRuntime;
126+
const pluginRuntime: C8ctlPluginRuntime = {
127+
...(c8ctl as unknown as object),
128+
createClient,
129+
resolveTenantId,
130+
getLogger,
131+
};
131132
globalThis.c8ctl = pluginRuntime;
132133

133134
// Load default plugins first

0 commit comments

Comments
 (0)