fix(release): npm 包名改 scoped @catoncat/cxs 以避开占用,修 bin 字段格式
- 实测 npm publish 发现 cxs 包名已被 css-in-js 库占用(发到 6.2.0),
改成 scoped @catoncat/cxs(npm 标准做法,GitHub username 作 scope)。
全局命令名仍是 cxs(由 bin map key 决定,跟包名解耦)
- bin 值去掉 "./" 前缀: { "cxs": "dist/cli.js" } —— 此前 npm publish
warning "bin[cxs] script name dist/cli.js was invalid and removed"
- 加 publishConfig.access=public —— scoped 包默认 private,显式声明 public
避免每次 npm publish 都要带 --access public flag
- README CLI Install Guide 同步改 npm i -g @catoncat/cxs,加一句解释
scoped 原因
GH Release v0.2.0 binary 不受影响(binary 路径独立于 npm 包名)。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Entire-Checkpoint: 12b7e8c0e860