@chbo297/infoflow 2026.5.6-beta.0 → 2026.5.7-beta.0
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/README.md +6 -6
- package/dist/src/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ BAIDU_NPM_REGISTRY=http://registry.npm.baidu-int.com bash scripts/deploy.sh
|
|
|
42
42
|
发布到 npm 后,可直接通过 `npx` 安装/升级到指定版本:
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
npm_config_registry=http://registry.npm.baidu-int.com npx -y @chbo297/infoflow update --version 2026.5.
|
|
45
|
+
npm_config_registry=http://registry.npm.baidu-int.com npx -y @chbo297/infoflow update --version 2026.5.6
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
常用参数:
|
|
@@ -64,11 +64,11 @@ npm_config_registry=http://registry.npm.baidu-int.com npx -y @chbo297/infoflow u
|
|
|
64
64
|
|
|
65
65
|
### 版本升级、打 tag、推送与 npm 发布流程
|
|
66
66
|
|
|
67
|
-
每次发布新版本(例如 `2026.5.
|
|
67
|
+
每次发布新版本(例如 `2026.5.6`)建议按以下顺序执行:
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
70
|
# 1) 修改版本号(会同步 package-lock.json)
|
|
71
|
-
npm version 2026.5.
|
|
71
|
+
npm version 2026.5.6 --no-git-tag-version
|
|
72
72
|
|
|
73
73
|
# 2) 发布前校验
|
|
74
74
|
npm run typecheck
|
|
@@ -77,12 +77,12 @@ npm run build
|
|
|
77
77
|
|
|
78
78
|
# 3) 提交版本变更
|
|
79
79
|
git add package.json package-lock.json README.md scripts src
|
|
80
|
-
git commit -m "2026.5.
|
|
80
|
+
git commit -m "2026.5.6"
|
|
81
81
|
|
|
82
82
|
# 4) 打 tag 并推送代码与 tag
|
|
83
|
-
git tag 2026.5.
|
|
83
|
+
git tag 2026.5.6
|
|
84
84
|
git push origin main
|
|
85
|
-
git push origin 2026.5.
|
|
85
|
+
git push origin 2026.5.6
|
|
86
86
|
|
|
87
87
|
# 5) 发布 npm(可按需指定 registry)
|
|
88
88
|
npm publish
|
package/dist/src/cli.js
CHANGED
|
@@ -95,7 +95,7 @@ function installFromRegistry(options, packageName, pluginDir) {
|
|
|
95
95
|
}
|
|
96
96
|
runOrFail("tar", ["-xzf", tarball], tempRoot, options.dryRun);
|
|
97
97
|
runOrFail("mkdir", ["-p", pluginDir], tempRoot, options.dryRun);
|
|
98
|
-
runOrFail("rsync", ["-av", "--delete", `${join(tempRoot, "package")}/`, `${pluginDir}/`, "--exclude", "node_modules"
|
|
98
|
+
runOrFail("rsync", ["-av", "--delete", `${join(tempRoot, "package")}/`, `${pluginDir}/`, "--exclude", "node_modules"], tempRoot, options.dryRun);
|
|
99
99
|
}
|
|
100
100
|
finally {
|
|
101
101
|
if (!options.dryRun)
|