iv-npm 1.2.61 → 1.2.62

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.2.61",
3
+ "version": "1.2.62",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -11,8 +11,8 @@
11
11
  "build:pkg": "pnpm run prepare -r",
12
12
  "push": "npm run changeVersion & turbo run build & npm publish",
13
13
  "changeVersion": "node ./scripts/changeVersion.js",
14
- "changeVersion1": "node ./scripts/changeVersion.js 1",
15
- "changeVersion2": "node ./scripts/changeVersion.js 2"
14
+ "changeVersion1": "node ./scripts/changeVersion.js level1",
15
+ "changeVersion2": "node ./scripts/changeVersion.js level2"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author: Mr.Cong Wei
3
3
  * @Date: 2022-08-26 15:21:36
4
- * @LastEditTime: 2022-08-26 16:03:42
4
+ * @LastEditTime: 2022-08-26 16:12:15
5
5
  */
6
6
 
7
7
  const shell = require("shelljs");
@@ -20,9 +20,9 @@ function writeVersion(wholeVersion) {
20
20
 
21
21
  function formatVersion(v) {
22
22
  const LEVEL_LIST = {
23
- 3: 2,
24
- 2: 1,
25
- 1: 0,
23
+ level3: 2,
24
+ level2: 1,
25
+ level1: 0,
26
26
  };
27
27
  const level = process.argv[2] ? LEVEL_LIST[process.argv[2]] : 2;
28
28
  const versionList = v.split(".");