move registerBaseAliases to index

This commit is contained in:
SrGooglo 2023-04-26 23:14:23 +00:00
parent 95596fa45c
commit ca5fbc3d5d
2 changed files with 7 additions and 5 deletions

View File

@ -1,9 +1,5 @@
import path from "path" import path from "path"
import { Server, registerBaseAliases } from "linebridge/dist/server" import { Server } from "linebridge/dist/server"
registerBaseAliases(undefined, {
"@services": path.resolve(__dirname, "services"),
})
import express from "express" import express from "express"
import bcrypt from "bcrypt" import bcrypt from "bcrypt"

View File

@ -1,5 +1,11 @@
require("dotenv").config() require("dotenv").config()
import { webcrypto as crypto } from "crypto" import { webcrypto as crypto } from "crypto"
import path from "path"
import { registerBaseAliases } from "linebridge/dist/server"
registerBaseAliases(undefined, {
"@services": path.resolve(__dirname, "services"),
})
// patches // patches
const { Buffer } = require("buffer") const { Buffer } = require("buffer")