@zwa73/utils 1.0.101 → 1.0.103
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 +39 -38
- package/scripts/release.ps1 +4 -0
- package/publish.bat +0 -2
- package/release.bat +0 -2
- package/release.js +0 -16
package/package.json
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
2
|
+
"name": "@zwa73/utils",
|
|
3
|
+
"version": "1.0.103",
|
|
4
|
+
"description": "my utils",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "call npm run compile && jest",
|
|
8
|
+
"postinstall": "start node ./scripts/postinstall.js",
|
|
9
|
+
"release": "powershell scripts/release",
|
|
10
|
+
"compile": "powershell scripts/compile",
|
|
11
|
+
"watch": "powershell scripts/watch"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"zwa73"
|
|
15
|
+
],
|
|
16
|
+
"author": "zwa73",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@types/fluent-ffmpeg": "^2.1.21",
|
|
20
|
+
"esm": "^3.2.25",
|
|
21
|
+
"esm-resolve": "^1.0.8",
|
|
22
|
+
"fluent-ffmpeg": "^2.1.2",
|
|
23
|
+
"glob": "^10.3.10",
|
|
24
|
+
"html-entities": "^2.3.3",
|
|
25
|
+
"http-proxy-agent": "^5.0.0",
|
|
26
|
+
"https-proxy-agent": "^5.0.1",
|
|
27
|
+
"json5": "^2.2.3",
|
|
28
|
+
"tiktoken": "^1.0.7",
|
|
29
|
+
"winston": "^3.10.0",
|
|
30
|
+
"winston-daily-rotate-file": "^4.7.1"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/jest": "^29.5.12",
|
|
34
|
+
"@types/node": "^18.16.3",
|
|
35
|
+
"@zwa73/dev-utils": "^1.0.13",
|
|
36
|
+
"jest": "^29.7.0",
|
|
37
|
+
"ts-jest": "^29.1.2",
|
|
38
|
+
"tsc-alias": "^1.8.8",
|
|
39
|
+
"typescript": "^5.3.3"
|
|
40
|
+
}
|
|
40
41
|
}
|
package/publish.bat
DELETED
package/release.bat
DELETED
package/release.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
// 读取并更新包配置文件中的版本号
|
|
5
|
-
function updateVersion() {
|
|
6
|
-
const packagePath = path.join(__dirname, 'package.json');
|
|
7
|
-
const packageData = JSON.parse(fs.readFileSync(packagePath));
|
|
8
|
-
const version = packageData.version.split('.');
|
|
9
|
-
version[2] = parseInt(version[2]) + 1;
|
|
10
|
-
packageData.version = version.join('.');
|
|
11
|
-
fs.writeFileSync(packagePath, JSON.stringify(packageData, null, 2));
|
|
12
|
-
return packageData.version;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
updateVersion();
|