refactor: modularize plugin runtime and test hooks
This commit is contained in:
9
src/plugins/runtime/runtime-config.ts
Normal file
9
src/plugins/runtime/runtime-config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { loadConfig, writeConfigFile } from "../../config/config.js";
|
||||
import type { PluginRuntime } from "./types.js";
|
||||
|
||||
export function createRuntimeConfig(): PluginRuntime["config"] {
|
||||
return {
|
||||
loadConfig,
|
||||
writeConfigFile,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user