File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { join , resolve } from 'node:path' ;
2- import { logger } from 'rslog' ;
3- import { getConfigState , loadRstackConfig } from '../config.ts' ;
4- import { createPluginRuntime } from '../pluginRuntime.ts' ;
2+ import { getConfigState , getRstackPluginRuntime , loadRstackConfig } from '../config.ts' ;
53import { insertConfigArg , parseArgs , parseCliArgs } from './args.ts' ;
64import { hasHelpFlag , printCommandHelp } from './help.ts' ;
75
@@ -249,12 +247,8 @@ export async function setupCommands(): Promise<void> {
249247 return ;
250248 }
251249
252- const { plugins } = await loadRstackConfig ( ) ;
253- const runtime = await createPluginRuntime ( {
254- plugins,
255- context : state . invocation ,
256- logger,
257- } ) ;
250+ const loaded = await loadRstackConfig ( ) ;
251+ const runtime = await getRstackPluginRuntime ( loaded ) ;
258252
259253 if ( await runtime . runCommand ( command , state . invocation . args ) ) {
260254 return ;
You can’t perform that action at this time.
0 commit comments