We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dcdf5a commit 5b98ec1Copy full SHA for 5b98ec1
src/plugin-loader.ts
@@ -123,12 +123,10 @@ export async function loadInstalledPlugins(): Promise<void> {
123
const logger = getLogger();
124
125
// Make c8ctl runtime available globally for plugins
126
- const pluginRuntime: C8ctlPluginRuntime = {
127
- ...(c8ctl as unknown as object),
128
- createClient,
129
- resolveTenantId,
130
- getLogger,
131
- };
+ const pluginRuntime = c8ctl as C8ctlPluginRuntime;
+ (pluginRuntime as any).createClient = createClient;
+ (pluginRuntime as any).resolveTenantId = resolveTenantId;
+ (pluginRuntime as any).getLogger = getLogger;
132
globalThis.c8ctl = pluginRuntime;
133
134
// Load default plugins first
0 commit comments