npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bwt-st/tsconfig

v0.2.1

Published

Shared TypeScript configurations for BWT-ST projects.

Downloads

243

Readme

@bwt-st/tsconfig

BWT-ST 项目的共享 TypeScript 配置预设。配置基于严格模式,使用 ESM、Bundler 模块解析和 ES2022 目标,适合现代前端工程和 Node.js 工具项目。

安装

pnpm add -D @bwt-st/tsconfig typescript

配置预设

| 入口 | 适用场景 | 主要差异 | | -------------------------- | ------------ | --------------------------------------------- | | @bwt-st/tsconfig/base | 通用基础配置 | 严格类型检查、ESM、Bundler 解析和声明类型支持 | | @bwt-st/tsconfig/browser | 浏览器项目 | 增加 DOM 和 DOM.Iterable 类型 | | @bwt-st/tsconfig/node | Node.js 项目 | 增加 Node.js 类型 | | @bwt-st/tsconfig/vue | Vue 项目 | 基于浏览器配置,jsx: preserve | | @bwt-st/tsconfig/react | React 项目 | 基于浏览器配置,jsx: react-jsx |

使用

在项目根目录创建 tsconfig.json,根据项目类型选择一个入口:

{
  "extends": "@bwt-st/tsconfig/browser",
  "include": ["src", "tests"]
}

Vue:

{
  "extends": "@bwt-st/tsconfig/vue",
  "include": ["src", "tests"]
}

React:

{
  "extends": "@bwt-st/tsconfig/react",
  "include": ["src", "tests"]
}

Node.js:

{
  "extends": "@bwt-st/tsconfig/node",
  "include": ["src", "tests"]
}

项目覆盖

预设提供公共基线,include、exclude、路径别名、构建输出等项目设置应由业务项目在自己的 tsconfig.json 中补充或覆盖。例如,使用 TypeScript 构建工具时可以覆盖 noEmit、outDir 等选项。

执行类型检查:

pnpm exec tsc --noEmit

兼容性

  • Node.js >=20.19.0
  • TypeScript 5.x 及兼容的现代 TypeScript 工具链