Skip to content

Commit

Permalink
Remove baseUrl and adjust imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireboltofdeath committed Jul 2, 2022
1 parent f146ff3 commit 2038d99
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/events/createClientHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Players } from "@rbxts/services";
import { fireNetworkHandler } from "handlers";
import { fireNetworkHandler } from "../handlers";
import { createMiddlewareProcessor } from "../middleware/createMiddlewareProcessor";
import { EventMiddlewareList, Middleware } from "../middleware/types";
import { NetworkInfo } from "../types";
Expand Down
2 changes: 1 addition & 1 deletion src/events/createServerHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Players } from "@rbxts/services";
import { fireNetworkHandler } from "handlers";
import { fireNetworkHandler } from "../handlers";
import { createMiddlewareProcessor } from "../middleware/createMiddlewareProcessor";
import { EventMiddlewareList, Middleware } from "../middleware/types";
import { NetworkInfo } from "../types";
Expand Down
4 changes: 2 additions & 2 deletions src/functions/createClientHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { createMiddlewareProcessor } from "../middleware/createMiddlewareProcess
import { FunctionMiddlewareList, Middleware, MiddlewareFactory, MiddlewareProcessor } from "../middleware/types";
import { NetworkInfo } from "../types";
import { ArbitaryGuards, ClientHandler, ClientReceiver, ClientSender, RequestInfo } from "./types";
import { Skip } from "middleware/skip";
import { Skip } from "../middleware/skip";
import { Players } from "@rbxts/services";
import { fireNetworkHandler } from "handlers";
import { fireNetworkHandler } from "../handlers";

export function createClientHandler<S, C>(
serverRemotes: Map<string, RemoteEvent>,
Expand Down
4 changes: 2 additions & 2 deletions src/functions/createServerHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { createMiddlewareProcessor } from "../middleware/createMiddlewareProcess
import { FunctionMiddlewareList, Middleware, MiddlewareFactory, MiddlewareProcessor } from "../middleware/types";
import { NetworkInfo } from "../types";
import { ArbitaryGuards, RequestInfo, ServerHandler, ServerReceiver, ServerSender } from "./types";
import { Skip } from "middleware/skip";
import { fireNetworkHandler } from "handlers";
import { Skip } from "../middleware/skip";
import { fireNetworkHandler } from "../handlers";

export function createServerHandler<S, C>(
serverRemotes: Map<string, RemoteEvent>,
Expand Down
2 changes: 1 addition & 1 deletion src/functions/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { t } from "@rbxts/t";
import { NetworkingFunctionError } from "functions/errors";
import { NetworkingFunctionError } from "../functions/errors";
import { FunctionParameters, FunctionReturn, NetworkingObfuscationMarker, StripTSDoc } from "../types";

export interface ServerSender<I extends unknown[], O> {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { GlobalEvent } from "./events/types";
import { GlobalFunction } from "./functions/types";
import { Skip as NetworkingSkip } from "middleware/skip";
import { Skip as NetworkingSkip } from "./middleware/skip";
import { registerNetworkHandler as registerHandler } from "./handlers";
import { NetworkingFunctionError } from "functions/errors";
import { NetworkingFunctionError } from "./functions/errors";
import {
EventMiddlewareList,
FunctionMiddlewareList,
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
// configurable
"rootDir": "src",
"outDir": "out",
"baseUrl": "src",
"incremental": false,
// "tsBuildInfoFile": "out/tsconfig.tsbuildinfo",
"declaration": true,
Expand Down

0 comments on commit 2038d99

Please sign in to comment.