mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-29 05:29:15 +00:00
Merge branch 'tsnode' into slowcord
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { Server, traverseDirectory } from "lambert-server";
|
||||
|
||||
const DEFAULT_FILTER = /^([^\.].*)(?<!\.d)\.(js)$/;
|
||||
//if we're using ts-node, use ts files instead of js
|
||||
const extension = Symbol.for("ts-node.register.instance") in process ? "ts" : "js"
|
||||
|
||||
const DEFAULT_FILTER = new RegExp("^([^\.].*)(?<!\.d)\.(" + extension + ")$");
|
||||
|
||||
export function registerRoutes(server: Server, root: string) {
|
||||
return traverseDirectory(
|
||||
|
||||
Reference in New Issue
Block a user