We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5bbbac commit 8dcdf5aCopy full SHA for 8dcdf5a
src/plugin-loader.ts
@@ -123,11 +123,12 @@ export async function loadInstalledPlugins(): Promise<void> {
123
const logger = getLogger();
124
125
// 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;
+ const pluginRuntime: C8ctlPluginRuntime = {
+ ...(c8ctl as unknown as object),
+ createClient,
+ resolveTenantId,
+ getLogger,
131
+ };
132
globalThis.c8ctl = pluginRuntime;
133
134
// Load default plugins first
0 commit comments