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

@longzai-intelligence-typescript/bun-config

v0.1.5

Published

TypeScript 配置包 - Bun 运行时

Readme

@longzai-intelligence-typescript/bun-config

Bun 运行时的 TypeScript 配置包。所有预设配置包含 "types": ["bun"],遵循 Bun 官方推荐

预设按用途命名,与环境脱钩:

| 后缀 | 用途 | 对应 tsconfig 文件 | |------|------|---------------------| | {type}.json | IDE 类型提示 + typecheck | tsconfig/app.json | | {type}-build.json | tsgo --build 开发构建 | tsconfig/build.json | | {type}-test.json | 测试代码 typecheck | tsconfig/test.json |

安装

bun add -D @longzai-intelligence-typescript/bun-config

快速开始

{
  "extends": "@longzai-intelligence-typescript/bun-config/presets/library.json"
}

与 node-config 的关系

| 包 | 运行时 | types 声明 | |---|--------|-----------| | @longzai-intelligence-typescript/bun-config | Bun | "types": ["bun"] | | @longzai-intelligence-typescript/node-config | Node.js | 无(依赖自动发现) |

base/ 和 modules/ 配置完全相同,唯一区别是 presets 中是否包含 types

预设列表

| 预设 | 用途 | 说明 | |------|------|------| | library.json | IDE + typecheck | 库项目,noEmit: true | | library-build.json | 开发构建 | 库项目构建,declaration + sourcemap | | library-test.json | 测试 typecheck | 库项目测试 | | library-decorator.json | IDE + typecheck | 装饰器库 | | library-decorator-build.json | 开发构建 | 装饰器库构建 | | library-decorator-test.json | 测试 typecheck | 装饰器库测试 | | elysia.json | IDE + typecheck | Elysia 后端 | | elysia-build.json | 开发构建 | Elysia 后端构建 | | elysia-test.json | 测试 typecheck | Elysia 后端测试 | | react.json | IDE + typecheck | React 应用 | | react-build.json | 开发构建 | React 应用构建 | | react-test.json | 测试 typecheck | React 应用测试 | | nest.json | IDE + typecheck | NestJS 应用 | | nest-build.json | 开发构建 | NestJS 应用构建 | | nest-test.json | 测试 typecheck | NestJS 应用测试 | | node.json | IDE + typecheck | Node.js 应用 | | node-build.json | 开发构建 | Node.js 应用构建 | | node-test.json | 测试 typecheck | Node.js 应用测试 | | electron.json | IDE + typecheck | Electron 应用 | | electron-build.json | 开发构建 | Electron 应用构建 | | electron-test.json | 测试 typecheck | Electron 应用测试 | | next.json | IDE + typecheck | Next.js 应用 | | next-build.json | 开发构建 | Next.js 应用构建 | | next-test.json | 测试 typecheck | Next.js 应用测试 | | taro.json | IDE + typecheck | Taro 小程序 | | taro-build.json | 开发构建 | Taro 小程序构建 | | taro-test.json | 测试 typecheck | Taro 小程序测试 |

许可证

UNLICENSED