# @cleeviox/tsconfig 中文文档

规范地址：https://npmcn.com/package/%40cleeviox/tsconfig/

版本：0\.2\.1
npm 元数据更新时间：2026-05-26T17:11:55.094Z
中文译文更新时间：2026-11-10T01:04:53.582Z
软件包许可：未声明

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40cleeviox/tsconfig
原文对照：https://npmcn.com/package/%40cleeviox/tsconfig/?lang=original
项目主页：https://github.com/cleevio/cleeviox-toolkit#readme
源码仓库：https://github.com/cleevio/cleeviox-toolkit

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：7.5 kB，9 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- 运行依赖：0 个
- peer 依赖：typescript ^6\.0\.3
- 首次发布：2026-01-20T20:58:23.191Z
- 最新版本发布：2026-05-26T17:11:54.959Z
- 近 30 天下载量：2354（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：20（近 12 个月 20 个）

## 中文简介

CleevioX 项目中使用的脚本配置

## 安装

```sh
npm install @cleeviox/tsconfig
```

也可以使用：`pnpm add @cleeviox/tsconfig`、`yarn add @cleeviox/tsconfig`、`bun add @cleeviox/tsconfig`

## README

[![CleevioX Logo](https://npmcn.com/package/%40cleeviox/tsconfig/public/logo.jpeg)](https://github.com/cleevio/cleeviox-toolkit)

# 土耳其

[![NPM Version](https://img.shields.io/npm/v/%40cleeviox%2Ftsconfig)](https://www.npmjs.com/package/@cleeviox/tsconfig)

### CleevioX 项目中使用的脚本配置

## 安装

```bash
bun add --dev @cleeviox/tsconfig typescript
```

在单列波中,在根中安装包,然后在每个工作空间中创建配置.

## 使用量

通过创建一个 `tsconfig.json` 根据您的需要, 文件相对于其根 :

### 图书馆

用于工作空间,其中包含一些代码,这些代码意在重新使用,例如: `packages/utils`。 。 。 .

```json
{
  "extends": "@cleeviox/tsconfig/library",
  "include": ["**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": ["dist", "node_modules"]
}
```

如果您打算分配工作空间,您还应当添加一个 `tsconfig.build.json` 文件, 它实际上释放文件 :

```json
{
  "compilerOptions": {
    "noEmit": false,
    "outDir": "./dist",
    "rootDir": "./src"
  },
  "extends": "./tsconfig.json",
  "include": ["./src"],
  "references": []
}
```

然后通过指定要使用的配置来构建您的软件包 :

```bash
# package.json
"scripts": {
    "build": "tsc --build tsconfig.build.json"
  }
```

### 应用

用于反应应用.

```json
{
  "extends": "@cleeviox/tsconfig/app",
  "include": ["**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": ["build", "node_modules"]
}
```

### 节点.js

用于不依赖任何框架的节点项目。 对于 `nestjs` 使用这个 [配置](https://npmcn.com/package/%40cleeviox/tsconfig/#readme-nestjs)

```json
{
  "extends": "@cleeviox/tsconfig/nodejs",
  "include": ["**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": ["build", "node_modules"]
}
```

### 下一个.js

用于 `nestjs` 项目:

```json
{
  "extends": "@cleeviox/tsconfig/nextjs",
  "include": [".next/types/**/*.ts", "**/*.js", "**/*.ts", "**/*.tsx"],
  "exclude": [".next/**/*.js", "node_modules"]
}
```

### (原始内容存档于2019-09-21) (英语). Nest.js

用于 `nextjs` 项目:

```json
{
  "extends": "@cleeviox/tsconfig/nestjs",
  "include": ["**/*.js", "**/*.ts"],
  "exclude": ["build", "node_modules"]
}
```

### 根号

如果您的工程是单列波, 请使用此配置进行工程根 **仅限**。随后的每一个工作空间都有自己的 `tsconfig.json` 文件,根据它的目的从上述配置中选择.

```json
{
  "extends": "@cleeviox/tsconfig",
  "include": ["./*.js", "./*.ts"],
  "exclude": ["node_modules"]
}
```

## 常见问题

### @cleeviox/tsconfig 是什么？

CleevioX 项目中使用的脚本配置

### 如何安装 @cleeviox/tsconfig？

在项目目录运行 npm install @cleeviox/tsconfig，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：typescript（^6\.0\.3）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @cleeviox/tsconfig 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/cleeviox\_\_tsconfig 是否存在。

### @cleeviox/tsconfig 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @cleeviox/tsconfig 可以商用吗？

@cleeviox/tsconfig 使用 未声明 许可。package\.json 没有声明许可证。没有许可证的代码默认保留全部权利，商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括，不构成法律意见，请以许可原文为准。

### @cleeviox/tsconfig 的下载量有多少？

根据 npm 官方下载统计，@cleeviox/tsconfig 在 2026/10/10 – 2026/11/08 这 30 天内被下载 2,354 次，日均约 78 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @cleeviox/tsconfig 还在维护吗？

最新版本 0\.2\.1 发布于 2026/05/27（5 个月前）；至今共发布 20 个版本，其中过去 12 个月发布了 20 个；首次发布于 2026/01/21。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

