@4c/tsconfig

中文文档
0.4.1发布于 2022/04/26MIT近 30 天下载 1.2万

A set of shareable tsconfig.json for typescript projects

原始使用文档
文档目录6 节
  1. Install
  2. Usage
  3. base.json
  4. web.json
  5. node.json
  6. workspaces.json

@4c/tsconfig

A set of shareable tsconfig.json for typescript projects

Install

yarn add @4c/tsconfig -D

Usage

base.json

A generic config meant to be extended for specific use-cases

{
  "extends": "@4c/tsconfig/base.json"
}

web.json

A set of defaults for DOM based projects.

{
  "extends": "@4c/tsconfig/web.json"
}

node.json

A set of defaults for Node.js based projects. Expects @types/node to be installed

{
  "extends": "@4c/tsconfig/node.json"
}

workspaces.json

The web config, but with an added plugin for resolution of yarn workspace projects in VSCode, so each package does not have to be built while developing for types.

{
  "extends": "@4c/tsconfig/workspaces.json"
}

版本与发布记录

@4c/tsconfig 共发布 8 个版本,首次发布于 2019/01/22;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.4.1latest2022/04/264 年前
0.4.02021/06/035 年前
0.3.12020/02/126 年前
0.3.02019/10/087 年前
0.2.02019/09/107 年前
0.1.22019/03/087 年前

关于 @4c/tsconfig 的常见问题

@4c/tsconfig 是什么?

A set of shareable tsconfig.json for typescript projects

如何安装 @4c/tsconfig?

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

@4c/tsconfig 支持 TypeScript 吗?

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

@4c/tsconfig 可以商用吗?

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

@4c/tsconfig 的下载量有多少?

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

@4c/tsconfig 还在维护吗?

最新版本 0.4.1 发布于 2022/04/26(4 年前);至今共发布 8 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/01/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。