feat: 设置本地别名
This commit is contained in:
parent
baaf8a1cb7
commit
1df4142828
|
@ -1,7 +1,7 @@
|
|||
import Koa from 'koa'
|
||||
import KoaStatic from 'koa-static'
|
||||
import Router from 'koa-router'
|
||||
import { Component } from '../src/utils/index.js'
|
||||
import { Component } from '#miao/utils'
|
||||
import { readdirSync } from 'fs'
|
||||
import { join } from 'path'
|
||||
import './tailwindcss.js'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { type ComponentCreateOpsionType } from '../src/utils/component.js'
|
||||
import { type ComponentCreateOpsionType } from '#miao/utils'
|
||||
export type RouterType = {
|
||||
url: string
|
||||
element: React.ReactNode
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "miao-yunzai",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.0-rc.0",
|
||||
"author": "Yoimiya-Kokomi, Le-niao",
|
||||
"description": "QQ Group Bot",
|
||||
"main": "./index.js",
|
||||
|
@ -79,6 +79,7 @@
|
|||
"typescript": "^5.0.4"
|
||||
},
|
||||
"imports": {
|
||||
"#miao/*": "./src/*",
|
||||
"#miao": "./plugins/miao-plugin/components/index.js",
|
||||
"#miao.models": "./plugins/miao-plugin/models/index.js"
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export {}
|
|
@ -1,3 +1,5 @@
|
|||
export * from './config/index.js'
|
||||
export * from './core/index.js'
|
||||
export * from './db/index.js'
|
||||
export * from './mys/index.js'
|
||||
export * from './utils/index.js'
|
||||
|
|
|
@ -29,7 +29,13 @@
|
|||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
//
|
||||
"paths": {
|
||||
// 内部核心模块导出
|
||||
"#miao/*": ["./src/*"],
|
||||
// 外部模块 待移除
|
||||
"#miao": ["./plugins/miao-plugin/components/index.js"],
|
||||
"#miao.models": ["./plugins/miao-plugin/models/index.js"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue