Files
NapCatQQ/.pnpm-store/v3/files/7b/16733b9606f7739e6fffbb269c7e47a691023a2442506ba97f1d2e626e2779f4067b4c7a84b9301db77f78bd4c772f5d70bf5de0305cbe018f2060c10200d3
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

69 lines
2.3 KiB
Plaintext

export interface PluginOptions {
/**
* The directory to crawl for `tsconfig.json` files.
*
* When the `projects` option is set, crawling is skipped, so this is
* used to resolve `projects` paths into absolute paths instead.
*
* @default
* // The config root is used for resolving project paths, and the
* // workspace root is used for crawling.
* options.projects ? viteConfig.root :
* vite.searchForWorkspaceRoot(viteConfig.root)
*/
root?: string
/**
* An array of `.json` files and/or directories that contain a
* `tsconfig.json` file. These JSON files must adhere to the
* {@link https://www.typescriptlang.org/tsconfig TypeScript config interface}. The `extends` property is supported.
*
* This disables crawling for `tsconfig.json` files when defined.
*/
projects?: string[]
/**
* Disable strictness that limits path resolution to TypeScript
* and JavaScript modules.
*
* Useful if you want asset URLs in Vue templates to be resolved,
* or when `"allowJs": true` in your tsconfig isn't good enough.
*/
loose?: boolean
/**
* Enable use of `tsconfck.parseNative` function, which delegates the
* loading of `tsconfig.json` files to the TypeScript compiler. You'll
* probably never need this, but I added it just in case.
*
* ⚠️ This option can slow down Vite's startup time by as much as
* 600ms, due to the size of the TypeScript compiler. Only use it when
* necessary.
*/
parseNative?: boolean
/**
* Silence the warning about malformed `tsconfig.json` files.
*/
ignoreConfigErrors?: boolean
/**
* An array of `tsconfig.json` file names to search for.
* @default ["tsconfig.json", "jsconfig.json"]
*/
configNames?: string[]
/**
* A function that determines which directories to skip when searching for tsconfig.json files.
* While `.git` and `node_modules` directories are always skipped, this option allows you to skip
* additional directories, which is useful in large monorepos to improve performance.
*/
skip?: (dir: string) => boolean
}
export interface TSConfig {
include?: string[]
exclude?: string[]
compilerOptions?: {
baseUrl?: string
paths?: { [path: string]: string[] }
allowJs?: boolean
checkJs?: boolean
outDir?: string
}
}