From 5c85ad2962fe40329468b315da0ab53d69bb60ba Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 7 Jan 2023 22:58:06 -0500 Subject: [PATCH] *Move core plugins outside modules folder --- src/modules/plugin.ts | 6 +++--- src/{modules => }/plugins/core.ts | 0 src/{modules => }/plugins/dht.ts | 0 src/{modules => }/plugins/rpc.ts | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/{modules => }/plugins/core.ts (100%) rename src/{modules => }/plugins/dht.ts (100%) rename src/{modules => }/plugins/rpc.ts (96%) diff --git a/src/modules/plugin.ts b/src/modules/plugin.ts index 547d5c7..26edcd1 100644 --- a/src/modules/plugin.ts +++ b/src/modules/plugin.ts @@ -8,9 +8,9 @@ import path from "path"; import type { Logger } from "pino"; import { getHDKey, getSeed } from "../lib/seed.js"; -import pluginRpc from "./plugins/rpc"; -import pluginCore from "./plugins/core"; -import pluginDht from "./plugins/dht"; +import pluginRpc from "../plugins/rpc"; +import pluginCore from "../plugins/core"; +import pluginDht from "../plugins/dht"; import type Config from "@lumeweb/cfg"; import EventEmitter2 from "eventemitter2"; import log from "../log.js"; diff --git a/src/modules/plugins/core.ts b/src/plugins/core.ts similarity index 100% rename from src/modules/plugins/core.ts rename to src/plugins/core.ts diff --git a/src/modules/plugins/dht.ts b/src/plugins/dht.ts similarity index 100% rename from src/modules/plugins/dht.ts rename to src/plugins/dht.ts diff --git a/src/modules/plugins/rpc.ts b/src/plugins/rpc.ts similarity index 96% rename from src/modules/plugins/rpc.ts rename to src/plugins/rpc.ts index 2af9ada..a903df1 100644 --- a/src/modules/plugins/rpc.ts +++ b/src/plugins/rpc.ts @@ -1,4 +1,4 @@ -import { getRpcServer } from "../rpc/server"; +import { getRpcServer } from "../modules/rpc/server"; import { Plugin, PluginAPI, @@ -8,8 +8,8 @@ import { RPCRequest, RPCResponse, } from "@lumeweb/relay-types"; -import { getRpcByPeer } from "../rpc"; -import { get as getSwarm, LUMEWEB_TOPIC_HASH } from "../swarm"; +import { getRpcByPeer } from "../modules/rpc"; +import { get as getSwarm, LUMEWEB_TOPIC_HASH } from "../modules/swarm"; import b4a from "b4a"; import pTimeout, { ClearablePromise } from "p-timeout";