automation-lib 4.7.60 → 4.7.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/commit.bat +42 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/commit.bat
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
:: Add all changes to git
|
|
4
|
+
git add .
|
|
5
|
+
|
|
6
|
+
:: Commit changes with a message
|
|
7
|
+
git commit -m "update: Son update code"
|
|
8
|
+
|
|
9
|
+
:: Push changes to the 'main' branch of the 'cp' remote
|
|
10
|
+
git pull hs main
|
|
11
|
+
|
|
12
|
+
:: Read the current version from package.json
|
|
13
|
+
for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
|
|
14
|
+
|
|
15
|
+
:: Remove quotes from the version string
|
|
16
|
+
set currentVersion=%currentVersion:"=%
|
|
17
|
+
|
|
18
|
+
:: Split version into its components
|
|
19
|
+
for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
|
|
20
|
+
set major=%%a
|
|
21
|
+
set minor=%%b
|
|
22
|
+
set patch=%%c
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
:: Increment the patch version
|
|
26
|
+
set /a patch+=1
|
|
27
|
+
|
|
28
|
+
:: Create the new version string
|
|
29
|
+
set newVersion=%major%.%minor%.%patch%
|
|
30
|
+
|
|
31
|
+
:: Update the version in package.json
|
|
32
|
+
powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
|
|
33
|
+
|
|
34
|
+
:: Display the new version
|
|
35
|
+
echo New version: %newVersion%
|
|
36
|
+
|
|
37
|
+
:: Run npm publish using call
|
|
38
|
+
call npm run pub
|
|
39
|
+
|
|
40
|
+
git push hs main
|
|
41
|
+
|
|
42
|
+
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -433,6 +433,7 @@ var EStatusTaskTool = /* @__PURE__ */ ((EStatusTaskTool2) => {
|
|
|
433
433
|
EStatusTaskTool2["Done"] = "Done";
|
|
434
434
|
EStatusTaskTool2["Error"] = "Error";
|
|
435
435
|
EStatusTaskTool2["Spending"] = "Spending";
|
|
436
|
+
EStatusTaskTool2["Generated"] = "Generated";
|
|
436
437
|
return EStatusTaskTool2;
|
|
437
438
|
})(EStatusTaskTool || {});
|
|
438
439
|
|
package/dist/index.mjs
CHANGED
|
@@ -410,6 +410,7 @@ var EStatusTaskTool = /* @__PURE__ */ ((EStatusTaskTool2) => {
|
|
|
410
410
|
EStatusTaskTool2["Done"] = "Done";
|
|
411
411
|
EStatusTaskTool2["Error"] = "Error";
|
|
412
412
|
EStatusTaskTool2["Spending"] = "Spending";
|
|
413
|
+
EStatusTaskTool2["Generated"] = "Generated";
|
|
413
414
|
return EStatusTaskTool2;
|
|
414
415
|
})(EStatusTaskTool || {});
|
|
415
416
|
|