chore: Add typescript paths
This commit is contained in:
parent
68e45eb5e1
commit
6e18cbe7c1
10 changed files with 22 additions and 17 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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"]
|
||||
|
|
Reference in a new issue