Skip to content

refactor: npm-only distribution#24

Merged
RyanLee-Dev merged 1 commit intomainfrom
refactor/npm-distribution
Apr 1, 2026
Merged

refactor: npm-only distribution#24
RyanLee-Dev merged 1 commit intomainfrom
refactor/npm-distribution

Conversation

@RyanLee-Dev
Copy link
Copy Markdown
Collaborator

Summary

完全切换到 npm 分发。

npm install -g minimax-cli

Changed

之前 之后
安装方式 curl install.sh / 二进制 npm install -g minimax-cli
install.sh 存在 删除
build.ts 7 平台 + mjs 只有 mjs
release.yml 构建 + 上传资产 只跑测试
minimax update 自我替换二进制 npm update -g minimax-cli
发布 GitHub Release npm publish

Publish workflow

# 改版本
vim package.json  # bump version

# 构建 + 发布
npm publish       # prepublishOnly 自动触发 bun run build

🤖 Generated with Claude Code

Install: npm install -g minimax-cli (requires Node.js 18+)

- package.json: remove private, add bin/files/engines/prepublishOnly
- build.ts: only builds minimax.mjs, no platform binaries
- install.sh: deleted (replaced by npm install)
- release.yml: tests only, no binary release artifacts
- update command: print "npm update -g minimax-cli" instead of self-update
- main.ts: update notification shows npm command
- README/README_CN: npm install -g minimax-cli

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@RyanLee-Dev RyanLee-Dev merged commit 0885244 into main Apr 1, 2026
2 checks passed
@MiniMax-AI-Dev MiniMax-AI-Dev deleted the refactor/npm-distribution branch April 2, 2026 21:08
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.

1 participant