Skip to content

build(npm): configure public CRYChart distribution - #6

Merged
cuimmm merged 1 commit into
mainfrom
feature/npm-distribution
Nov 16, 2026
Merged

cuimmm merged 1 commit into
mainfrom
feature/npm-distribution

Conversation

@KyleHuangFromHZ

Copy link
Copy Markdown
Collaborator

What changed

Configure the public @crysound/crychart package, document the first public release, and verify that packaging includes the ESM, CommonJS, browser and theme entries with their TypeScript declarations. The package retains CRYChart Community License 1.0.

The npm 1.0.1 archive was already released and verified. The branch retains the high precision waveform fix from #5 and assigns the changed source version 1.0.2. This PR does not publish that version.

Validation

  • npm run typecheck passed.
  • npm test passed 1,222 tests, with 2 skipped.
  • npm run test:opentest-contract passed all 31 tests.
  • npm pack produced a local 1.0.2 archive with the expected 82 files, including 72 .d.ts files.

@cuimmm
cuimmm merged commit e1e995f into main Nov 16, 2026
6 checks passed
KyleHuangFromHZ added a commit to crysound/OpenTest that referenced this pull request Nov 16, 2026
## 改了什么,为什么 / What changed and why

OpenTest 前端现在通过 pnpm 安装已公开发布的 `@crysound/crychart@1.0.1`。旧 tgz
保留作历史材料。更新了锁文件、主入口和主题导入、构建完整性校验,以及中英文接入文档。字体诊断使用当前锁定的安装入口。

OpenTest now installs the public CRYChart package through pnpm. The
build checks the installed package and the chart bundle against the
locked dependency and build record.

CRYChart 发布配置和 `1.0.1` 发行记录见 crysound/CRYChart#6。OpenTest 仍使用已经公开的
`1.0.1`。

制品对照:旧 `1.0.1-opentest.30` tgz 与 npm 实际发布的 `1.0.1` 对比,忽略版本字符串和 source
map 注释后,4 个运行入口和 72 个类型声明内容一致。发布归档及校验值见 crysound/CRYChart#6 的发行验收记录。

## 怎么验证的 / How it was verified

- [x] 冻结安装、前端生产构建、图表产物完整性校验通过 / Frozen install, production frontend
build, and chart bundle integrity passed.
- [x] 1,209 项图表测试、19 项打包工具测试及 Chrome 字体诊断通过 / Chart and packaging tool
tests and the Chrome font diagnostic passed.
- [x] 中英文文档策略检查通过 / Bilingual documentation check passed.
- [ ] 真机采集或完整安装器验证 / Device acquisition or full installer acceptance.

`pnpm typecheck:tests` 以 CI 的 6 GB 堆上限运行,在本 PR 未改动的 6 个源文件中报告 9 处类型错误。本
PR 的前端生产构建和图表测试均通过。

## 影响 / Impact

不涉及插件 API、通信协议或数据格式改动。Plugin APIs, protocols, and data formats remain
unchanged.

## 贡献授权 / Contribution license

- [ ] 我已阅读并同意 OpenTest 社区许可协议第 11 条“社区贡献” / I have read and agree to
section 11, Community Contributions, of the OpenTest Community License.

---------

Co-authored-by: huangkai <kyly.huang@crysound.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants