@faktion-com/tsconfig

中文文档
0.1.0发布于 2026/10/01MIT零依赖构建来源已验证近 30 天下载 1992

A collection of TypeScript configuration files for consistent development across Faktion projects.

原始使用文档
文档目录7 节
  1. Overview
  2. Installation
  3. Usage
  4. For Node.js projects
  5. For NestJS projects (ESM)
  6. For React projects
  7. For custom configurations

@faktion-com/tsconfig

A collection of TypeScript configuration files for consistent development across Faktion projects.

Overview

This package provides standardized TypeScript configurations that can be extended in your projects to ensure consistent compiler settings and development experience.

Installation

pnpm i --save-dev @faktion-com/tsconfig

Usage

For Node.js projects

{
  "extends": "@faktion-com/tsconfig/node.json"
}

For NestJS projects (ESM)

{
  "extends": "@faktion-com/tsconfig/nestjs.json"
}

Use with "type": "module" in the Nest app package.json. Keep node.json for non-Nest Node projects that need the older shared preset.

nestjs.json uses module: ESNext and moduleResolution: Bundler so Nest apps can keep extensionless @/ path aliases (for example @/modules/prisma/prisma.service). The Nest CLI SWC builder still emits native ESM when the package is "type": "module". Use node.json (NodeNext) when you need TypeScript to enforce Node's file-extension rules on relative imports.

For React projects

{
  "extends": "@faktion-com/tsconfig/react.json"
}

For custom configurations

{
  "extends": "@faktion-com/tsconfig/base.json",
  "compilerOptions": {
    // Your custom options here
  }
}

版本与发布记录

@faktion-com/tsconfig 共发布 3 个版本,首次发布于 2025/06/25;过去 12 个月发布了 1 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.0latest2026/10/011 个月前
0.0.12025/06/251.4 年前
0.0.02025/06/251.4 年前

关于 @faktion-com/tsconfig 的常见问题

@faktion-com/tsconfig 是什么?

A collection of TypeScript configuration files for consistent development across Faktion projects.

如何安装 @faktion-com/tsconfig?

在项目目录运行 npm install @faktion-com/tsconfig,或使用 pnpm add / yarn add / bun add。

@faktion-com/tsconfig 支持 TypeScript 吗?

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

@faktion-com/tsconfig 可以商用吗?

@faktion-com/tsconfig 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@faktion-com/tsconfig 的下载量有多少?

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

@faktion-com/tsconfig 还在维护吗?

最新版本 0.1.0 发布于 2026/10/01(1 个月前);至今共发布 3 个版本,其中过去 12 个月发布了 1 个;首次发布于 2025/06/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。