@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 CHANGED
@@ -1,40 +1,41 @@
1
1
  {
2
- "name": "@zwa73/utils",
3
- "version": "1.0.101",
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": "call npm run compile && call node release.js && call npm publish --access public",
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
- "jest": "^29.7.0",
36
- "ts-jest": "^29.1.2",
37
- "tsc-alias": "^1.8.8",
38
- "typescript": "^5.3.3"
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
  }
@@ -0,0 +1,4 @@
1
+ Write-Output 开始编译
2
+ npm run compile
3
+ Write-Output 开始发布
4
+ npx zcli release
package/publish.bat DELETED
@@ -1,2 +0,0 @@
1
- call npm publish --access public
2
- pause
package/release.bat DELETED
@@ -1,2 +0,0 @@
1
- call npm run release
2
- pause
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();