Switch moduleResolution to "bundler" in base and package tsconfigs and consolidate path aliases for monorepo packages. Remove several package-level baseUrl entries and update package paths to reference ../../packages/* (add explicit napcat-common/src and napcat-image-size/src mappings). Also add a rootDir override for napcat-core. These changes unify module resolution and path aliases so TypeScript and bundlers resolve workspace packages consistently.
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"outDir": "./dist",
|
|
"rootDir": "..",
|
|
"declaration": true,
|
|
"emitDeclarationOnly": true,
|
|
"skipLibCheck": true,
|
|
"stripInternal": true,
|
|
"noEmitOnError": false,
|
|
"paths": {
|
|
"napcat-core": [
|
|
"../../packages/napcat-core/index.ts"
|
|
],
|
|
"napcat-onebot": [
|
|
"../../packages/napcat-onebot/index.ts"
|
|
],
|
|
"napcat-common/src/*": [
|
|
"../../packages/napcat-common/src/*"
|
|
],
|
|
"napcat-image-size/src/*": [
|
|
"../../packages/napcat-image-size/src/*"
|
|
],
|
|
"@/napcat-core/*": [
|
|
"../../packages/napcat-core/*"
|
|
],
|
|
"@/napcat-onebot/*": [
|
|
"../../packages/napcat-onebot/*"
|
|
],
|
|
"@/napcat-common/*": [
|
|
"../../packages/napcat-common/*"
|
|
],
|
|
"@/napcat-webui-backend/*": [
|
|
"../../packages/napcat-webui-backend/*"
|
|
],
|
|
"@/*": [
|
|
"../../packages/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"./index.ts",
|
|
"../napcat-core/**/*.ts",
|
|
"../napcat-onebot/**/*.ts",
|
|
"../napcat-common/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
} |