# 使用 Homebrew 安装 dtsroll

查看 dtsroll 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dtsroll
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dtsroll
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dtsroll
- **软件包管理器:** Homebrew
- **版本:** 1.8.2
- **来源摘要:** CLI tool for bundling TypeScript declaration files
- **主页:** <https://github.com/privatenumber/dtsroll>
- **最后更新:** 2026-05-04T21:07:18Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dtsroll (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.8.2
## 项目历史与用法

dtsroll is a TypeScript declaration-file bundler aimed at package authors. It runs after `tsc` emits `.d.ts` files and bundles declaration dependencies so published package types work for downstream consumers.

### 项目历史

The public repository and npm package appeared in January 2025. The README frames the project around a common TypeScript publishing failure: emitted declarations can preserve imports from private or development-only packages, leaving consumers with unresolved type references.

### 采用历史

dtsroll is early-stage but already has both npm and Homebrew distribution. Its npm registry metadata shows releases after the initial 2025 publication, and the Homebrew formula distributes the CLI from the npm tarball.

### 使用方式

The default workflow is to run `dtsroll` after `tsc`. With no explicit entries, it reads `package.json`, finds declaration entry points from `types` or `exports`, bundles devDependency type imports into the emitted declarations, and leaves runtime dependencies external.

### 为什么软件包爱好者会关心

dtsroll is package-nerd bait because it exists to fix packaging metadata fallout: `.d.ts` files are part of the package interface, and bad declaration imports break consumers even when runtime JavaScript is fine. It sits near tools such as `pkgroll` and `unplugin-dts` in the TypeScript library-publishing toolchain.

### 时间线

- 2025: Public privatenumber/dtsroll repository created.
- 2025: npm registry records initial dtsroll publication.
- 2025-2026: Homebrew formula distributes the CLI from npm release tarballs.

### Related projects

- The README explicitly lists `pkgroll` as a related zero-config JavaScript and DTS bundler and documents integration with `unplugin-dts` for Vite builds.

### 来源

- <https://github.com/privatenumber/dtsroll>
- <https://github.com/privatenumber/dtsroll#readme>
- <https://registry.npmjs.org/dtsroll>
- <https://formulae.brew.sh/api/formula/dtsroll.json>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/dtsroll.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dtsroll.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
