1 2 3 4 5 6 7 8 9 10
const tsConfigPaths = require("tsconfig-paths"); const path = require("path"); const cleanup = tsConfigPaths.register({ baseUrl: path.join(__dirname, ".."), paths: { "@fosscord/gateway": ["dist/index.js"], "@fosscord/gateway/*": ["dist/*"], }, });