Skip to content

Commit

Permalink
fix(lib): spread object params to be arguments of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Aug 2, 2024
1 parent f5f8b9b commit d6d16d7
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/if-run/lib/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import {pluginStorage} from '../util/plugin-storage';
import {CONFIG, STRINGS} from '../config';

import {PluginInterface} from '../types/interface';
import {
GlobalPlugins,
PluginOptions,
PluginSettings,
} from '../../common/types/manifest';
import {GlobalPlugins, PluginOptions} from '../../common/types/manifest';
import {PluginStorageInterface} from '../types/plugin-storage';

const {
Expand Down Expand Up @@ -103,12 +99,7 @@ const initPlugin = async (

const plugin = await handModule(method, path);

const pluginOptions: PluginSettings = {
'global-config': globalConfig,
'parameter-metadata': parameterMetadata,
mapping,
};
return plugin(pluginOptions);
return plugin(globalConfig, parameterMetadata, mapping);
};

/**
Expand Down

0 comments on commit d6d16d7

Please sign in to comment.