chore: Add typescript paths

This commit is contained in:
Siwoo Jeon 2025-03-18 19:27:02 +09:00
parent 68e45eb5e1
commit 6e18cbe7c1
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
10 changed files with 22 additions and 17 deletions

View file

@ -1,6 +1,6 @@
import type { Context } from '../../lib/context'
import { MuffinCustomId } from '../../lib/customId'
import { Learn } from '../../lib/databases'
import type { Context } from '$lib/context'
import { MuffinCustomId } from '$lib/customId'
import { Learn } from '$lib/databases'
import { ApplyOptions } from '@sapphire/decorators'
import { Args, Command } from '@sapphire/framework'
import {

View file

@ -1,5 +1,5 @@
import type { Context } from '../../lib/context'
import { Learn } from '../../lib/databases'
import type { Context } from '$lib/context'
import { Learn } from '$lib/databases'
import { ApplyOptions } from '@sapphire/decorators'
import { Args, Command } from '@sapphire/framework'
import {

View file

@ -1,5 +1,5 @@
import type { Context } from '../../lib/context'
import { Learn } from '../../lib/databases'
import type { Context } from '$lib/context'
import { Learn } from '$lib/databases'
import { ApplyOptions } from '@sapphire/decorators'
import { Command } from '@sapphire/framework'
import {

View file

@ -1,5 +1,5 @@
import type { Context } from '../../lib/context'
import { Learn, Text } from '../../lib/databases'
import type { Context } from '$lib/context'
import { Learn, Text } from '$lib/databases'
import { ApplyOptions } from '@sapphire/decorators'
import { Command } from '@sapphire/framework'
import {

View file

@ -1,4 +1,4 @@
import type { CategoryByEnglish } from '../../lib/commandCategory'
import type { CategoryByEnglish } from '$lib/commandCategory'
import type { Context } from '../../lib/context'
import { ApplyOptions } from '@sapphire/decorators'
import { Args, Command } from '@sapphire/framework'

View file

@ -1,4 +1,4 @@
import type { Context } from '../../lib/context'
import type { Context } from '$lib/context'
import { ApplyOptions } from '@sapphire/decorators'
import { Command } from '@sapphire/framework'
import {

View file

@ -1,5 +1,5 @@
import { ReleaseChannel } from '$lib/releaseChannel'
import { Config } from './config'
import { ReleaseChannel } from './lib/releaseChannel'
import { container } from '@sapphire/pieces'
import type { Client } from 'dokdo'
import { connect, disconnect } from 'mongoose'

View file

@ -1,5 +1,5 @@
import { MuffinCustomId } from '../lib/customId'
import { Learn } from '../lib/databases'
import { MuffinCustomId } from '$lib/customId'
import { Learn } from '$lib/databases'
import { ApplyOptions } from '@sapphire/decorators'
import {
InteractionHandler,

View file

@ -1,5 +1,5 @@
import { Learn, Text, type IText } from '../lib/databases'
import { ReleaseChannel } from '../lib/releaseChannel'
import { Learn, Text, type IText } from '$lib/databases'
import { ReleaseChannel } from '$lib/releaseChannel'
import { Listener } from '@sapphire/framework'
import type { Message, TextChannel } from 'discord.js'
import { Client } from 'dokdo'

View file

@ -23,7 +23,12 @@
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
"noPropertyAccessFromIndexSignature": false,
"baseUrl": "./",
"paths": {
"$lib/*": ["src/lib/*"]
}
},
"include": ["src/**/*.ts", "migrateMariaDBToMongoDB.ts"],
"exclude": ["node_modules"]