# 使用 Homebrew 安装 dtsroll

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dtsroll
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dtsroll
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dtsroll>
- **版本:** 1.8.2
- **来源摘要:** CLI tool for bundling TypeScript declaration files
- **主页:** <https://github.com/privatenumber/dtsroll>
- **仓库:** <https://github.com/privatenumber/dtsroll>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/dtsroll/-/dtsroll-1.8.2.tgz>
- **最后更新:** 2026-05-04T21:07:18Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dtsroll (cli)
- dtsroll (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.8.2
- 管理器更新时间: 2026-05-04
- 本地数据: OK
- 上游仓库: https://github.com/privatenumber/dtsroll
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dtsroll
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [json2ts](https://pkg.so/zh-hans/brew/json2ts/) - Shares pkgdb curated category or tags: cli, developer-tools, typescript.
- [esbuild](https://pkg.so/zh-hans/brew/esbuild/) - Shares pkgdb curated category or tags: bundler, cli, developer-tools, typescript.
- [prettier](https://pkg.so/zh-hans/brew/prettier/) - Shares pkgdb curated category or tags: cli, developer-tools, typescript.
- [vite](https://pkg.so/zh-hans/brew/vite/) - Shares pkgdb curated category or tags: cli, developer-tools, typescript.
- [nx](https://pkg.so/zh-hans/brew/nx/) - Shares pkgdb curated category or tags: cli, developer-tools, typescript.
- [typescript-language-server](https://pkg.so/zh-hans/brew/typescript-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, typescript.
- [sf](https://pkg.so/zh-hans/brew/sf/) - Shares pkgdb curated category or tags: cli, developer-tools, typescript.
- [webpack](https://pkg.so/zh-hans/brew/webpack/) - Shares pkgdb curated category or tags: bundler, cli, developer-tools.
- [dts-bundle](https://pkg.so/zh-hans/npm/dts-bundle/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, dts, files.
- [dets](https://pkg.so/zh-hans/npm/dets/) - Local package facts share a topical domain. Shared terms: bundler, cli, declaration, developer, developer-tools.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
