@coveo/semantic-monorepo-tools

中文文档
2.7.1发布于 2025/11/04Apache-2.0TypeScriptES Module构建来源已验证近 30 天下载 8066

A library of helper functions to do SemVer2 compliant releases from Conventional Commits in monorepos

原始使用文档
文档目录4 节
  1. Install
  2. Why?
  3. What?
  4. Examples

semantic-monorepo-tools

A library of helper functions to do SemVer2 compliant releases from Conventional Commits in monorepos.

Install

npm install @coveo/semantic-monorepo-tools

Why?

Before, one would use lerna version to make semantic releases in a monorepo, but lerna is dead.

The most predominant tools in the field, standard-version and semantic-release do not offer the level of flexibility that lerna did offer (e.g. it's hard to do semantic releases when packages do not share the same version and Changelog generation are sometimes tangled).

Because there are so many ways to do semantic releases in a monorepo, and that an opinionated way could result in releases that make less sense for the user of the published packages, semantic-monorepo-tools took the approach to leave the implementation process in the hand of the user, and instead focus on providing functions to 'get what you need' and 'do what you need to do' directly with JavaScript.

What?

semantic-monorepo-tools aims to take the functions of a single-package release flow such as standard-version and make them available as standalone building blocks. The goal is to make abstractions of the inner working of the tools (e.g. git, npm) behind simple pure (ish) functions.

Examples

semantic-monorepo-tools use itself for its release process, you can see the 'meat of it' here. It is also used for the release processes of several monorepos at Coveo, you can find implementations examples on some of our repository:

版本与发布记录

@coveo/semantic-monorepo-tools 共发布 249 个版本,首次发布于 2022/02/04;过去 12 个月发布了 0 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.7.1latest2025/11/041 年前
2.7.02025/10/181.1 年前
2.6.192025/10/141.1 年前
2.6.182025/10/111.1 年前
2.6.172025/09/301.1 年前
2.6.162025/09/231.1 年前

关于 @coveo/semantic-monorepo-tools 的常见问题

@coveo/semantic-monorepo-tools 是什么?

A library of helper functions to do SemVer2 compliant releases from Conventional Commits in monorepos

如何安装 @coveo/semantic-monorepo-tools?

在项目目录运行 npm install @coveo/semantic-monorepo-tools,或使用 pnpm add / yarn add / bun add。

@coveo/semantic-monorepo-tools 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@coveo/semantic-monorepo-tools 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@coveo/semantic-monorepo-tools 可以商用吗?

@coveo/semantic-monorepo-tools 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@coveo/semantic-monorepo-tools 的下载量有多少?

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

@coveo/semantic-monorepo-tools 还在维护吗?

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