forked from noxious/server
Server fix (maybe?)
This commit is contained in:
parent
d7faba056f
commit
e069d9293a
@ -103,7 +103,7 @@ export class Server {
|
||||
|
||||
if (file.isDirectory()) {
|
||||
await this.loadEventHandlers(fullPath, socket)
|
||||
} else if (file.isFile() && file.name.endsWith('.ts')) {
|
||||
} else if (file.isFile() && (file.name.endsWith('.ts') || file.name.endsWith('.js'))) {
|
||||
try {
|
||||
const module = await import(fullPath)
|
||||
if (typeof module.default === 'function') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user