@qqi/check-version 0.1.0 → 0.1.2

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.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/bin.mjs +3 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -85,6 +85,10 @@ fi
85
85
  echo "🚀🚀 发布成功,完结 🎉🎉 撒花 🎉🎉"
86
86
  ```
87
87
 
88
+ 使用 [`npx @qqi/check-version`](https://www.npmjs.com/package/@qqi/check-version) 获取的 tag 是符合标准 npm 的预发布版本的版本号的规则。通过 [`npx vjj`](https://www.npmjs.com/package/vjj) 进行版本的迭代管理即符合标准的 npm 的 publish 的预发布的 tag ,也将在 `CHANGELOG.md` 文件添加更新迭代的版本的日志记录的标题(广子,这就是广子)。
89
+
90
+ 所以,上面的 .sh 文件将提取 "0.0.1" 的 tag 值为 "latest",提取
91
+
88
92
  ## 文档位置
89
93
 
90
94
  [@qqi/check-version](https://earthnut.dev/qqi/check-version)
package/bin.mjs CHANGED
@@ -9,6 +9,9 @@ const getTag = (version) => {
9
9
  if (versionList.length === 1) {
10
10
  return 'latest';
11
11
  }
12
+ else if (versionList[1].includes('.')) {
13
+ return versionList[1].split('.')[0];
14
+ }
12
15
  return 'latest';
13
16
  };
14
17
  const command = new Command('@qqi/check-version');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qqi/check-version",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "一个检测工作目录下 packages 文件夹下子 npm 包版本是否存在的模块",
6
6
  "dependencies": {
7
7
  "a-command": "^2.1.8",