momo-ai 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/publish.sh +26 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "momo-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Rachel Momo ( OpenSpec )",
|
|
5
5
|
"main": "src/momo.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"clipboard-copy": "^4.0.1",
|
|
35
35
|
"co": "^4.6.0",
|
|
36
36
|
"colors": "^1.4.0",
|
|
37
|
-
"commander": "^14.0.
|
|
37
|
+
"commander": "^14.0.3",
|
|
38
38
|
"crypto-js": "^4.2.0",
|
|
39
39
|
"dox": "^1.0.0",
|
|
40
40
|
"ejs": "^4.0.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"taffydb": "^2.7.3",
|
|
54
54
|
"underscore": "^1.13.7",
|
|
55
55
|
"uuid": "^13.0.0",
|
|
56
|
-
"zod": "^4.3.
|
|
56
|
+
"zod": "^4.3.6"
|
|
57
57
|
},
|
|
58
58
|
"homepage": "https://gitee.com/silentbalanceyh/r2mo-lain",
|
|
59
59
|
"github": "https://gitee.com/silentbalanceyh/r2mo-lain.git"
|
package/publish.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# 1. 检查是否提供了提交注释 ($1)
|
|
4
|
+
if [ -z "$1" ]; then
|
|
5
|
+
echo -e "\033[31m❌ 错误: 请提供 Git 提交注释。\033[0m"
|
|
6
|
+
echo "用法: ./publish.sh \"你的提交注释\""
|
|
7
|
+
exit 1
|
|
8
|
+
fi
|
|
9
|
+
|
|
10
|
+
# 设置发生错误时停止脚本
|
|
11
|
+
set -e
|
|
12
|
+
|
|
13
|
+
echo -e "\033[36m1️⃣ 正在升级版本号 (npm version patch)...\033[0m"
|
|
14
|
+
# --no-git-tag-version: 只修改 package.json 版本,不自动生成 git commit 和 tag
|
|
15
|
+
npm version patch --no-git-tag-version
|
|
16
|
+
|
|
17
|
+
echo -e "\033[36m2️⃣ 正在发布到 NPM (npm publish)...\033[0m"
|
|
18
|
+
# 【关键修改】显式指定 registry 为 npm 官方源,防止发布到淘宝镜像
|
|
19
|
+
npm publish --registry=https://registry.npmjs.org/
|
|
20
|
+
|
|
21
|
+
echo -e "\033[36m3️⃣ 正在提交代码并推送 (Git)...\033[0m"
|
|
22
|
+
git add .
|
|
23
|
+
git commit -m "$1"
|
|
24
|
+
git push
|
|
25
|
+
|
|
26
|
+
echo -e "\033[32m✅ 发布流程全部完成!\033[0m"
|